mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-02-02 06:51:58 +08:00
完成简单入出库功能
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.ruoyi.common.core.web.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
@@ -33,6 +35,16 @@ public class ExtBaseEntity extends BaseEntity {
|
||||
*/
|
||||
private Integer updateCount;
|
||||
|
||||
/**
|
||||
* 是否已逻辑删除
|
||||
*
|
||||
* @return true:已删除;false:未删除
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean isLogicDeleted() {
|
||||
return deleteFlag != null && deleteFlag == DELETED;
|
||||
}
|
||||
|
||||
public Integer getDeleteFlag() {
|
||||
return deleteFlag;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user