Commit c6550bf099301d2cf339009efc00081a7794b53b
1 parent
48665bdaa9
Exists in
master
and in
6 other branches
区域化儿童管理添加就诊测试和生日
Showing 3 changed files with 27 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
c6550bf
| ... | ... | @@ -2818,6 +2818,12 @@ |
| 2818 | 2818 | }else{ |
| 2819 | 2819 | result.setHasChkRecord(false); |
| 2820 | 2820 | } |
| 2821 | + result.setChkCnt(checkModels.size()); | |
| 2822 | +// for (int i = 0; i < checkModels.size(); i++) { | |
| 2823 | +// if(checkModels.get(i).getId().equals(result.getId())){ | |
| 2824 | +// result.setChkCnt(i+1); | |
| 2825 | +// } | |
| 2826 | +// } | |
| 2821 | 2827 | } |
| 2822 | 2828 | |
| 2823 | 2829 | BaseListResponse objectResponse = new BaseListResponse(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
c6550bf
| ... | ... | @@ -1391,6 +1391,16 @@ |
| 1391 | 1391 | } |
| 1392 | 1392 | map.put("height", babyCheckModel.getHeight()); |
| 1393 | 1393 | map.put("weight", babyCheckModel.getWeight()); |
| 1394 | + | |
| 1395 | + List<BabyCheckModel> ckLst=mongoTemplate.find(Query.query(Criteria.where("buildId").is(babyCheckModel.getBuildId()).and("yn").is(YnEnums.YES.getId())).with(new Sort(Sort.Direction.ASC, "created")), BabyCheckModel.class); | |
| 1396 | + for (int i = 0; i < ckLst.size(); i++) { | |
| 1397 | + if(ckLst.get(i).getId().equals(babyCheckModel.getId())){ | |
| 1398 | + map.put("chkCnt",i+1); | |
| 1399 | + } | |
| 1400 | + } | |
| 1401 | + | |
| 1402 | + map.put("birth",DateUtil.getyyyy_MM_dd(babyCheckModel.getBirth())); | |
| 1403 | + | |
| 1394 | 1404 | list.add(map); |
| 1395 | 1405 | } |
| 1396 | 1406 | pageResult.setGrid(list); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyManageListResult.java
View file @
c6550bf
| ... | ... | @@ -107,6 +107,17 @@ |
| 107 | 107 | // 是否有检查记录 |
| 108 | 108 | private boolean hasChkRecord; |
| 109 | 109 | |
| 110 | + | |
| 111 | + private Integer chkCnt;//就诊次数 | |
| 112 | + | |
| 113 | + public Integer getChkCnt() { | |
| 114 | + return chkCnt; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public void setChkCnt(Integer chkCnt) { | |
| 118 | + this.chkCnt = chkCnt; | |
| 119 | + } | |
| 120 | + | |
| 110 | 121 | public boolean isHasChkRecord() { |
| 111 | 122 | return hasChkRecord; |
| 112 | 123 | } |