完成简单入出库功能

This commit is contained in:
AlanScipio
2024-03-06 16:26:21 +08:00
parent 24f1f4c3e7
commit 1c38d91567
26 changed files with 948 additions and 182 deletions

View File

@@ -33,12 +33,12 @@ public class JobDataLogServiceImpl implements IJobDataLogService {
if (log.getLogId() == null) {
log.setLogId(SnowFlakeIdGenerator.nextIdLong());
}
if (log.getJobClass() == null) {
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
StackTraceElement caller = stackTraceElements[2];
log.setJobClass(caller.getClassName());
log.setJobMethod(caller.getMethodName());
}
// if (log.getJobClass() == null) {
// StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
// StackTraceElement caller = stackTraceElements[2];
// log.setJobClass(caller.getClassName());
// log.setJobMethod(caller.getMethodName());
// }
jobDataLogMapper.insertSelective(log);
}
}