Commit 27775856388f668f53bb3aec38c1c4b55c876694
1 parent
090fd140f8
Exists in
master
and in
2 other branches
威县统计功能开发
Showing 2 changed files with 12 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/WxStatisticsServiceImpl.java
View file @
2777585
... | ... | @@ -145,18 +145,25 @@ |
145 | 145 | Query query = Query.query(Criteria.where("parentId").in(patientsIds) |
146 | 146 | .andOperator(Criteria.where("trackType").in(list))); |
147 | 147 | query.addCriteria(Criteria.where("overTimes").gte(1)); |
148 | + Set<String> set= new HashSet<>(); | |
149 | + List<TrackDownRecord> trackDownRecords = mongoTemplate.find(query, TrackDownRecord.class); | |
150 | + for(TrackDownRecord record:trackDownRecords){ | |
151 | + set.add(record.getParentId()); | |
152 | + } | |
148 | 153 | |
149 | 154 | long fm = mongoTemplate.count(query, "lyms_trackdown_record"); |
150 | 155 | |
151 | - Query query1 = Query.query(Criteria.where("parentId").in(patientsIds) | |
156 | + Query query1 = Query.query(Criteria.where("parentId").in(set) | |
152 | 157 | .andOperator(Criteria.where("trackDownDateType").in(list))); |
153 | 158 | |
154 | 159 | List<TrackDown> trackDowns = mongoTemplate.find(query1, TrackDown.class); |
155 | - Set<String> set= new HashSet<>(); | |
160 | + Set<String> set2= new HashSet<>(); | |
156 | 161 | for(TrackDown td: trackDowns){ |
157 | - set.add(td.getPid()); | |
162 | + set2.add(td.getParentId()); | |
158 | 163 | } |
159 | - long fz = set.size(); | |
164 | + long fz = set2.size(); | |
165 | + //处理有逾期追访,但是overTime ==0问题 | |
166 | + fz = fz > fm ? fm :fz; | |
160 | 167 | |
161 | 168 | |
162 | 169 | returnMap.put("fz",String.valueOf(fz)); |
platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
2777585
... | ... | @@ -567,7 +567,7 @@ |
567 | 567 | |
568 | 568 | <bean id="handleTrackDownTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> |
569 | 569 | <property name="jobDetail" ref="handleTrackDownJob"/> |
570 | - <property name="cronExpression" value="0 20 8 * * ? "></property> | |
570 | + <property name="cronExpression" value="0 20 20 * * ? "></property> | |
571 | 571 | </bean> |
572 | 572 | |
573 | 573 | <!-- 滦平妇幼同步mongodb数据到mysql--> |