|
@@ -4,6 +4,7 @@ import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import javax.validation.constraints.*;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
import com.ozs.common.annotation.Excel;
|
|
@@ -109,30 +110,40 @@ public class SysUser extends BaseEntity {
|
|
|
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
|
|
@Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
|
|
|
})
|
|
|
+ @TableField(exist = false)
|
|
|
private SysDept dept;
|
|
|
|
|
|
/**
|
|
|
* 角色对象
|
|
|
*/
|
|
|
+ @TableField(exist = false)
|
|
|
private List<SysRole> roles;
|
|
|
|
|
|
/**
|
|
|
* 角色组
|
|
|
*/
|
|
|
+ @TableField(exist = false)
|
|
|
private Long[] roleIds;
|
|
|
|
|
|
/**
|
|
|
* 岗位组
|
|
|
*/
|
|
|
+ @TableField(exist = false)
|
|
|
private Long[] postIds;
|
|
|
|
|
|
/**
|
|
|
* 角色ID
|
|
|
*/
|
|
|
+ @TableField(exist = false)
|
|
|
private Long roleId;
|
|
|
|
|
|
private Integer dataPermission;
|
|
|
|
|
|
+ /** 部门名称 */
|
|
|
+ @Excel(name = "部门名称")
|
|
|
+ @TableField(exist = false)
|
|
|
+ private String deptName;
|
|
|
+
|
|
|
public Integer getDataPermission() {
|
|
|
return dataPermission;
|
|
|
}
|
|
@@ -145,6 +156,14 @@ public class SysUser extends BaseEntity {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public String getDeptName() {
|
|
|
+ return deptName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDeptName(String deptName) {
|
|
|
+ this.deptName = deptName;
|
|
|
+ }
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
@@ -341,6 +360,7 @@ public class SysUser extends BaseEntity {
|
|
|
.append("remark", getRemark())
|
|
|
.append("dept", getDept())
|
|
|
.append("dataPermission", getDataPermission())
|
|
|
+ .append("deptName",getDeptName())
|
|
|
.toString();
|
|
|
}
|
|
|
}
|