Commit fa8038265cf67b1ad6ec40a72d0ed821f46494ec
1 parent
8f28a907de
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 13 additions and 4 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/utils/DateUtils.java
View file @
fa80382
| ... | ... | @@ -241,5 +241,14 @@ |
| 241 | 241 | return Math.abs(result); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | +// public static void main(String[] args) | |
| 245 | +// { | |
| 246 | +// Date startDate = DateUtils.getNewDate(new Date(),-9-1, "月", 1); | |
| 247 | +// Date endDate = DateUtils.getNewDate(new Date(),-9,"月",1); | |
| 248 | +// System.out.println(getDateStr(startDate,Y_M_D)); | |
| 249 | +// System.out.println(getDateStr(endDate,Y_M_D)); | |
| 250 | +// } | |
| 251 | + | |
| 252 | + | |
| 244 | 253 | } |
platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java
View file @
fa80382
| ... | ... | @@ -585,8 +585,7 @@ |
| 585 | 585 | if (smsType == SmsServiceEnums.CHFCYUTX.getId()) |
| 586 | 586 | { |
| 587 | 587 | //把时间格式成yyyy_MM_dd |
| 588 | - String currentDate = DateUtil.getyyyy_MM_dd(new Date()); | |
| 589 | - Date actualSendDate = DateUtil.addDay(DateUtil.parseYMD(currentDate), sendTimeType); | |
| 588 | + Date actualSendDate = DateUtils.formatDate(DateUtils.addDay(new Date(), sendTimeType), DateUtils.Y_M_D); | |
| 590 | 589 | |
| 591 | 590 | //查询出产妇预约 |
| 592 | 591 | List<PostReviewModel> orderModels = postReviewService.queryPostOrder(actualSendDate, tempHid); |
| 593 | 592 | |
| ... | ... | @@ -679,9 +678,10 @@ |
| 679 | 678 | } |
| 680 | 679 | } |
| 681 | 680 | } |
| 682 | - list.setMessages(messages); | |
| 683 | - HelperUtils.sendMsg(list); | |
| 681 | + | |
| 684 | 682 | } |
| 683 | + list.setMessages(messages); | |
| 684 | + HelperUtils.sendMsg(list); | |
| 685 | 685 | } |
| 686 | 686 | |
| 687 | 687 |