|
|
@@ -44,6 +44,10 @@ public class CommonLogTask { |
|
|
|
@Scheduled(fixedDelay = 120000) |
|
|
|
public void writeLog(){ |
|
|
|
//获取记录ID文件 |
|
|
|
boolean idFileExist = FileUtil.exist(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
if (!idFileExist){ |
|
|
|
FileUtil.newFile(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
} |
|
|
|
FileReader fileReader = new FileReader(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
String result = fileReader.readString(); |
|
|
|
long startLogId = 0L; |
|
|
|