Browse Source

soc-modules-host模块,获取诊断绑定保存优化

humingshi-7@163.com 10 tháng trước cách đây
mục cha
commit
124280a49f

+ 2 - 0
soc-modules/soc-modules-host/src/main/java/com/xunmei/host/iot/service/impl/IotCameraMissionRuleServiceImpl.java

@@ -173,6 +173,7 @@ public class IotCameraMissionRuleServiceImpl implements IotCameraMissionRuleServ
                     //本主机无摄像机绑定,删除关联
                     QueryWrapper<IotDeviceDiagnoseMissionCh> wrapperCh = new QueryWrapper<>();
                     wrapperCh.eq("iot_token", iotToken);
+                    wrapperCh.eq("mission_id",missionId);
                     missionChMapper.delete(wrapperCh);
                 }
             }
@@ -253,6 +254,7 @@ public class IotCameraMissionRuleServiceImpl implements IotCameraMissionRuleServ
                     //本主机无摄像机绑定,删除关联
                     QueryWrapper<IotDeviceDiagnoseThresholdCh> wrapperCh = new QueryWrapper<>();
                     wrapperCh.eq("iot_token", iotToken);
+                    wrapperCh.eq("threshold_code",thresholdReq.getThresholdCode());
                     thresholdChMapper.delete(wrapperCh);
                 }
                 //更新绑定通道数量