Commit 5c9f7276bcd73de420596e8a53235d85b04ec0a0
1 parent
7d7ce1cf78
Exists in
master
and in
6 other branches
修改电子病历
Showing 1 changed file with 11 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
5c9f727
| ... | ... | @@ -69,7 +69,7 @@ |
| 69 | 69 | * @param request |
| 70 | 70 | * @return |
| 71 | 71 | */ |
| 72 | - public BaseResponse updateBabyCheck(BabyCheckRequest request) { | |
| 72 | + public BaseResponse updateBabyCheck(BabyCheckRequest request,Integer userId) { | |
| 73 | 73 | BabyCheckModel model = getBabyCheckModel(request); |
| 74 | 74 | model.setModified(new Date()); |
| 75 | 75 | |
| ... | ... | @@ -99,6 +99,16 @@ |
| 99 | 99 | bm.setLastDiagnose(diagnoseNames); |
| 100 | 100 | } |
| 101 | 101 | babyBookbuildingService.updateBabyBuild(bm, request.getBuildId()); |
| 102 | + BabyModelQuery babyModelQuery=new BabyModelQuery(); | |
| 103 | + babyModelQuery.setId(request.getBuildId()); | |
| 104 | + List<BabyModel> list =babyBookbuildingService.queryBabyBuildByCond(babyModelQuery); | |
| 105 | + if(CollectionUtils.isNotEmpty(list)){ | |
| 106 | + bm.setPid(list.get(0).getPid()); | |
| 107 | + bm.setId(request.getBuildId()); | |
| 108 | + if(autoMatchFacade.checkBStatus(userId)){ | |
| 109 | + babyBookbuildingService.updateBaseData(bm); | |
| 110 | + } | |
| 111 | + } | |
| 102 | 112 | updateLastGrowth(model); |
| 103 | 113 | |
| 104 | 114 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
| ... | ... | @@ -191,7 +201,6 @@ |
| 191 | 201 | model.setWeightEvaluate(request.getWeightEvaluate()); |
| 192 | 202 | model.setHeadEvaluate(request.getHeadEvaluate()); |
| 193 | 203 | model.setHeightEvaluate(request.getHeightEvaluate()); |
| 194 | - | |
| 195 | 204 | if (StringUtils.isNotEmpty(request.getBuildId())) { |
| 196 | 205 | BabyModelQuery babyModelQuery = new BabyModelQuery(); |
| 197 | 206 | babyModelQuery.setId(request.getBuildId()); |