diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/kitchen/KitchenDeviceSensorRecordMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/kitchen/KitchenDeviceSensorRecordMapper.xml
index 39faa0d..dc5ae68 100644
--- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/kitchen/KitchenDeviceSensorRecordMapper.xml
+++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/kitchen/KitchenDeviceSensorRecordMapper.xml
@@ -57,6 +57,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{deviceType}
+
+ AND !((kdsm.measure_code = 'temperature'
+ and kdsm.measure_type = 1
+ and kdsr.measure_data between kdsm.measure_min_value and kdsm.measure_max_value)
+ or (kdsm.measure_code = 'humidity'
+ and kdsm.measure_type = 1
+ and kdsr.measure_data between kdsm.measure_min_value and kdsm.measure_max_value)
+ or (kdsm.measure_code = 'smoke'
+ and kdsm.measure_type = 1
+ and kdsr.measure_data kdsm.measure_max_value)
+ )
+
and (