|
|
|
@ -43,8 +43,11 @@
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="shutType != null ">and shut_type_id = #{shutType}</if>
|
|
|
|
<if test="shutType != null ">and shut_type_id = #{shutType}</if>
|
|
|
|
<if test="shutReason != null and shutReason != ''">and shut_reason = #{shutReason}</if>
|
|
|
|
<if test="shutReason != null and shutReason != ''">and shut_reason = #{shutReason}</if>
|
|
|
|
<if test="shutBeginTime != null ">and shut_begin_time >= #{shutBeginTime}</if>
|
|
|
|
<if test="params != null and params.beginTime != null and params.endTime != null">
|
|
|
|
<if test="shutEndTime != null ">and #{shutEndTime}>=shut_end_time</if>
|
|
|
|
and shut_begin_time between #{params.beginTime} and #{params.endTime}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="shutBeginTime != null ">and shut_begin_time >= #{shutBeginTime}</if>
|
|
|
|
|
|
|
|
<if test="shutEndTime != null ">and #{shutEndTime} >= shut_end_time</if>
|
|
|
|
<if test="shutTime != null ">and shut_time = #{shutTime}</if>
|
|
|
|
<if test="shutTime != null ">and shut_time = #{shutTime}</if>
|
|
|
|
<if test="deviceCode != null and deviceCode != ''">and machine_id in (select OBJ_ID from base_deviceledger where device_code = #{deviceCode})</if>
|
|
|
|
<if test="deviceCode != null and deviceCode != ''">and machine_id in (select OBJ_ID from base_deviceledger where device_code = #{deviceCode})</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|