Commit 0847ca37741cf1764a09f2b09ed0998f6891b2f4

Authored by [wangbo]
1 parent 156603152b

修改孕妇追访下次预约时间update

Showing 1 changed file with 5 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 0847ca3
... ... @@ -385,7 +385,7 @@
385 385 }
386 386 operateLogFacade.addAddOptLog(userId, Integer.parseInt(hospitalId), model, OptActionEnums.ADD.getId(), "添加复诊");
387 387 //添加复诊时添加追访信息
388   - addTrackDownInfo(userId, patients);
  388 + addTrackDownInfo(userId, patients, antExAddRequest.getNextCheckTime());
389 389 }
390 390 //自动数据处理
391 391 updateAutoData(model, antExAddRequest, hospitalId);
... ... @@ -755,7 +755,7 @@
755 755  
756 756  
757 757 //初诊是添加追访记录
758   - addTrackDownInfo(userId, patients);
  758 + addTrackDownInfo(userId, patients, excAddRequest.getNextCheckTime());
759 759 } else {
760 760 return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("您已经做过初诊");
761 761 }
... ... @@ -1120,7 +1120,7 @@
1120 1120 * @param userId
1121 1121 * @param patient
1122 1122 */
1123   - public void addTrackDownInfo(Integer userId, Patients patient) {
  1123 + public void addTrackDownInfo(Integer userId, Patients patient, String nextCheckTime) {
1124 1124 //添加产后追访信息
1125 1125 TrackDownRecord trackDownRecord = patient.build();
1126 1126 //根据patient查询是否存在追访信息
... ... @@ -1133,8 +1133,8 @@
1133 1133 trackDownRecord.setId(trackDownRecord1.getId());
1134 1134  
1135 1135 }
1136   - if (null != patient.getNextCheckTime()) {
1137   - trackDownRecord.setAppointmentDate(patient.getNextCheckTime());
  1136 + if (StringUtils.isNotEmpty(nextCheckTime)) {
  1137 + trackDownRecord.setAppointmentDate(DateUtil.parseYMD(nextCheckTime));
1138 1138 }
1139 1139 trackDownService.addOrupdateTrackDownRecord(userId, trackDownRecord);
1140 1140 }