去掉时间的记录,因为mp会自动填充

pull/3/head
fengshuonan 2020-12-24 13:51:16 +08:00
parent 89c378807f
commit 55898c70fd
1 changed files with 4 additions and 6 deletions

View File

@ -12,7 +12,10 @@ import cn.stylefeng.roses.kernel.log.db.entity.SysLog;
import cn.stylefeng.roses.kernel.log.db.service.SysLogService;
import lombok.extern.slf4j.Slf4j;
import java.util.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
import java.util.TimerTask;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
@ -90,11 +93,6 @@ public class DbLogRecordServiceImpl implements LogRecordApi {
sysLog.setAppName(LogConstants.LOG_DEFAULT_APP_NAME);
}
// 如果操作时间为空的话插入当前时间
if (sysLog.getCreateTime() == null) {
sysLog.setCreateTime(new Date());
}
return sysLog;
}).collect(Collectors.toList());