Commit e737973fd089fab1afaed2873aaf61c0bcc7f54c
1 parent
3c3ed7a0ef
Exists in
master
and in
6 other branches
undate
Showing 1 changed file with 7 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
e737973
... | ... | @@ -67,6 +67,8 @@ |
67 | 67 | @Autowired |
68 | 68 | private SieveService sieveService; |
69 | 69 | @Autowired |
70 | + private YunBookbuildingService yunBookbuildingService; | |
71 | + @Autowired | |
70 | 72 | private OrganizationService organizationService; |
71 | 73 | @Autowired |
72 | 74 | private BabyService babyService; |
... | ... | @@ -394,6 +396,10 @@ |
394 | 396 | if(StringUtils.isNotEmpty(sieveApplyOrderAddRequest.getParentId())){ |
395 | 397 | Patients p = patientsService.findOnePatientById(sieveApplyOrderAddRequest.getParentId()); |
396 | 398 | yunZhouMth(sieveApplyOrderModel,p); |
399 | + | |
400 | + /*20201201 产筛修改某次月经修改档案的末次月经*/ | |
401 | + p.setLastMenses(sieveApplyOrderModel.getLastMenses()); | |
402 | + yunBookbuildingService.updatePregnant(p, sieveApplyOrderModel.getParentId()); | |
397 | 403 | } |
398 | 404 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
399 | 405 | //修改 |
... | ... | @@ -411,7 +417,7 @@ |
411 | 417 | if (CollectionUtils.isNotEmpty(sieveModels)) { |
412 | 418 | SieveModel sieveModel = sieveModels.get(0); |
413 | 419 | mongoTemplate.updateFirst(Query.query(Criteria.where("_id").is(sieveModel.getId())), Update.update("sieveType", sieveApplyOrderModel.getSieveType()). |
414 | - set("costType", sieveApplyOrderModel.getCostType()), SieveModel.class); | |
420 | + set("costType", sieveApplyOrderModel.getCostType()).set("lastMenses",sieveApplyOrderModel.getLastMenses()), SieveModel.class); | |
415 | 421 | if (sieveModel.getSieveHospitalId() != null && !sieveModel.getSieveHospitalId().equals(sieveApplyOrderAddRequest.getSieveHospitalId())) { |
416 | 422 | sieveModel.setSieveHospitalId(sieveApplyOrderAddRequest.getSieveHospitalId()); |
417 | 423 | sieveService.updateOneChanQianDiaSieve(sieveModel); |