fhx
2024-09-02 1ad46c72a8424ace3c428f1b82ff23e3b582b327
1.修改判断逻辑
1个文件已修改
8 ■■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java
@@ -673,10 +673,12 @@
                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());