待办未更改状态
This commit is contained in:
parent
6488551a05
commit
a5120ba560
@ -84,23 +84,6 @@ public class ProcessDesignServiceImpl implements ProcessDesignService {
|
|||||||
processDesignProgressDO.setRemark(reqVO.getRemark());
|
processDesignProgressDO.setRemark(reqVO.getRemark());
|
||||||
}
|
}
|
||||||
processDesignProgressMapper.insert(processDesignProgressDO);
|
processDesignProgressMapper.insert(processDesignProgressDO);
|
||||||
if (newProgress.compareTo(OVER_PROGRESS_VALUE) == 0){
|
|
||||||
//如果进度为100%,要删除待办提醒
|
|
||||||
//1.查询父项拿到设计图纸类型
|
|
||||||
ProcessDesignDO processDesignDO = processDesignMapper.selectById(reqVO.getZid());
|
|
||||||
String designType = getDesignType(processDesignDO.getProcessDesignType().split("BLUEPRINT_")[1]);
|
|
||||||
|
|
||||||
//2.查询待办是否有这个待办
|
|
||||||
List<bdgzsomthingDO> bdgzsomthingDOList = bdgzsomthingMapper.selecteqintAttr12IsNull(processDesignDO.getPlanCode(), designType);
|
|
||||||
//如果有就更新待办
|
|
||||||
if (CollUtil.isNotEmpty(bdgzsomthingDOList)){
|
|
||||||
for (bdgzsomthingDO bdgzsomthingDO : bdgzsomthingDOList) {
|
|
||||||
bdgzsomthingDO.setAttr4("1");
|
|
||||||
bdgzsomthingDO.setAttr12("0");
|
|
||||||
bdgzsomthingMapper.updateById(bdgzsomthingDO);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@ -116,7 +99,23 @@ public class ProcessDesignServiceImpl implements ProcessDesignService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (newProgress.compareTo(OVER_PROGRESS_VALUE) == 0){
|
||||||
|
//如果进度为100%,要删除待办提醒
|
||||||
|
//1.查询父项拿到设计图纸类型
|
||||||
|
ProcessDesignDO processDesignDO = processDesignMapper.selectById(reqVO.getZid());
|
||||||
|
String designType = getDesignType(processDesignDO.getProcessDesignType().split("BLUEPRINT_")[1]);
|
||||||
|
|
||||||
|
//2.查询待办是否有这个待办
|
||||||
|
List<bdgzsomthingDO> bdgzsomthingDOList = bdgzsomthingMapper.selecteqintAttr12IsNull(processDesignDO.getPlanCode(), designType);
|
||||||
|
//如果有就更新待办
|
||||||
|
if (CollUtil.isNotEmpty(bdgzsomthingDOList)){
|
||||||
|
for (bdgzsomthingDO bdgzsomthingDO : bdgzsomthingDOList) {
|
||||||
|
bdgzsomthingDO.setAttr4("1");
|
||||||
|
bdgzsomthingDO.setAttr12("0");
|
||||||
|
bdgzsomthingMapper.updateById(bdgzsomthingDO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user