Commit 221d0648e491d90f775030d5156998a27389fc1c
1 parent
9d64edc732
Exists in
master
and in
8 other branches
修改新电子病历
Showing 1 changed file with 11 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
221d064
| ... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 | import com.lyms.platform.common.base.PageInfo; |
| 8 | 8 | import com.lyms.platform.common.constants.ConstantInterface; |
| 9 | 9 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 10 | +import com.lyms.platform.common.enums.HospitalStatusEnums; | |
| 10 | 11 | import com.lyms.platform.common.enums.UserTypeEnum; |
| 11 | 12 | import com.lyms.platform.common.enums.YnEnums; |
| 12 | 13 | import com.lyms.platform.common.enums.ZhiChenEnums; |
| ... | ... | @@ -267,6 +268,16 @@ |
| 267 | 268 | ResultUtils.buildParameterErrorResultAndWrite(response, "该账户已被禁用"); |
| 268 | 269 | return; |
| 269 | 270 | } |
| 271 | + if(null!=u.getOrgId()){ | |
| 272 | + Organization organization = organizationService.getOrganization(u.getOrgId()); | |
| 273 | + if(null!=organization){ | |
| 274 | + if(HospitalStatusEnums.TZYX.getId()==organization.getStatus()){ | |
| 275 | + ResultUtils.buildParameterErrorResultAndWrite(response, "该账户已被禁用"); | |
| 276 | + return; | |
| 277 | + } | |
| 278 | + } | |
| 279 | + } | |
| 280 | + | |
| 270 | 281 | |
| 271 | 282 | LoginContext loginContext = new LoginContext(); |
| 272 | 283 | loginContext.setErrormsg("服务器内部错误!"); |