Commit efae61d4294ab47ece786690990c4fbd53f4d42f
1 parent
d664416ac9
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 1 additions and 3 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/BabyBookbuildingDaoImpl.java
View file @
efae61d
| ... | ... | @@ -73,7 +73,7 @@ |
| 73 | 73 | |
| 74 | 74 | @Override |
| 75 | 75 | public List<BabyCheckModel> queryBabyOrder(Date startDate, String hospitalId, String buildId) { |
| 76 | - AggregationOperation match = Aggregation.match(Criteria.where("nextDate").gte(startDate).lte(startDate).and("buildId").is(buildId).and("yn").is(1)); | |
| 76 | + AggregationOperation match = Aggregation.match(Criteria.where("nextDate").gte(startDate).and("buildId").is(buildId).and("yn").is(1)); | |
| 77 | 77 | AggregationOperation group = Aggregation.group("buildId").max("created").as("created"); |
| 78 | 78 | Aggregation aggregation = Aggregation.newAggregation(match, group); |
| 79 | 79 | AggregationResults<BabyCheckModel> result = this.mongoTemplate.aggregate(aggregation, "lyms_babycheck", BabyCheckModel.class); |
platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
View file @
efae61d
| ... | ... | @@ -793,7 +793,6 @@ |
| 793 | 793 | rightNow.add(Calendar.DAY_OF_YEAR,num); |
| 794 | 794 | } |
| 795 | 795 | rightNow.add(Calendar.DAY_OF_YEAR, delayDay); |
| 796 | - String date = y_m_d.format(rightNow.getTime()); | |
| 797 | 796 | return rightNow.getTime(); |
| 798 | 797 | } |
| 799 | 798 | |
| ... | ... | @@ -813,7 +812,6 @@ |
| 813 | 812 | rightNow.add(Calendar.DAY_OF_YEAR,num); |
| 814 | 813 | } |
| 815 | 814 | rightNow.add(Calendar.DAY_OF_YEAR, day); |
| 816 | - String date = y_m_d.format(rightNow.getTime()); | |
| 817 | 815 | return rightNow.getTime(); |
| 818 | 816 | } |
| 819 | 817 |