Commit 014e55c36e2bdd322cd8d00e6e6c2d6b850b7c43
1 parent
1c773c4e
修改的定时器时间
Showing
1 changed file
with
5 additions
and
4 deletions
src/main/java/com/example/demo/SaticScheduleTask.java
| @@ -56,8 +56,7 @@ public class SaticScheduleTask implements InitializingBean { | @@ -56,8 +56,7 @@ public class SaticScheduleTask implements InitializingBean { | ||
| 56 | List<Map<String,List<Scheduling>>> result=contrast.getSchedulingS(now,1); | 56 | List<Map<String,List<Scheduling>>> result=contrast.getSchedulingS(now,1); |
| 57 | contrast.getSchedulingS=result.get(0); | 57 | contrast.getSchedulingS=result.get(0); |
| 58 | contrast.getSchedulingSSell=result.get(1); | 58 | contrast.getSchedulingSSell=result.get(1); |
| 59 | - logger.info("===============================数据存放结束================================"); | ||
| 60 | - logger.info("===============================开始读取文件================================"); | 59 | + logger.info("===============================数据存放结束,开始读取文件================================"); |
| 61 | WatchKey watchKey = null; | 60 | WatchKey watchKey = null; |
| 62 | List<File> files = new ArrayList<>(); | 61 | List<File> files = new ArrayList<>(); |
| 63 | while ((watchKey = watchService.poll()) != null) { | 62 | while ((watchKey = watchService.poll()) != null) { |
| @@ -71,13 +70,15 @@ public class SaticScheduleTask implements InitializingBean { | @@ -71,13 +70,15 @@ public class SaticScheduleTask implements InitializingBean { | ||
| 71 | watchKey.reset(); | 70 | watchKey.reset(); |
| 72 | } | 71 | } |
| 73 | System.out.println("文件数"+files.size()); | 72 | System.out.println("文件数"+files.size()); |
| 74 | - logger.info("===============================读取文件结束================================"); | 73 | + logger.info("===============================文件数"+files.size()+",读取文件结束================================"); |
| 75 | //先把处理上一次没匹配到的 | 74 | //先把处理上一次没匹配到的 |
| 75 | + logger.info("===============================处理上次未匹配到的数据"+contrast.oldData.size()+"================================"); | ||
| 76 | if(!contrast.oldData.isEmpty()){ | 76 | if(!contrast.oldData.isEmpty()){ |
| 77 | contrast.filterCardList(contrast.oldData,true); | 77 | contrast.filterCardList(contrast.oldData,true); |
| 78 | } | 78 | } |
| 79 | + logger.info("===============================文件解析开始================================"); | ||
| 79 | List<TJRLDB> allFile = analysis.getAllFile(files); | 80 | List<TJRLDB> allFile = analysis.getAllFile(files); |
| 80 | - System.out.println("交易数"+allFile.size()); | 81 | + logger.info("===============================交易数"+allFile.size()+"文件解析结束================================"); |
| 81 | contrast.filterCardList(allFile,false); | 82 | contrast.filterCardList(allFile,false); |
| 82 | } | 83 | } |
| 83 | 84 |