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