Browse Source

问题修正

gaodm 4 years ago
parent
commit
70097374af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/diagbot/facade/PlanFacade.java

+ 2 - 2
src/main/java/com/diagbot/facade/PlanFacade.java

@@ -104,7 +104,7 @@ public class PlanFacade extends PlanServiceImpl {
                 .eq("plan_name", hospitalPlanSaveVO.getPlanName())
                 .eq("plan_name", hospitalPlanSaveVO.getPlanName())
                 .ne("id", hospitalPlanSaveVO.getId() == null ? -1 : hospitalPlanSaveVO.getId()));
                 .ne("id", hospitalPlanSaveVO.getId() == null ? -1 : hospitalPlanSaveVO.getId()));
         if (count > 0) {
         if (count > 0) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "相同【医院】下,方案名称已存在");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "方案名称已存在");
         }
         }
         int countTow = this.count(new QueryWrapper<Plan>()
         int countTow = this.count(new QueryWrapper<Plan>()
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
@@ -112,7 +112,7 @@ public class PlanFacade extends PlanServiceImpl {
                 .eq("plan_code", hospitalPlanSaveVO.getPlanCode())
                 .eq("plan_code", hospitalPlanSaveVO.getPlanCode())
                 .ne("id", hospitalPlanSaveVO.getId() == null ? -1 : hospitalPlanSaveVO.getId()));
                 .ne("id", hospitalPlanSaveVO.getId() == null ? -1 : hospitalPlanSaveVO.getId()));
         if (countTow > 0) {
         if (countTow > 0) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "相同【医院】下,方案编码已存在");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "方案编码已存在");
         }
         }
         if (hospitalPlanSaveVO.getId() != null) {
         if (hospitalPlanSaveVO.getId() != null) {
             UpdateWrapper<Plan> planQuery = new UpdateWrapper<>();
             UpdateWrapper<Plan> planQuery = new UpdateWrapper<>();