实体类调整
This commit is contained in:
@@ -31,7 +31,7 @@ public interface PmsGeneralDeviceInfoClient {
|
|||||||
HttpResult<List<PmsGeneralDeviceDTO>> getPmsDeviceInfoWithInOrg(@RequestBody PmsDeviceInfoParam pmsDeviceInfoParam);
|
HttpResult<List<PmsGeneralDeviceDTO>> getPmsDeviceInfoWithInOrg(@RequestBody PmsDeviceInfoParam pmsDeviceInfoParam);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* 获取指定组织下台账综合信息
|
* 获取配网指定组织下台账综合信息
|
||||||
* @author cdf
|
* @author cdf
|
||||||
* @date 2022/10/18 10:12
|
* @date 2022/10/18 10:12
|
||||||
* @param pmsDeviceInfoParam 查询条件
|
* @param pmsDeviceInfoParam 查询条件
|
||||||
|
|||||||
@@ -915,8 +915,23 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl
|
|||||||
monitorMapper.updateById(monitorPO);
|
monitorMapper.updateById(monitorPO);
|
||||||
}else if(Objects.isNull(monitor)){
|
}else if(Objects.isNull(monitor)){
|
||||||
monitorMapper.deleteById(lineBak.getId());
|
monitorMapper.deleteById(lineBak.getId());
|
||||||
|
overlimitMapper.deleteById(lineBak.getId());
|
||||||
monitorPO.setId(lineBak.getId());
|
monitorPO.setId(lineBak.getId());
|
||||||
monitorMapper.insert(monitorPO);
|
monitorMapper.insert(monitorPO);
|
||||||
|
}else{
|
||||||
|
monitorMapper.deleteById(monitor.getId());
|
||||||
|
overlimitMapper.deleteById(monitor.getId());
|
||||||
|
monitorPO.setId(lineBak.getId());
|
||||||
|
monitorMapper.insert(monitorPO);
|
||||||
|
}
|
||||||
|
|
||||||
|
Overlimit overlimit = COverlimitUtil.globalAssemble(Float.parseFloat(scale.getValue()), oracleTerminalExcel.getDealCapacity(), oracleTerminalExcel.getDevCapacity(), oracleTerminalExcel.getShortCapacity(), 0, 0);
|
||||||
|
overlimit.setId(monitorPO.getId());
|
||||||
|
Overlimit overlimitRes = overlimitMapper.selectById(monitorPO.getId());
|
||||||
|
if (Objects.isNull(overlimitRes)) {
|
||||||
|
overlimitMapper.insert(overlimit);
|
||||||
|
} else {
|
||||||
|
overlimitMapper.updateById(overlimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user