修改bug
This commit is contained in:
parent
a4161b39bb
commit
84ea072d82
|
@ -65,10 +65,10 @@
|
|||
<if test="params.nuId != null and params.nuId != ''">
|
||||
AND a.nu_id = #{params.nuId}
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 1">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 1">
|
||||
AND a.nu_id is not null
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 0">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 0">
|
||||
AND a.nu_id is null
|
||||
</if>
|
||||
</where>
|
||||
|
|
|
@ -2645,6 +2645,14 @@ public class CameraInfoServiceImpl extends ServiceImpl<CameraInfoMapper, CameraI
|
|||
return "1";//参数为空
|
||||
}
|
||||
|
||||
QueryWrapper<CameraInfo> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("nu_id",nuId);
|
||||
List<CameraInfo> allList =baseMapper.selectList(queryWrapper);
|
||||
//先清空掉原来的数据
|
||||
for(CameraInfo cameraInfo : allList){
|
||||
baseMapper.updateDepartById(cameraInfo);
|
||||
}
|
||||
|
||||
|
||||
List<Map<String,Object>> list = (List<Map<String,Object>>) cameraList.get("list");
|
||||
for (Map<String, Object> map : list) {
|
||||
|
|
|
@ -49,10 +49,10 @@
|
|||
<if test="params.csq != null and params.csq != '' and params.csq == 3">
|
||||
AND b.csq < 10
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 1">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 1">
|
||||
AND a.nu_id is not null
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 0">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 0">
|
||||
AND a.nu_id is null
|
||||
</if>
|
||||
</where>
|
||||
|
|
|
@ -16,6 +16,7 @@ import com.nu.modules.tq.common.service.ITqApiLogService;
|
|||
import com.nu.modules.tq.utils.HttpTool;
|
||||
import com.nu.modules.tq.utils.SignTool;
|
||||
import com.nu.modules.tq.utils.TqApi;
|
||||
import com.nu.modules.tq.water.entity.WaterMeter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.nu.modules.tq.electricity.entity.ElectricityMeter;
|
||||
import com.nu.modules.tq.electricity.mapper.ElectricityMeterMapper;
|
||||
|
@ -566,6 +567,13 @@ public class ElectricityMeterServiceImpl extends ServiceImpl<ElectricityMeterMap
|
|||
return "1";//参数为空
|
||||
}
|
||||
|
||||
QueryWrapper<ElectricityMeter> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("nu_id",nuId);
|
||||
List<ElectricityMeter> allList =baseMapper.selectList(queryWrapper);
|
||||
//先清空掉原来的数据
|
||||
for(ElectricityMeter cameraInfo : allList){
|
||||
baseMapper.updateDepartById(cameraInfo);
|
||||
}
|
||||
|
||||
List<Map<String,Object>> list = (List<Map<String,Object>>) electricityList.get("list");
|
||||
for (Map<String, Object> map : list) {
|
||||
|
|
|
@ -51,10 +51,10 @@
|
|||
<if test="params.csq != null and params.csq != '' and params.csq == 3">
|
||||
AND b.csq < 10
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 1">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 1">
|
||||
AND a.nu_id is not null
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 0">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 0">
|
||||
AND a.nu_id is null
|
||||
</if>
|
||||
</where>
|
||||
|
|
|
@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.nu.modules.syncLog.entity.SyncLog;
|
||||
import com.nu.modules.syncLog.service.ISyncLogService;
|
||||
import com.nu.modules.tplink.camera.entity.CameraInfo;
|
||||
import com.nu.modules.tq.common.entity.TqApiLog;
|
||||
import com.nu.modules.tq.common.service.ITqApiLogService;
|
||||
import com.nu.modules.tq.electricity.entity.ElectricityMeter;
|
||||
|
@ -578,6 +579,13 @@ public class WaterMeterServiceImpl extends ServiceImpl<WaterMeterMapper, WaterMe
|
|||
return "1";//参数为空
|
||||
}
|
||||
|
||||
QueryWrapper<WaterMeter> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("nu_id",nuId);
|
||||
List<WaterMeter> allList =baseMapper.selectList(queryWrapper);
|
||||
//先清空掉原来的数据
|
||||
for(WaterMeter cameraInfo : allList){
|
||||
baseMapper.updateDepartById(cameraInfo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -50,10 +50,10 @@
|
|||
<if test="params.status != null and params.status != ''">
|
||||
AND status = #{params.status}
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 1">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 1">
|
||||
AND a.nu_id is not null
|
||||
</if>
|
||||
<if test="params.checkType != null and params.checkType == 0">
|
||||
<if test="params.checkType != null and params.checkType != '' and params.checkType == 0">
|
||||
AND a.nu_id is null
|
||||
</if>
|
||||
</where>
|
||||
|
|
|
@ -534,6 +534,14 @@ public class HumidDeviceServiceImpl extends ServiceImpl<HumidDeviceMapper, Humid
|
|||
return "1";//参数为空
|
||||
}
|
||||
|
||||
QueryWrapper<HumidDevice> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("nu_id",nuId);
|
||||
List<HumidDevice> allList =baseMapper.selectList(queryWrapper);
|
||||
//先清空掉原来的数据
|
||||
for(HumidDevice cameraInfo : allList){
|
||||
baseMapper.updateDepartById(cameraInfo);
|
||||
}
|
||||
|
||||
|
||||
List<Map<String,Object>> list = (List<Map<String,Object>>) humidList.get("list");
|
||||
for (Map<String, Object> map : list) {
|
||||
|
|
Loading…
Reference in New Issue