Commit 9a19bcb6210f313d7733c4f84148f19d0442cf9e
1 parent
0bef0e376d
Exists in
master
and in
6 other branches
隆化孕前优生添加服务跟踪
Showing 3 changed files with 32 additions and 0 deletions
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LhServiceFollowFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PreEugenicsBaseListResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PreEugebicsServiceImpl.java
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LhServiceFollowFacade.java
View file @
9a19bcb
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PreEugenicsBaseListResult.java
View file @
9a19bcb
| ... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 | import com.lyms.platform.pojo.PreEugenicsBaseModel; |
| 4 | 4 | |
| 5 | 5 | import java.util.List; |
| 6 | +import java.util.Map; | |
| 6 | 7 | |
| 7 | 8 | |
| 8 | 9 | public class PreEugenicsBaseListResult extends PreEugenicsBaseModel { |
| ... | ... | @@ -101,6 +102,16 @@ |
| 101 | 102 | |
| 102 | 103 | //隆化-结果建议,异常项建议 |
| 103 | 104 | List<String> abnormityProposal; |
| 105 | + //隆化-服务跟踪 | |
| 106 | + private List<Map<String, Object>> lhSerivceFollow; | |
| 107 | + | |
| 108 | + public List<Map<String, Object>> getLhSerivceFollow() { | |
| 109 | + return lhSerivceFollow; | |
| 110 | + } | |
| 111 | + | |
| 112 | + public void setLhSerivceFollow(List<Map<String, Object>> lhSerivceFollow) { | |
| 113 | + this.lhSerivceFollow = lhSerivceFollow; | |
| 114 | + } | |
| 104 | 115 | |
| 105 | 116 | @Override |
| 106 | 117 | public List<String> getAbnormity() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PreEugebicsServiceImpl.java
View file @
9a19bcb
| ... | ... | @@ -704,6 +704,26 @@ |
| 704 | 704 | PreEugenicsBaseListResult result = new PreEugenicsBaseListResult(); |
| 705 | 705 | if (model != null) { |
| 706 | 706 | result = getPreEugenicsBaseListResult(model); |
| 707 | + | |
| 708 | + Query query = new Query(); | |
| 709 | + query.addCriteria(Criteria.where("buildId").is(model.getId())); | |
| 710 | + query.addCriteria(Criteria.where("yn").is(YnEnums.YES.getId())); | |
| 711 | + List<LhServiceFollowModel> lhServiceFollowModels = mongoTemplate.find(query, LhServiceFollowModel.class); | |
| 712 | + if (CollectionUtils.isNotEmpty(lhServiceFollowModels)) | |
| 713 | + { | |
| 714 | + List<Map<String, Object>> lhSerivceFollow = new ArrayList<>(); | |
| 715 | + | |
| 716 | + for (LhServiceFollowModel followModel : lhServiceFollowModels) | |
| 717 | + { | |
| 718 | + Map<String, Object> data = new HashMap<>(); | |
| 719 | + data.put("sex",followModel.getSex()); | |
| 720 | + data.put("checkDate",DateUtil.getyyyy_MM_dd(followModel.getCheckDate())); | |
| 721 | + data.put("id",followModel.getId()); | |
| 722 | + lhSerivceFollow.add(data); | |
| 723 | + } | |
| 724 | + result.setLhSerivceFollow(lhSerivceFollow); | |
| 725 | + } | |
| 726 | + | |
| 707 | 727 | } |
| 708 | 728 | BaseResponse baseResponse = new BaseResponse(); |
| 709 | 729 | baseResponse.setObject(result); |