浏览代码

修复 测报灯未配置识别开关时候,默认返回未识别

zhaiyifei 10 月之前
父节点
当前提交
7560f208b7

+ 3 - 0
src/main/java/com/yunfeiyun/agmp/iotm/device/pest/controller/IotDeviceCbdController.java

@@ -176,6 +176,9 @@ public class IotDeviceCbdController extends BaseController {
         devBidList.add(devInfo.getDevBid());
         Map<String, Long> imgCountMap = getImgCountMap(devBidList);
         devInfo.setImgCount(imgCountMap.getOrDefault(devBid, 0L));
+        if(!"1".equals(devInfo.getDevRecogtype())){
+            devInfo.setDevRecogtype("0");
+        }
         return success(devInfo);
     }