|
|
|
@ -20,6 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="confirmFlag" column="confirmFlag" />
|
|
|
|
|
<result property="monitorName" column="monitor_name" />
|
|
|
|
|
<result property="monitorType" column="monitor_type" />
|
|
|
|
|
|
|
|
|
|
<result property="pm1" column="pm1"/>
|
|
|
|
|
<result property="pm2" column="pm2"/>
|
|
|
|
|
<result property="pm10" column="pm10"/>
|
|
|
|
|
<result property="standby" column="standby"/>
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectTWTempertureDataVo">
|
|
|
|
@ -38,8 +44,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
twtd.confirmFlag,
|
|
|
|
|
ebmi.monitor_name,
|
|
|
|
|
|
|
|
|
|
ebmi.monitor_type
|
|
|
|
|
ebmi.monitor_type,
|
|
|
|
|
|
|
|
|
|
twtd.pm1,
|
|
|
|
|
twtd.pm2,
|
|
|
|
|
twtd.pm10,
|
|
|
|
|
twtd.standby
|
|
|
|
|
from T_W_TempertureData twtd
|
|
|
|
|
left join ems_base_monitor_info ebmi on twtd.monitorId = ebmi.monitor_code
|
|
|
|
|
</sql>
|
|
|
|
@ -64,22 +74,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</if>
|
|
|
|
|
<if test="confirmFlag != null "> and twtd.confirmFlag = #{confirmFlag}</if>
|
|
|
|
|
<if test="monitorType != null "> and ebmi.monitor_type = #{monitorType}</if>
|
|
|
|
|
<if test="pm1 != null "> and twtd.pm1 = #{pm1}</if>
|
|
|
|
|
<if test="pm2 != null "> and twtd.pm2 = #{pm2}</if>
|
|
|
|
|
<if test="pm10 != null "> and twtd.pm10 = #{pm10}</if>
|
|
|
|
|
<if test="standby != null "> and twtd.standby = #{standby}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by twtd.recodeTime desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectTWTempertureDataByObjid" parameterType="Long" resultMap="TWTempertureDataResult">
|
|
|
|
|
<include refid="selectTWTempertureDataVo"/>
|
|
|
|
|
where objid = #{objid}
|
|
|
|
|
where twtd.objid = #{objid}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectIotInstantList" parameterType="TWTempertureData" resultMap="TWTempertureDataResult">
|
|
|
|
|
<include refid="selectTWTempertureDataVo"></include>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="monitorId != null and monitorId != ''">and twtd.monitorId = #{monitorId}</if>
|
|
|
|
|
<if test="params.beginCollectTime != null and params.beginCollectTime != '' and params.endCollectTime != null and params.endCollectTime != ''">
|
|
|
|
|
and collectTime between #{params.beginCollectTime} and #{params.endCollectTime}</if>
|
|
|
|
|
and twtd.collectTime between #{params.beginCollectTime} and #{params.endCollectTime}</if>
|
|
|
|
|
<if test="params.beginRecordTime != null and params.beginRecordTime != '' and params.endRecordTime != null and params.endRecordTime != ''">
|
|
|
|
|
and recodeTime between #{params.beginRecordTime} and #{params.endRecordTime}</if>
|
|
|
|
|
and twtd.recodeTime between #{params.beginRecordTime} and #{params.endRecordTime}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by twtd.collectTime
|
|
|
|
|
</select>
|
|
|
|
@ -107,6 +121,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="confirmPersonID != null">confirmPersonID,</if>
|
|
|
|
|
<if test="confirmTime != null">confirmTime,</if>
|
|
|
|
|
<if test="confirmFlag != null">confirmFlag,</if>
|
|
|
|
|
<if test="pm1 != null">pm1,</if>
|
|
|
|
|
<if test="pm2 != null">pm2,</if>
|
|
|
|
|
<if test="pm10 != null">pm10,</if>
|
|
|
|
|
<if test="standby != null">standby,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="monitorId != null">#{monitorId},</if>
|
|
|
|
@ -121,6 +139,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="confirmPersonID != null">#{confirmPersonID},</if>
|
|
|
|
|
<if test="confirmTime != null">#{confirmTime},</if>
|
|
|
|
|
<if test="confirmFlag != null">#{confirmFlag},</if>
|
|
|
|
|
|
|
|
|
|
<if test="pm1 != null">#{pm1},</if>
|
|
|
|
|
<if test="pm2 != null">#{pm2},</if>
|
|
|
|
|
<if test="pm10 != null">#{pm10},</if>
|
|
|
|
|
<if test="standby != null">#{standby},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -139,6 +162,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="confirmPersonID != null">confirmPersonID = #{confirmPersonID},</if>
|
|
|
|
|
<if test="confirmTime != null">confirmTime = #{confirmTime},</if>
|
|
|
|
|
<if test="confirmFlag != null">confirmFlag = #{confirmFlag},</if>
|
|
|
|
|
|
|
|
|
|
<if test="pm1 != null">pm1 = #{pm1},</if>
|
|
|
|
|
<if test="pm2 != null">pm2 = #{pm2},</if>
|
|
|
|
|
<if test="pm10 != null">pm10 = #{pm10},</if>
|
|
|
|
|
<if test="standby != null">standby = #{standby},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where objid = #{objid}
|
|
|
|
|
</update>
|
|
|
|
|