| | |
| | | SgProjectPersonConfigDO old = projectPersonConfigMapper.selectById(id); |
| | | boolean isReport = !new LambdaQueryChainWrapper<>(sgProgressReportMapper).eq(SgProgressReportDO::getProframId, old.getProgramId()).list().isEmpty(); |
| | | if (Objects.isNull(userId)){ |
| | | if (isReport){ |
| | | /*if (isReport){ |
| | | throw new ServiceException("此项目配置存在审批,不允许修改"); |
| | | } |
| | | }*/ |
| | | projectPersonConfigMapper.deleteById(id); |
| | | }else if (!old.getUserId().equals(sgProjectPersonConfigDO.getUserId())){ |
| | | if (isReport){ |
| | | /*if (isReport){ |
| | | throw new ServiceException("此项目配置存在审批,不允许修改"); |
| | | } |
| | | }*/ |
| | | projectPersonConfigMapper.updateById(sgProjectPersonConfigDO); |
| | | } |
| | | } |