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