<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.thhy.materials.modules.biz.helmet.mapper.HelmetMapper">
|
<resultMap id="BaseResultMap" type="com.thhy.materials.modules.biz.helmet.entity.THelmetDevice">
|
<!--
|
WARNING - @mbg.generated
|
This element is automatically generated by MyBatis Generator, do not modify.
|
This element was generated on Tue Oct 10 10:55:08 CST 2023.
|
-->
|
<id column="helmet_device_id" jdbcType="VARCHAR" property="helmetDeviceId" />
|
<result column="device_num" jdbcType="VARCHAR" property="deviceNum" />
|
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
<result column="user_name" jdbcType="VARCHAR" property="userName" />
|
</resultMap>
|
|
|
<select id="helmetServiceList" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetDevice">
|
select helmet_device_id as helmetDeviceId,
|
device_num as deviceNum,
|
user_id as userId,
|
user_name as userName
|
from t_helmet_device
|
</select>
|
<select id="userIdIid" parameterType="java.lang.Integer" resultType="java.lang.Integer">
|
SELECT
|
i_id
|
FROM
|
t_helmet_picture
|
where user_id=#{userId}
|
ORDER BY
|
i_id DESC
|
LIMIT 0,1
|
</select>
|
<select id="userIdReport" parameterType="java.lang.Integer" resultType="java.lang.Integer">
|
SELECT
|
s_id
|
FROM
|
t_helmet_report
|
where user_id=#{userId}
|
ORDER BY
|
s_id DESC
|
LIMIT 0,1
|
</select>
|
<insert id="helmetPictureInsert" parameterType="com.thhy.materials.modules.biz.helmet.entity.THelmetPicture">
|
insert into t_helmet_picture
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="helmetPictureId != null">
|
helmet_picture_id,
|
</if>
|
<if test="imageUrl != null">
|
image_url,
|
</if>
|
<if test="userId != null">
|
user_id,
|
</if>
|
<if test="xPoint != null">
|
x_point,
|
</if>
|
<if test="yPoint != null">
|
y_point,
|
</if>
|
<if test="creTime != null">
|
cre_time,
|
</if>
|
<if test="iId != null">
|
i_id,
|
</if>
|
<if test="smTime != null">
|
sm_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="helmetPictureId != null">
|
#{helmetPictureId,jdbcType=INTEGER},
|
</if>
|
<if test="imageUrl != null">
|
#{imageUrl,jdbcType=VARCHAR},
|
</if>
|
<if test="userId != null">
|
#{userId,jdbcType=INTEGER},
|
</if>
|
<if test="xPoint != null">
|
#{xPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="yPoint != null">
|
#{yPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="creTime != null">
|
#{creTime,jdbcType=VARCHAR},
|
</if>
|
<if test="iId != null">
|
#{iId,jdbcType=INTEGER},
|
</if>
|
<if test="smTime != null">
|
#{smTime},
|
</if>
|
</trim>
|
</insert>
|
<insert id="helmetReportInsert" >
|
insert into t_helmet_report
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="reportId != null">
|
report_id,
|
</if>
|
<if test="sId != null">
|
s_id,
|
</if>
|
<if test="userId != null">
|
user_id,
|
</if>
|
<if test="userName != null">
|
user_name,
|
</if>
|
<if test="deviceId != null">
|
device_id,
|
</if>
|
<if test="xPoint != null">
|
x_point,
|
</if>
|
<if test="yPoint != null">
|
y_point,
|
</if>
|
<if test="cTime != null">
|
c_time,
|
</if>
|
<if test="sosType != null">
|
sos_type,
|
</if>
|
<if test="msg != null">
|
msg,
|
</if>
|
<if test="imgurl != null">
|
imgurl,
|
</if>
|
<if test="mobile != null">
|
mobile,
|
</if>
|
<if test="smTime != null">
|
sm_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="reportId != null">
|
#{reportId,jdbcType=INTEGER},
|
</if>
|
<if test="sId != null">
|
#{sId,jdbcType=INTEGER},
|
</if>
|
<if test="userId != null">
|
#{userId,jdbcType=INTEGER},
|
</if>
|
<if test="userName != null">
|
#{userName,jdbcType=VARCHAR},
|
</if>
|
<if test="deviceId != null">
|
#{deviceId,jdbcType=VARCHAR},
|
</if>
|
<if test="xPoint != null">
|
#{xPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="yPoint != null">
|
#{yPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="cTime != null">
|
#{cTime,jdbcType=VARCHAR},
|
</if>
|
<if test="sosType != null">
|
#{sosType,jdbcType=VARCHAR},
|
</if>
|
<if test="msg != null">
|
#{msg,jdbcType=VARCHAR},
|
</if>
|
<if test="imgurl != null">
|
#{imgurl,jdbcType=VARCHAR},
|
</if>
|
<if test="mobile != null">
|
#{mobile,jdbcType=VARCHAR},
|
</if>
|
<if test="smTime != null">
|
#{smTime,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<select id="trajectory" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetTrajectory">
|
SELECT
|
trajectory_id AS trajectoryId,
|
ctime,
|
ltime,
|
sec,
|
user_id AS userId
|
FROM
|
t_helmet_trajectory
|
WHERE
|
ctime = #{ctime} and user_id=#{userId}
|
</select>
|
<insert id="helmetTrajectoryInsert" >
|
insert into t_helmet_trajectory
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="trajectoryId != null">
|
trajectory_id,
|
</if>
|
<if test="ctime != null">
|
ctime,
|
</if>
|
<if test="ltime != null">
|
ltime,
|
</if>
|
<if test="sec != null">
|
sec,
|
</if>
|
<if test="userId != null">
|
user_id,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="trajectoryId != null">
|
#{trajectoryId,jdbcType=INTEGER},
|
</if>
|
<if test="ctime != null">
|
#{ctime,jdbcType=VARCHAR},
|
</if>
|
<if test="ltime != null">
|
#{ltime,jdbcType=VARCHAR},
|
</if>
|
<if test="sec != null">
|
#{sec,jdbcType=VARCHAR},
|
</if>
|
<if test="userId != null">
|
#{userId,jdbcType=INTEGER},
|
</if>
|
</trim>
|
</insert>
|
|
<update id="helmetTrajectoryUpdate">
|
update t_helmet_trajectory
|
<set>
|
<if test="ctime != null">
|
ctime = #{ctime,jdbcType=VARCHAR},
|
</if>
|
<if test="ltime != null">
|
ltime = #{ltime,jdbcType=VARCHAR},
|
</if>
|
<if test="sec != null">
|
sec = #{sec,jdbcType=VARCHAR},
|
</if>
|
<if test="userId != null">
|
user_id = #{userId,jdbcType=INTEGER},
|
</if>
|
</set>
|
where trajectory_id = #{trajectoryId,jdbcType=INTEGER}
|
</update>
|
<select id="helmetMotion" parameterType="java.lang.Integer" resultType="java.lang.String">
|
select times from t_helmet_motion where user_id=#{userId} order by times desc limit 0,1
|
</select>
|
<insert id="helmetMotionInsert">
|
insert into t_helmet_motion
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="motionId != null">
|
motion_id,
|
</if>
|
<if test="userId != null">
|
user_id,
|
</if>
|
<if test="xPoint != null">
|
x_point,
|
</if>
|
<if test="yPoint != null">
|
y_point,
|
</if>
|
<if test="times != null">
|
times,
|
</if>
|
<if test="cAngle != null">
|
c_angle,
|
</if>
|
<if test="cSpeed != null">
|
c_speed,
|
</if>
|
<if test="cTrust != null">
|
c_trust,
|
</if>
|
<if test="smTime != null">
|
sm_time,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="motionId != null">
|
#{motionId,jdbcType=INTEGER},
|
</if>
|
<if test="userId != null">
|
#{userId,jdbcType=INTEGER},
|
</if>
|
<if test="xPoint != null">
|
#{xPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="yPoint != null">
|
#{yPoint,jdbcType=VARCHAR},
|
</if>
|
<if test="times != null">
|
#{times,jdbcType=VARCHAR},
|
</if>
|
<if test="cAngle != null">
|
#{cAngle,jdbcType=VARCHAR},
|
</if>
|
<if test="cSpeed != null">
|
#{cSpeed,jdbcType=VARCHAR},
|
</if>
|
<if test="cTrust != null">
|
#{cTrust,jdbcType=VARCHAR},
|
</if>
|
<if test="smTime != null">
|
#{smTime,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
|
<select id="helmetList" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetDevice">
|
select helmet_device_id as helmetDeviceId,
|
device_num as deviceNum,
|
user_id as userId,
|
user_name as userName
|
from t_helmet_device
|
where 1=1
|
<if test="userName!=null and userName!='' ">
|
and user_name like concat('%',#{userName},'%')
|
</if>
|
<if test="deviceNum!=null and deviceNum!='' ">
|
and device_num like concat('%',#{deviceNum},'%')
|
</if>
|
</select>
|
|
<select id="helmetPictureList" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetPicture">
|
select
|
thp.image_url as imageUrl,
|
thp.user_id as userId,
|
thp.x_point as xPoint,
|
thp.y_point as yPoint,
|
thp.cre_time as creTime,
|
thp.i_id as iId,
|
thp.sm_time as smTime
|
from t_helmet_picture thp
|
where 1=1
|
<if test="userId!=null and userId!='' ">
|
and thp.user_id=#{userId}
|
</if>
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and thp.sm_time between #{strTime} and #{endTime}
|
</if>
|
order by thp.cre_time desc
|
</select>
|
|
<select id="helmetTrajectoryList" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetTrajectory">
|
select
|
trajectory_id as trajectoryId,
|
ctime,
|
ltime,
|
sec
|
from t_helmet_trajectory where 1=1
|
<if test="userId!=null and userId!='' ">
|
and user_id=#{userId}
|
</if>
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and ctime between #{strTime} and #{endTime}
|
</if>
|
</select>
|
|
<select id="helmetTrajectoryTime" resultType="java.lang.String">
|
SELECT
|
SUM( ltime )
|
FROM
|
t_helmet_trajectory
|
WHERE
|
1=1
|
<if test="userId!=null and userId!='' ">
|
and user_id=#{userId}
|
</if>
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and ctime between #{strTime} and #{endTime}
|
</if>
|
GROUP BY
|
user_id
|
</select>
|
|
<select id="helmetMotionList" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetMotion">
|
select
|
motion_id as motionId,
|
user_id as userId,
|
x_point as xPoint,
|
y_point as yPoint,
|
times,
|
c_angle as cAngle,
|
c_speed as cSpeed,
|
c_trust as cTrust,
|
sm_time as smTime
|
from t_helmet_motion
|
where
|
user_id=#{userId}
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and sm_time between #{strTime} and #{endTime}
|
</if>
|
order by times asc
|
</select>
|
|
<insert id="dataValueIn" >
|
insert into t_data_value
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="dataId != null">
|
data_id,
|
</if>
|
<if test="deviceId != null">
|
device_id,
|
</if>
|
<if test="deviceName != null">
|
device_name,
|
</if>
|
<if test="accountNumber != null">
|
account_number,
|
</if>
|
<if test="uploadTime != null">
|
upload_time,
|
</if>
|
<if test="pm25 != null">
|
pm25,
|
</if>
|
<if test="pm10 != null">
|
pm10,
|
</if>
|
<if test="tsp != null">
|
tsp,
|
</if>
|
<if test="temperature != null">
|
temperature,
|
</if>
|
<if test="humidity != null">
|
humidity,
|
</if>
|
<if test="data6 != null">
|
data6,
|
</if>
|
<if test="windSpeed != null">
|
wind_speed,
|
</if>
|
<if test="windDirection != null">
|
wind_direction,
|
</if>
|
<if test="tvoc != null">
|
tvoc,
|
</if>
|
<if test="no2 != null">
|
no2,
|
</if>
|
<if test="co != null">
|
co,
|
</if>
|
<if test="so2 != null">
|
so2,
|
</if>
|
<if test="o3 != null">
|
o3,
|
</if>
|
<if test="noise != null">
|
noise,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="dataId != null">
|
#{dataId,jdbcType=INTEGER},
|
</if>
|
<if test="deviceId != null">
|
#{deviceId,jdbcType=INTEGER},
|
</if>
|
<if test="deviceName != null">
|
#{deviceName,jdbcType=VARCHAR},
|
</if>
|
<if test="accountNumber != null">
|
#{accountNumber,jdbcType=VARCHAR},
|
</if>
|
<if test="uploadTime != null">
|
#{uploadTime,jdbcType=VARCHAR},
|
</if>
|
<if test="pm25 != null">
|
#{pm25,jdbcType=VARCHAR},
|
</if>
|
<if test="pm10 != null">
|
#{pm10,jdbcType=VARCHAR},
|
</if>
|
<if test="tsp != null">
|
#{tsp,jdbcType=VARCHAR},
|
</if>
|
<if test="temperature != null">
|
#{temperature,jdbcType=VARCHAR},
|
</if>
|
<if test="humidity != null">
|
#{humidity,jdbcType=VARCHAR},
|
</if>
|
<if test="data6 != null">
|
#{data6,jdbcType=VARCHAR},
|
</if>
|
<if test="windSpeed != null">
|
#{windSpeed,jdbcType=VARCHAR},
|
</if>
|
<if test="windDirection != null">
|
#{windDirection,jdbcType=VARCHAR},
|
</if>
|
<if test="tvoc != null">
|
#{tvoc,jdbcType=VARCHAR},
|
</if>
|
<if test="no2 != null">
|
#{no2,jdbcType=VARCHAR},
|
</if>
|
<if test="co != null">
|
#{co,jdbcType=VARCHAR},
|
</if>
|
<if test="so2 != null">
|
#{so2,jdbcType=VARCHAR},
|
</if>
|
<if test="o3 != null">
|
#{o3,jdbcType=VARCHAR},
|
</if>
|
<if test="noise != null">
|
#{noise,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
|
<select id="helmetReportTotal" resultType="com.thhy.materials.modules.biz.helmet.entity.dto.ReportNumDto">
|
SELECT
|
COUNT(sm_time) AS num,
|
DATE(sm_time) as smTime
|
FROM
|
t_helmet_report
|
WHERE
|
user_id = #{userId}
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and DATE(sm_time) between #{strTime} and #{endTime}
|
</if>
|
GROUP BY
|
DATE( sm_time )
|
</select>
|
|
<select id="helmetReportUser" resultType="com.thhy.materials.modules.biz.helmet.entity.THelmetReport">
|
select user_id as userId,
|
user_name as userName,
|
sos_type as sosType,
|
x_point as xPoint,
|
y_point as yPoint,
|
sm_time as smTime
|
from t_helmet_report where
|
user_id=#{userId}
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and sm_time between #{strTime} and #{endTime}
|
</if>
|
order by sm_time desc
|
</select>
|
|
<insert id="smockIn" >
|
insert into t_data_smock
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="smokeId != null">
|
smoke_id,
|
</if>
|
<if test="time != null">
|
time,
|
</if>
|
<if test="i00 != null">
|
I00,
|
</if>
|
<if test="i01 != null">
|
I01,
|
</if>
|
<if test="i02 != null">
|
I02,
|
</if>
|
<if test="i03 != null">
|
I03,
|
</if>
|
<if test="i04 != null">
|
I04,
|
</if>
|
<if test="i05 != null">
|
I05,
|
</if>
|
<if test="i06 != null">
|
I06,
|
</if>
|
<if test="i07 != null">
|
I07,
|
</if>
|
<if test="i10 != null">
|
I10,
|
</if>
|
<if test="i11 != null">
|
I11,
|
</if>
|
<if test="q00 != null">
|
Q00,
|
</if>
|
<if test="q01 != null">
|
Q01,
|
</if>
|
<if test="q02 != null">
|
Q02,
|
</if>
|
<if test="q03 != null">
|
Q03,
|
</if>
|
<if test="q04 != null">
|
Q04,
|
</if>
|
<if test="q05 != null">
|
Q05,
|
</if>
|
<if test="vb0 != null">
|
VB0,
|
</if>
|
<if test="vb10 != null">
|
VB10,
|
</if>
|
<if test="vb11 != null">
|
VB11,
|
</if>
|
<if test="vb12 != null">
|
VB12,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="smokeId != null">
|
#{smokeId,jdbcType=INTEGER},
|
</if>
|
<if test="time != null">
|
#{time,jdbcType=VARCHAR},
|
</if>
|
<if test="i00 != null">
|
#{i00,jdbcType=VARCHAR},
|
</if>
|
<if test="i01 != null">
|
#{i01,jdbcType=VARCHAR},
|
</if>
|
<if test="i02 != null">
|
#{i02,jdbcType=VARCHAR},
|
</if>
|
<if test="i03 != null">
|
#{i03,jdbcType=VARCHAR},
|
</if>
|
<if test="i04 != null">
|
#{i04,jdbcType=VARCHAR},
|
</if>
|
<if test="i05 != null">
|
#{i05,jdbcType=VARCHAR},
|
</if>
|
<if test="i06 != null">
|
#{i06,jdbcType=VARCHAR},
|
</if>
|
<if test="i07 != null">
|
#{i07,jdbcType=VARCHAR},
|
</if>
|
<if test="i10 != null">
|
#{i10,jdbcType=VARCHAR},
|
</if>
|
<if test="i11 != null">
|
#{i11,jdbcType=VARCHAR},
|
</if>
|
<if test="q00 != null">
|
#{q00,jdbcType=VARCHAR},
|
</if>
|
<if test="q01 != null">
|
#{q01,jdbcType=VARCHAR},
|
</if>
|
<if test="q02 != null">
|
#{q02,jdbcType=VARCHAR},
|
</if>
|
<if test="q03 != null">
|
#{q03,jdbcType=VARCHAR},
|
</if>
|
<if test="q04 != null">
|
#{q04,jdbcType=VARCHAR},
|
</if>
|
<if test="q05 != null">
|
#{q05,jdbcType=VARCHAR},
|
</if>
|
<if test="vb0 != null">
|
#{vb0,jdbcType=VARCHAR},
|
</if>
|
<if test="vb10 != null">
|
#{vb10,jdbcType=VARCHAR},
|
</if>
|
<if test="vb11 != null">
|
#{vb11,jdbcType=VARCHAR},
|
</if>
|
<if test="vb12 != null">
|
#{vb12,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
|
<select id="dataSmockList" resultType="com.thhy.materials.modules.biz.helmet.entity.TDataSmock">
|
select
|
smoke_id as smokeId,
|
`time` as `time`,
|
I00 as i00,
|
I01 as i01,
|
I02 as i02,
|
I03 as i03,
|
I04 as i04,
|
I05 as i05,
|
I06 as i06,
|
I07 as i07,
|
I10 as i10,
|
I11 as i11,
|
Q00 as q00,
|
Q01 as q01,
|
Q02 as q02,
|
Q03 as q03,
|
Q04 as q04,
|
Q05 as q05,
|
VB0 as vb0,
|
VB10 as vb10,
|
VB11 as vb11,
|
VB12 as vb12
|
from t_data_smock
|
where 1=1
|
<if test="strTime!=null and endTime!=null and strTime!='' and endTime!='' ">
|
and `time` between #{strTime} and #{endTime}
|
</if>
|
order by `time` desc
|
</select>
|
<select id="dataValuesList" resultType="com.thhy.materials.modules.biz.helmet.entity.TDataValue">
|
select
|
data_id as dataId,
|
device_id as deviceId,
|
device_name as deviceName,
|
account_number as accountNumber,
|
upload_time as uploadTime,
|
pm25 as pm25,
|
pm10 as pm10,
|
tsp as tsp,
|
temperature as temperature,
|
humidity as humidity,
|
data6 as data6,
|
wind_speed as windSpeed,
|
wind_direction as windDirection,
|
tvoc as tvoc,
|
no2 as no2,
|
co as co,
|
so2 as so2,
|
o3 as o3,
|
noise as noise
|
from t_data_value
|
where 1=1
|
<if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' ">
|
and upload_time between #{strTime} and #{endTime}
|
</if>
|
order by upload_time desc
|
</select>
|
<insert id="dataBox" >
|
insert into t_data_ai
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="aiId != null">
|
ai_id,
|
</if>
|
<if test="rtspUrl != null">
|
rtsp_url,
|
</if>
|
<if test="boxId != null">
|
box_id,
|
</if>
|
<if test="type != null">
|
type,
|
</if>
|
<if test="typeName != null">
|
type_name,
|
</if>
|
<if test="boxName != null">
|
box_name,
|
</if>
|
<if test="deviceName != null">
|
device_name,
|
</if>
|
<if test="deviceId != null">
|
device_id,
|
</if>
|
<if test="channelNo != null">
|
channel_no,
|
</if>
|
<if test="enterCode != null">
|
enter_code,
|
</if>
|
<if test="enterName != null">
|
enter_name,
|
</if>
|
<if test="signTime != null">
|
sign_time,
|
</if>
|
<if test="x != null">
|
x,
|
</if>
|
<if test="y != null">
|
y,
|
</if>
|
<if test="w != null">
|
w,
|
</if>
|
<if test="h != null">
|
h,
|
</if>
|
<if test="messagerType != null">
|
messager_type,
|
</if>
|
<if test="eBike != null">
|
e_bike,
|
</if>
|
<if test="smoke != null">
|
smoke,
|
</if>
|
<if test="fire != null">
|
fire,
|
</if>
|
<if test="isExist != null">
|
is_exist,
|
</if>
|
<if test="ext != null">
|
ext,
|
</if>
|
<if test="tanker != null">
|
tanker,
|
</if>
|
<if test="sudire != null">
|
sudire,
|
</if>
|
<if test="fireControl != null">
|
fire_control,
|
</if>
|
<if test="cover != null">
|
cover,
|
</if>
|
<if test="licensePlateNumber != null">
|
license_plate_number,
|
</if>
|
<if test="illegalParking != null">
|
illegal_parking,
|
</if>
|
<if test="age != null">
|
age,
|
</if>
|
<if test="gender != null">
|
gender,
|
</if>
|
<if test="glasses != null">
|
glasses,
|
</if>
|
<if test="mask != null">
|
mask,
|
</if>
|
<if test="certifiedAvatarUrl != null">
|
certified_avatar_url,
|
</if>
|
<if test="faceId != null">
|
face_id,
|
</if>
|
<if test="personType != null">
|
person_type,
|
</if>
|
<if test="passStatus != null">
|
pass_status,
|
</if>
|
<if test="faceMaxSorce != null">
|
face_max_sorce,
|
</if>
|
<if test="personName != null">
|
person_name,
|
</if>
|
<if test="trackId != null">
|
track_id,
|
</if>
|
<if test="score != null">
|
score,
|
</if>
|
<if test="count != null">
|
count,
|
</if>
|
<if test="smoking != null">
|
smoking,
|
</if>
|
<if test="isInQuadrangle != null">
|
is_in_quadrangle,
|
</if>
|
<if test="climbFence != null">
|
climb_fence,
|
</if>
|
<if test="safetyHat != null">
|
safety_hat,
|
</if>
|
<if test="reflective != null">
|
reflective,
|
</if>
|
<if test="calling != null">
|
calling,
|
</if>
|
<if test="assemble != null">
|
assemble,
|
</if>
|
<if test="isTooling != null">
|
is_tooling,
|
</if>
|
<if test="tumble != null">
|
tumble,
|
</if>
|
<if test="sleeping != null">
|
sleeping,
|
</if>
|
<if test="humanCountSum != null">
|
human_count_sum,
|
</if>
|
<if test="businessDurationTime != null">
|
business_duration_time,
|
</if>
|
<if test="pinCountSum != null">
|
pin_count_sum,
|
</if>
|
<if test="poutCountSum != null">
|
pout_count_sum,
|
</if>
|
<if test="pinSingle != null">
|
pin_single,
|
</if>
|
<if test="poutSingle != null">
|
pout_single,
|
</if>
|
<if test="signBigAvatar != null">
|
sign_big_avatar,
|
</if>
|
<if test="signAvatar != null">
|
sign_avatar,
|
</if>
|
<if test="videoBase64 != null">
|
video_base64,
|
</if>
|
<if test="humanCoor != null">
|
human_coor,
|
</if>
|
<if test="faceAttrSum != null">
|
face_attr_sum,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="aiId != null">
|
#{aiId,jdbcType=INTEGER},
|
</if>
|
<if test="rtspUrl != null">
|
#{rtspUrl,jdbcType=VARCHAR},
|
</if>
|
<if test="boxId != null">
|
#{boxId,jdbcType=INTEGER},
|
</if>
|
<if test="type != null">
|
#{type,jdbcType=INTEGER},
|
</if>
|
<if test="typeName != null">
|
#{typeName,jdbcType=VARCHAR},
|
</if>
|
<if test="boxName != null">
|
#{boxName,jdbcType=VARCHAR},
|
</if>
|
<if test="deviceName != null">
|
#{deviceName,jdbcType=VARCHAR},
|
</if>
|
<if test="deviceId != null">
|
#{deviceId,jdbcType=VARCHAR},
|
</if>
|
<if test="channelNo != null">
|
#{channelNo,jdbcType=VARCHAR},
|
</if>
|
<if test="enterCode != null">
|
#{enterCode,jdbcType=VARCHAR},
|
</if>
|
<if test="enterName != null">
|
#{enterName,jdbcType=VARCHAR},
|
</if>
|
<if test="signTime != null">
|
#{signTime,jdbcType=VARCHAR},
|
</if>
|
<if test="x != null">
|
#{x,jdbcType=INTEGER},
|
</if>
|
<if test="y != null">
|
#{y,jdbcType=INTEGER},
|
</if>
|
<if test="w != null">
|
#{w,jdbcType=INTEGER},
|
</if>
|
<if test="h != null">
|
#{h,jdbcType=INTEGER},
|
</if>
|
<if test="messagerType != null">
|
#{messagerType,jdbcType=VARCHAR},
|
</if>
|
<if test="eBike != null">
|
#{eBike,jdbcType=INTEGER},
|
</if>
|
<if test="smoke != null">
|
#{smoke,jdbcType=INTEGER},
|
</if>
|
<if test="fire != null">
|
#{fire,jdbcType=INTEGER},
|
</if>
|
<if test="isExist != null">
|
#{isExist,jdbcType=INTEGER},
|
</if>
|
<if test="ext != null">
|
#{ext,jdbcType=INTEGER},
|
</if>
|
<if test="tanker != null">
|
#{tanker,jdbcType=INTEGER},
|
</if>
|
<if test="sudire != null">
|
#{sudire,jdbcType=INTEGER},
|
</if>
|
<if test="fireControl != null">
|
#{fireControl,jdbcType=INTEGER},
|
</if>
|
<if test="cover != null">
|
#{cover,jdbcType=INTEGER},
|
</if>
|
<if test="licensePlateNumber != null">
|
#{licensePlateNumber,jdbcType=VARCHAR},
|
</if>
|
<if test="illegalParking != null">
|
#{illegalParking,jdbcType=INTEGER},
|
</if>
|
<if test="age != null">
|
#{age,jdbcType=INTEGER},
|
</if>
|
<if test="gender != null">
|
#{gender,jdbcType=INTEGER},
|
</if>
|
<if test="glasses != null">
|
#{glasses,jdbcType=INTEGER},
|
</if>
|
<if test="mask != null">
|
#{mask,jdbcType=INTEGER},
|
</if>
|
<if test="certifiedAvatarUrl != null">
|
#{certifiedAvatarUrl,jdbcType=VARCHAR},
|
</if>
|
<if test="faceId != null">
|
#{faceId,jdbcType=INTEGER},
|
</if>
|
<if test="personType != null">
|
#{personType,jdbcType=INTEGER},
|
</if>
|
<if test="passStatus != null">
|
#{passStatus,jdbcType=VARCHAR},
|
</if>
|
<if test="faceMaxSorce != null">
|
#{faceMaxSorce,jdbcType=VARCHAR},
|
</if>
|
<if test="personName != null">
|
#{personName,jdbcType=VARCHAR},
|
</if>
|
<if test="trackId != null">
|
#{trackId,jdbcType=INTEGER},
|
</if>
|
<if test="score != null">
|
#{score,jdbcType=VARCHAR},
|
</if>
|
<if test="count != null">
|
#{count,jdbcType=INTEGER},
|
</if>
|
<if test="smoking != null">
|
#{smoking,jdbcType=INTEGER},
|
</if>
|
<if test="isInQuadrangle != null">
|
#{isInQuadrangle,jdbcType=INTEGER},
|
</if>
|
<if test="climbFence != null">
|
#{climbFence,jdbcType=INTEGER},
|
</if>
|
<if test="safetyHat != null">
|
#{safetyHat,jdbcType=INTEGER},
|
</if>
|
<if test="reflective != null">
|
#{reflective,jdbcType=INTEGER},
|
</if>
|
<if test="calling != null">
|
#{calling,jdbcType=INTEGER},
|
</if>
|
<if test="assemble != null">
|
#{assemble,jdbcType=INTEGER},
|
</if>
|
<if test="isTooling != null">
|
#{isTooling,jdbcType=INTEGER},
|
</if>
|
<if test="tumble != null">
|
#{tumble,jdbcType=INTEGER},
|
</if>
|
<if test="sleeping != null">
|
#{sleeping,jdbcType=INTEGER},
|
</if>
|
<if test="humanCountSum != null">
|
#{humanCountSum,jdbcType=INTEGER},
|
</if>
|
<if test="businessDurationTime != null">
|
#{businessDurationTime,jdbcType=VARCHAR},
|
</if>
|
<if test="pinCountSum != null">
|
#{pinCountSum,jdbcType=INTEGER},
|
</if>
|
<if test="poutCountSum != null">
|
#{poutCountSum,jdbcType=INTEGER},
|
</if>
|
<if test="pinSingle != null">
|
#{pinSingle,jdbcType=INTEGER},
|
</if>
|
<if test="poutSingle != null">
|
#{poutSingle,jdbcType=INTEGER},
|
</if>
|
<if test="signBigAvatar != null">
|
#{signBigAvatar,jdbcType=LONGVARCHAR},
|
</if>
|
<if test="signAvatar != null">
|
#{signAvatar,jdbcType=LONGVARCHAR},
|
</if>
|
<if test="videoBase64 != null">
|
#{videoBase64,jdbcType=LONGVARCHAR},
|
</if>
|
<if test="humanCoor != null">
|
#{humanCoor,jdbcType=LONGVARCHAR},
|
</if>
|
<if test="faceAttrSum != null">
|
#{faceAttrSum,jdbcType=LONGVARCHAR},
|
</if>
|
</trim>
|
</insert>
|
|
<select id="dataAIList" resultType="com.thhy.materials.modules.biz.helmet.entity.TDataAi">
|
select
|
sign_time as signTime,
|
box_name as boxName,
|
device_name as deviceName,
|
type_name as typeName,
|
`type` as `type`,
|
sign_avatar as signAvatar
|
from t_data_ai where
|
1=1
|
<if test="strTime!=null and strTime!='' and endTime!='' and endTime!=null ">
|
and sign_time between #{strTime} and #{endTime}
|
</if>
|
<if test="type!=null and type!='' ">
|
and `type` =#{type}
|
</if>
|
order by sign_time desc
|
</select>
|
<select id="dataAIType" resultType="com.thhy.materials.modules.biz.helmet.entity.dto.TypeName">
|
select `type`,
|
type_name as typeName
|
from t_data_ai_type
|
order by `type` asc
|
</select>
|
</mapper>
|