Commit b90f1c719d537b3123df06e9d90d37fb3b3beedd
1 parent
0cf20e999d
Exists in
master
and in
3 other branches
code update
Showing 2 changed files with 3 additions and 3 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
View file @
b90f1c7
| ... | ... | @@ -742,8 +742,8 @@ |
| 742 | 742 | // System.out.println(s); |
| 743 | 743 | // Date s = addDay(parseYMD("2016-02-26"), 168); |
| 744 | 744 | |
| 745 | - Date startDate = DateUtil.getNewDate(-0,"天",0); | |
| 746 | - Date endDate = DateUtil.getNewDate(-5,"天",0); | |
| 745 | + Date startDate = DateUtil.getNewDate(-0,"月",0); | |
| 746 | + Date endDate = DateUtil.getNewDate(-1,"月",0); | |
| 747 | 747 | |
| 748 | 748 | System.out.println(startDate + "==="+ endDate); |
| 749 | 749 | } catch (Exception e) |
platform-data-api/src/main/java/com/lyms/platform/data/service/impl/SmsServiceImpl.java
View file @
b90f1c7
| ... | ... | @@ -1251,7 +1251,7 @@ |
| 1251 | 1251 | if (start != null && end != null) |
| 1252 | 1252 | { |
| 1253 | 1253 | Date startDate = DateUtil.getNewDate(-end,"月",sendTimeType); |
| 1254 | - Date endDate = DateUtil.getNewDate(-start,"月",sendTimeType); | |
| 1254 | + Date endDate = DateUtil.getNewDate(-start-1,"月",sendTimeType); | |
| 1255 | 1255 | babyModelQuery.setBirthStart(startDate); |
| 1256 | 1256 | babyModelQuery.setBirthEnd(endDate); |
| 1257 | 1257 | messages.addAll(getBabyMessageRequestList( babyModelQuery, config, template)); |