Commit 975dc6169247076086a68dfceb7ab027c82546f6
1 parent
3654e2b7c5
Exists in
dev
#fix:优化产检统计逻辑
Showing 3 changed files with 3 additions and 2 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntenatalExaminationService.java
View file @
975dc61
... | ... | @@ -329,6 +329,7 @@ |
329 | 329 | antExChuQuery.mysqlBuild(iAntExChuDao.count(query)); |
330 | 330 | query.start(antExChuQuery.getOffset()).end(antExChuQuery.getLimit()); |
331 | 331 | } |
332 | + System.out.println(query.convertToMongoQuery().toString()); | |
332 | 333 | return iAntExChuDao.query(query.addOrder(Sort.Direction.DESC, "created")); |
333 | 334 | } |
334 | 335 |
platform-dal/src/main/java/com/lyms/platform/query/AntExChuQuery.java
View file @
975dc61
... | ... | @@ -357,7 +357,7 @@ |
357 | 357 | condition = condition.and("nextCheckTime", nextCheckTime, MongoOper.GTE); |
358 | 358 | } |
359 | 359 | if (null!=nextCheckTimeLte){ |
360 | - condition = condition.and("nextCheckTime", nextCheckTime, MongoOper.LTE); | |
360 | + condition = condition.and("nextCheckTime", nextCheckTimeLte, MongoOper.LT); | |
361 | 361 | |
362 | 362 | } |
363 | 363 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
975dc61
... | ... | @@ -235,7 +235,7 @@ |
235 | 235 | antExChuQuery.setYn(YnEnums.YES.getId()); |
236 | 236 | antExChuQuery.setHospitalId(hospitalId); |
237 | 237 | //把时间格式化成 yyyy_MM_dd 的日期 |
238 | - Date nextCheckTime= DateUtil.formatDate(new Date()); | |
238 | + Date nextCheckTime= DateUtil.formatDate(DateUtil.addDay(new Date(),1)); | |
239 | 239 | antExChuQuery.setNextCheckTimeLte(nextCheckTime); |
240 | 240 | //初诊数据 |
241 | 241 | List<AntExChuModel> antExChuModelList= antExService.queryAntExChu(antExChuQuery); |