Commit 7f5f39739e19fb9f4ea8ee451421ba8ec1796781
1 parent
d7fe3f5161
Exists in
master
and in
6 other branches
儿童管理: 没有儿保检查记录,显示黄色
Showing 2 changed files with 24 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
7f5f397
... | ... | @@ -2804,6 +2804,19 @@ |
2804 | 2804 | } |
2805 | 2805 | } |
2806 | 2806 | |
2807 | + //查询是否有检查记录 | |
2808 | + for (BabyManageListResult result : list) { | |
2809 | + BabyCheckModelQuery query = new BabyCheckModelQuery(); | |
2810 | + query.setYn(YnEnums.YES.getId()); | |
2811 | + query.setBuildId(result.getId()); | |
2812 | + List <BabyCheckModel> checkModels = babyCheckService.queryBabyCheckRecord(query); | |
2813 | + if(checkModels.size()>0){ | |
2814 | + result.setHasChkRecord(true); | |
2815 | + }else{ | |
2816 | + result.setHasChkRecord(false); | |
2817 | + } | |
2818 | + } | |
2819 | + | |
2807 | 2820 | BaseListResponse objectResponse = new BaseListResponse(); |
2808 | 2821 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
2809 | 2822 | objectResponse.setData(list); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BabyManageListResult.java
View file @
7f5f397
... | ... | @@ -104,6 +104,17 @@ |
104 | 104 | } |
105 | 105 | /***********************************************************/ |
106 | 106 | |
107 | +// 是否有检查记录 | |
108 | + private boolean hasChkRecord; | |
109 | + | |
110 | + public boolean isHasChkRecord() { | |
111 | + return hasChkRecord; | |
112 | + } | |
113 | + | |
114 | + public void setHasChkRecord(boolean hasChkRecord) { | |
115 | + this.hasChkRecord = hasChkRecord; | |
116 | + } | |
117 | + | |
107 | 118 | public String getLastNextDate() { |
108 | 119 | return lastNextDate; |
109 | 120 | } |