Commit ecfc13fac29a1f08e48e54a78954cecb759e7034
1 parent
033e2bdb95
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 22 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
ecfc13f
| ... | ... | @@ -509,6 +509,8 @@ |
| 509 | 509 | babyBookbuildingService.updateBaseData(model); |
| 510 | 510 | } |
| 511 | 511 | |
| 512 | + setRiskCode(request.getId()); | |
| 513 | + | |
| 512 | 514 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| 513 | 515 | } |
| 514 | 516 | |
| ... | ... | @@ -936,6 +938,18 @@ |
| 936 | 938 | ExceptionUtils.catchException(e, "add baby building 异常"); |
| 937 | 939 | } |
| 938 | 940 | return br; |
| 941 | + } | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + public void setRiskCode(String id) | |
| 946 | + { | |
| 947 | + BabyModel babyModel = babyBookbuildingService.queryBabyById(id); | |
| 948 | + if (babyModel.getRiskCode() == null) | |
| 949 | + { | |
| 950 | + setRiskCode(babyModel); | |
| 951 | + } | |
| 952 | + babyBookbuildingService.updateBabyBuild(babyModel,babyModel.getId()); | |
| 939 | 953 | } |
| 940 | 954 | |
| 941 | 955 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/BabyListTask.java
View file @
ecfc13f
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | import com.lyms.platform.operate.web.facade.BabyCheckFacade; |
| 10 | 10 | import com.lyms.platform.operate.web.facade.BasicConfigFacade; |
| 11 | 11 | import com.lyms.platform.operate.web.result.BabyManageListResult; |
| 12 | +import com.lyms.platform.permission.model.Users; | |
| 12 | 13 | import com.lyms.platform.permission.service.OrganizationService; |
| 13 | 14 | import com.lyms.platform.permission.service.UsersService; |
| 14 | 15 | import com.lyms.platform.pojo.BabyModel; |
| ... | ... | @@ -101,7 +102,13 @@ |
| 101 | 102 | result.setDueWeek(model.getDueWeek()); |
| 102 | 103 | if (StringUtils.isNotEmpty(model.getLastCheckDoctor())) |
| 103 | 104 | { |
| 104 | - result.setLastCheckDoctor(usersService.getUsers(Integer.parseInt(model.getBuildDoctor())).getName()); | |
| 105 | + try { | |
| 106 | + String userName = usersService.getUsers(Integer.parseInt(model.getBuildDoctor())).getName(); | |
| 107 | + result.setLastCheckDoctor(userName); | |
| 108 | + }catch (Exception e) | |
| 109 | + { | |
| 110 | + result.setLastCheckDoctor("产科病房"); | |
| 111 | + } | |
| 105 | 112 | } |
| 106 | 113 | |
| 107 | 114 | if (model.getRiskCode() != null) |