瀏覽代碼

修改提示信息

zhoutg 3 年之前
父節點
當前提交
518e11803c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      cdssman-service/src/main/java/com/diagbot/facade/HospitalInfoFacade.java

+ 3 - 3
cdssman-service/src/main/java/com/diagbot/facade/HospitalInfoFacade.java

@@ -253,7 +253,7 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("hospital_id", id));
         if (ListUtil.isNotEmpty(mappingConfigList)) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在关联数据,无法删除");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在映射关联,无法删除");
         }
 
         List<Plan> planList
@@ -261,14 +261,14 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("hospital_id", id));
         if (ListUtil.isNotEmpty(planList)) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在关联数据,无法删除");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在方案配置关联,无法删除");
         }
 
         int count = tranHospitalRelationService.count(new QueryWrapper<TranHospitalRelation>()
                 .eq("is_deleted", IsDeleteEnum.N.getKey())
                 .eq("hospital_id", id));
         if (count > 0) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在关联子医院,无法删除");
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "该医院存在子医院关联,无法删除");
         }
         // 主表逻辑删除
         hospitalInfo.setIsDeleted(IsDeleteEnum.Y.getKey());