diff --git a/os-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml b/os-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml index f02054f..97a9c0f 100644 --- a/os-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml +++ b/os-ems/src/main/resources/mapper/ems/record/TWTempertureDataMapper.xml @@ -44,7 +44,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and twtd.monitorId = #{monitorId} - and twtd.collectTime = #{collectTime} + + and twtd.collectTime between #{params.beginCollectTime} and #{params.endCollectTime} + and twtd.tempreture = #{tempreture} and twtd.humidity = #{humidity} and twtd.illuminance = #{illuminance} @@ -53,9 +55,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and twtd.recodeTime = #{recodeTime} and twtd.alarmType = #{alarmType} and twtd.confirmPersonID = #{confirmPersonID} - and twtd.confirmTime = #{confirmTime} + + and twtd.recodeTime between #{params.beginRecordTime} and #{params.endRecordTime} + and twtd.confirmFlag = #{confirmFlag} + order by twtd.collectTime desc