Commit f08579314169a6097b5ed5afce91239727052195
1 parent
d95eb56a
feat: 新增日期日志
Showing
1 changed file
with
1 additions
and
0 deletions
Bsth-admin/src/main/java/com/ruoyi/service/ThreadJobService.java
| @@ -381,6 +381,7 @@ public class ThreadJobService { | @@ -381,6 +381,7 @@ public class ThreadJobService { | ||
| 381 | Date date2 = ConstDateUtil.dateAddition(date.toString(), timeOut); | 381 | Date date2 = ConstDateUtil.dateAddition(date.toString(), timeOut); |
| 382 | Date date1 = new Date(); | 382 | Date date1 = new Date(); |
| 383 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | 383 | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| 384 | + log.info("当前时间:{},设定时间:{}", format.format(date1), format.format(date2)); | ||
| 384 | // 如果当前日期小于设定时间就不获取固定排班 | 385 | // 如果当前日期小于设定时间就不获取固定排班 |
| 385 | if (date1.compareTo(date2) < 0) { | 386 | if (date1.compareTo(date2) < 0) { |
| 386 | log.info("当前日期小于设定时间就不获取排班,当前时间:{},设定时间:{}", format.format(date1), format.format(date2)); | 387 | log.info("当前日期小于设定时间就不获取排班,当前时间:{},设定时间:{}", format.format(date1), format.format(date2)); |