新增部门负责人
This commit is contained in:
parent
adf61375c7
commit
14a1e5e7cb
|
@ -1,5 +1,6 @@
|
|||
package net.maku.system.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
@ -29,6 +30,11 @@ public class SysOrgEntity extends BaseEntity {
|
|||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 负责人ID
|
||||
*/
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Long leaderId;
|
||||
/**
|
||||
* 上级名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
|
|
|
@ -30,6 +30,9 @@ public class SysOrgVO extends TreeNode<SysOrgVO> {
|
|||
@Min(value = 0, message = "排序值不能小于0")
|
||||
private Integer sort;
|
||||
|
||||
@Schema(description = "负责人ID")
|
||||
private Long leaderId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
|
||||
private Date createTime;
|
||||
|
|
Loading…
Reference in New Issue
Block a user