[add] 添加所属部门字段

This commit is contained in:
lcj
2025-07-08 16:26:32 +08:00
parent c93565ad9c
commit de2012140e
53 changed files with 616 additions and 497 deletions

View File

@ -33,8 +33,8 @@ public class BaseEntity implements Serializable {
/**
* 创建部门
*/
/* @TableField(fill = FieldFill.INSERT)
private Long createDept;*/
@TableField(fill = FieldFill.INSERT)
private Long createDept;
/**
* 创建者

View File

@ -44,7 +44,7 @@ public class InjectionMetaObjectHandler implements MetaObjectHandler {
// 填充创建人、更新人和创建部门信息
baseEntity.setCreateBy(userId);
baseEntity.setUpdateBy(userId);
// baseEntity.setCreateDept(ObjectUtils.notNull(baseEntity.getCreateDept(), loginUser.getDeptId()));
baseEntity.setCreateDept(ObjectUtils.notNull(baseEntity.getCreateDept(), loginUser.getDeptId()));
}
}
} else {