|
@@ -497,13 +497,21 @@ public class ZhcxProjectManageServiceImpl extends ServiceImpl<ZhcxProjectManageD
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void addScreenRectifyData() {
|
|
|
+ public void addScreenRectifyData(Map<String, Object> map) {
|
|
|
//删除整改数据
|
|
|
DelPhysicalParam param = DelPhysicalParam.builder()
|
|
|
.type("rectify_complete")
|
|
|
.build();
|
|
|
+ Object projectIdObj = map.get("projectId");
|
|
|
+ Object machinenoObj = map.get("machineno");
|
|
|
+ if(projectIdObj != null && machinenoObj != null){
|
|
|
+ String projectId = projectIdObj.toString();
|
|
|
+ String machineno = machinenoObj.toString();
|
|
|
+ param.setPrjId(projectId);
|
|
|
+ param.setMachineNo(machineno);
|
|
|
+ }
|
|
|
zhcxProjectDeviceIndicatorService.delPhysical(param);
|
|
|
- List<ZhcxProjectRectifyMachineVo> listData = zhcxProjectManageDao.getScreenRectifyData();
|
|
|
+ List<ZhcxProjectRectifyMachineVo> listData = zhcxProjectManageDao.getScreenRectifyData(map);
|
|
|
Map<String, List<ZhcxProjectRectifyMachineVo>> collect =
|
|
|
listData.stream().filter(item -> Objects.nonNull(item.getPrjid()))
|
|
|
.collect(Collectors.groupingBy(ZhcxProjectRectifyMachineVo::getPrjid));
|