Pārlūkot izejas kodu

feat: 增加linux换行符

tags/24080901
刘帅 pirms 1 gada
vecāks
revīzija
7746692da0
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java Parādīt failu

@@ -102,11 +102,13 @@ public class CommonLogTask {
//写入通用规则
FileWriter writer = new FileWriter(fileName);
writer.append(JSONUtil.toJsonStr(commonLog));
writer.append("\n");
if (commonLog.getActionType() == 3){
CommonLog commonLogEnd = new CommonLog();
BeanUtil.copyProperties(commonLog,commonLogEnd);
commonLogEnd.setActionType(4);
writer.append(JSONUtil.toJsonStr(commonLogEnd));
writer.append("\n");
}
}
//记录最后一个节点位置


Notiek ielāde…
Atcelt
Saglabāt