| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "公用项目标识不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.noNull(treatProject.getUserProjectItemId()) && idSet.contains(treatProject.getUserProjectItemId())){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "治疗单选择用户项目重复!"); |
| | | if(StringUtils.noNull(treatProject.getUserProjectItemId())){ |
| | | idSet.add(treatProject.getUserProjectItemId()); |
| | | if(idSet.contains(treatProject.getUserProjectItemId())){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL, "治疗单选择用户项目重复!"); |
| | | } |
| | | } |
| | | idSet.add(treatProject.getUserProjectItemId()); |
| | | |
| | | if(StringUtils.noNull(treatProject.getId())){ |
| | | oldData = commonService.selectOneByKey(TreatProjectMapper.class, treatProject.getId()); |