|
@@ -240,6 +240,9 @@ public class HospitalInfoFacade extends HospitalInfoServiceImpl {
|
|
|
String userId = UserUtils.getCurrentPrincipleID();
|
|
|
Date now = DateUtil.now();
|
|
|
Long id = idVO.getId();
|
|
|
+ if (idVO.getId().equals(-1)) {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "当前医院不能删除");
|
|
|
+ }
|
|
|
HospitalInfo hospitalInfo = hospitalInfoService.getById(id);
|
|
|
if (hospitalInfo == null) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "数据不存在");
|