diff --git a/aucma-dms/src/main/resources/mapper/dms/DmsRecordShutDownMapper.xml b/aucma-dms/src/main/resources/mapper/dms/DmsRecordShutDownMapper.xml index 5aa007b..ce2af2c 100644 --- a/aucma-dms/src/main/resources/mapper/dms/DmsRecordShutDownMapper.xml +++ b/aucma-dms/src/main/resources/mapper/dms/DmsRecordShutDownMapper.xml @@ -43,8 +43,11 @@ and shut_type_id = #{shutType} and shut_reason = #{shutReason} - and shut_begin_time >= #{shutBeginTime} - and #{shutEndTime}>=shut_end_time + + and shut_begin_time between #{params.beginTime} and #{params.endTime} + + and shut_begin_time >= #{shutBeginTime} + and #{shutEndTime} >= shut_end_time and shut_time = #{shutTime} and machine_id in (select OBJ_ID from base_deviceledger where device_code = #{deviceCode})