Commit 97553815eb7ae9956defdbabc6689b71f80b3167

Authored by haorp
1 parent 992fa80487
Exists in dev

产妇建档

Showing 1 changed file with 4 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MedicalRecordFacade.java View file @ 9755381
... ... @@ -48,6 +48,10 @@
48 48 }
49 49  
50 50 for (MedicalRecordVo recordVo : medicalRecordVoList) {
  51 + String age1 = recordVo.getAge().substring(0, 8);
  52 + Date date = DateUtil.parseYYYYMMDD(age1);
  53 + int age = DateUtil.getYearSpace(new Date(), date);
  54 + recordVo.setAge(String.valueOf(age));
51 55 PatientsQuery patientsQuery = new PatientsQuery();
52 56 patientsQuery.setCardNo(recordVo.getCardNo());
53 57 patientsQuery.setYn(1);