Commit 2cb0eebc0ff26d57ddd41c168fb53e74e3f598d9

Authored by liquanyu
1 parent d0dfe97bb4

出生医学证明修改基础档案和分娩信息

Showing 2 changed files with 24 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java View file @ 2cb0eeb
... ... @@ -91,9 +91,6 @@
91 91 private BasicConfigService basicConfigService;
92 92  
93 93 @Autowired
94   - private RemoteService remoteService;
95   -
96   - @Autowired
97 94 private CouponService couponService;
98 95  
99 96 @Autowired
... ... @@ -105,6 +102,10 @@
105 102 @Autowired
106 103 private TrackDownRecordService trackDownRecordService;
107 104  
  105 +
  106 + @Autowired
  107 + private BookbuildingFacade bookbuildingFacade;
  108 +
108 109 private static Map<Integer, String> ONE_ENUMS = new HashMap<>();
109 110  
110 111 private static Map<String, List> babyMap = new HashMap<>();
... ... @@ -388,6 +389,15 @@
388 389  
389 390 //添加产后追访信息
390 391 addTrackDownInfo(userId, patients2);
  392 +
  393 + //出生证明打印前修改孕妇基本信息
  394 + if (deliverAddRequest.getPatient() != null)
  395 + {
  396 + Patients patient = bookbuildingFacade.getPatientsData(deliverAddRequest.getPatient());
  397 + patient.setId(deliverAddRequest.getParentId());
  398 + patientsService.updatePatient(patient);
  399 + }
  400 +
391 401 } else {
392 402 return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_DATA).setErrormsg("parentId 为空,找不到产妇");
393 403 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/MatDeliverAddRequest.java View file @ 2cb0eeb
... ... @@ -93,6 +93,17 @@
93 93  
94 94 private Integer couponType;
95 95  
  96 +
  97 + private YunBookbuildingAddRequest patient;
  98 +
  99 + public YunBookbuildingAddRequest getPatient() {
  100 + return patient;
  101 + }
  102 +
  103 + public void setPatient(YunBookbuildingAddRequest patient) {
  104 + this.patient = patient;
  105 + }
  106 +
96 107 public Integer getDueCount() {
97 108 return dueCount;
98 109 }