Commit 7835e1d121638b3eb18ecd177f503f11c8e3fc13
1 parent
ac10ce8686
Exists in
master
and in
6 other branches
自动生成追访信息
Showing 1 changed file with 10 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TrackDownServiceImpl.java
View file @
7835e1d
| ... | ... | @@ -649,18 +649,19 @@ |
| 649 | 649 | }else{ |
| 650 | 650 | return RespBuilder.buildErro(ResponseCode.DATA_ERROR); |
| 651 | 651 | } |
| 652 | - | |
| 653 | 652 | List<TrackDownRecord> trackDownRecords = trackDownRecordService.queryTrackDown(query); |
| 653 | + List<Map<String, Object>> hqjcList = new ArrayList<>(); // 婚前检查 | |
| 654 | + List<Map<String, Object>> hyjdList = new ArrayList<>(); // 怀孕建档 | |
| 655 | + List<Map<String, Object>> cqjcList = new ArrayList<>(); // 产前检查 | |
| 656 | + List<Map<String, Object>> cqscList = new ArrayList<>(); // 产前筛查 | |
| 657 | + List<Map<String, Object>> zyfmList = new ArrayList<>(); // 住院分娩 | |
| 658 | + List<Map<String, Object>> chfsList = new ArrayList<>(); // 产后访视 | |
| 659 | + List<Map<String, Object>> chfcList = new ArrayList<>(); // 产后复查 | |
| 660 | + | |
| 654 | 661 | if (CollectionUtils.isNotEmpty(trackDownRecords)) { |
| 655 | 662 | TrackDownRecord trackDownRecord = trackDownRecords.get(0); |
| 656 | 663 | List<TrackDown> trackDowns = mongoTemplate.find(Query.query(Criteria.where("trackDownRecId").is( trackDownRecord.getId()).and("yn").is(1)).with(new Sort(Sort.Direction.DESC, "created")), TrackDown.class); |
| 657 | - List<Map<String, Object>> hqjcList = new ArrayList<>(); // 婚前检查 | |
| 658 | - List<Map<String, Object>> hyjdList = new ArrayList<>(); // 怀孕建档 | |
| 659 | - List<Map<String, Object>> cqjcList = new ArrayList<>(); // 产前检查 | |
| 660 | - List<Map<String, Object>> cqscList = new ArrayList<>(); // 产前筛查 | |
| 661 | - List<Map<String, Object>> zyfmList = new ArrayList<>(); // 住院分娩 | |
| 662 | - List<Map<String, Object>> chfsList = new ArrayList<>(); // 产后访视 | |
| 663 | - List<Map<String, Object>> chfcList = new ArrayList<>(); // 产后复查 | |
| 664 | + | |
| 664 | 665 | for (TrackDown trackDown : trackDowns) { |
| 665 | 666 | Map<String, Object> temp = new HashMap<>(); |
| 666 | 667 | temp.put("trackDownDate", DateUtil.getyyyy_MM_dd(trackDown.getTrackDownDate())); |
| 667 | 668 | |
| ... | ... | @@ -694,8 +695,8 @@ |
| 694 | 695 | chfsList.add(temp); |
| 695 | 696 | } |
| 696 | 697 | } |
| 697 | - return RespBuilder.buildSuccess("hqjcList", hqjcList, "hyjdList", hyjdList, "cqjcList", cqjcList, "cqscList", cqscList, "zyfmList", zyfmList, "chfsList", chfsList, "chfcList", chfcList); | |
| 698 | 698 | } |
| 699 | + return RespBuilder.buildSuccess("hqjcList", hqjcList, "hyjdList", hyjdList, "cqjcList", cqjcList, "cqscList", cqscList, "zyfmList", zyfmList, "chfsList", chfsList, "chfcList", chfcList); | |
| 699 | 700 | } |
| 700 | 701 | Criteria criteria = Criteria.where("parentId").is(patientId).and("yn").is(1); |
| 701 | 702 |