Commit 2632665ecf97a3464749062cdcd42ff3be0f06b7
1 parent
8baf9d2f86
Exists in
master
and in
6 other branches
追访相关
Showing 1 changed file with 9 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java
View file @
2632665
... | ... | @@ -280,6 +280,7 @@ |
280 | 280 | temp.put("residenceAddress", mongoUtil.findAddressName(patient.getProvinceId(), patient.getCityId(), patient.getAreaId(), patient.getStreetId())); /** 居住地 */ |
281 | 281 | temp.put("phone", StringUtils.encryPhone(patient.getPhone())); |
282 | 282 | temp.put("id", patient.getId()); |
283 | + temp.put("dueDate", DateUtil.getyyyy_MM_dd(patient.getDueDate())); | |
283 | 284 | TrackDown trackDown = mongoTemplate.findOne(Query.query(Criteria.where("yn").is(1).and("parentId").is(patient.getId())).with(new Sort(Sort.Direction.DESC, "created")), TrackDown.class); |
284 | 285 | if(trackDown != null) { |
285 | 286 | temp.put("result", StringUtils.isEmpty(trackDown.getResult()) ? "--" : trackDown.getResult()); // 婚检追访结果 |
... | ... | @@ -289,6 +290,14 @@ |
289 | 290 | temp.put("result", "--"); // 婚检追访结果 |
290 | 291 | temp.put("trackDownTime", "--"); // 追访时间 |
291 | 292 | temp.put("yyTime", "--"); // 预约时间 |
293 | + } | |
294 | + if(trackType == TrackDownDateEnums.G.getId()) {// 产后复查 | |
295 | + /** 复查次数 */ | |
296 | + temp.put("fcNum", mongoTemplate.count(Query.query(Criteria.where("parentId").is(patient.getId()).and("trackDownDateType").is(TrackDownDateEnums.G.getId()).and("yn").is(1)), TrackDown.class)); | |
297 | + temp.put("fmDate", DateUtil.getyyyy_MM_dd(patient.getFmDate())); | |
298 | + /** 初次复查日期 */ | |
299 | + TrackDown t = mongoTemplate.findOne(Query.query(Criteria.where("yn").is(1).and("parentId").is(patient.getId()).and("trackDownDateType").is(7)).with(new Sort(Sort.Direction.ASC, "created")), TrackDown.class); | |
300 | + temp.put("ccfcDate", t == null ? "--" : DateUtil.getyyyy_MM_dd(t.getCreated())); | |
292 | 301 | } |
293 | 302 | restList.add(temp); |
294 | 303 | } |