소스 검색

台账日志 增加参数,温度范围查询

yanliming 5 년 전
부모
커밋
0c8bd63a2b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      web/src/main/java/com/jpsoft/smart/modules/base/controller/PersonDeviceLogController.java

+ 3 - 0
web/src/main/java/com/jpsoft/smart/modules/base/controller/PersonDeviceLogController.java

@@ -108,6 +108,9 @@ public class PersonDeviceLogController {
             String minTemperature = "";
             String maxTemperature = "";
 
+            if(temperatureRangeArray.length == 1){
+                minTemperature = temperatureRangeArray[0];
+            }
             if(temperatureRangeArray.length == 2){
                 minTemperature = temperatureRangeArray[0];
                 maxTemperature = temperatureRangeArray[1];