|
@@ -1,5 +1,8 @@
|
|
|
package com.ktg.common.core.domain.entity;
|
|
package com.ktg.common.core.domain.entity;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.ktg.common.annotation.Excel;
|
|
import com.ktg.common.annotation.Excel;
|
|
@@ -9,6 +12,7 @@ import com.ktg.common.annotation.Excels;
|
|
|
import com.ktg.common.core.domain.BaseEntity;
|
|
import com.ktg.common.core.domain.BaseEntity;
|
|
|
import com.ktg.common.xss.Xss;
|
|
import com.ktg.common.xss.Xss;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
|
|
@@ -23,12 +27,14 @@ import java.util.List;
|
|
|
*
|
|
*
|
|
|
* @author ktg
|
|
* @author ktg
|
|
|
*/
|
|
*/
|
|
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
@Data
|
|
@Data
|
|
|
public class SysUser extends BaseEntity
|
|
public class SysUser extends BaseEntity
|
|
|
{
|
|
{
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
/** 用户ID */
|
|
/** 用户ID */
|
|
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
@Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
|
@Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
|
|
private Long userId;
|
|
private Long userId;
|
|
|
|
|
|
|
@@ -63,6 +69,7 @@ public class SysUser extends BaseEntity
|
|
|
private String password;
|
|
private String password;
|
|
|
|
|
|
|
|
/** 盐加密 */
|
|
/** 盐加密 */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private String salt;
|
|
private String salt;
|
|
|
|
|
|
|
|
/** 帐号状态(0正常 1停用) */
|
|
/** 帐号状态(0正常 1停用) */
|
|
@@ -85,20 +92,26 @@ public class SysUser extends BaseEntity
|
|
|
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
|
@Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
|
|
@Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
|
|
@Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT)
|
|
|
})
|
|
})
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private SysDept dept;
|
|
private SysDept dept;
|
|
|
|
|
|
|
|
/** 角色对象 */
|
|
/** 角色对象 */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private List<SysRole> roles;
|
|
private List<SysRole> roles;
|
|
|
|
|
|
|
|
/** 角色组 */
|
|
/** 角色组 */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private Long[] roleIds;
|
|
private Long[] roleIds;
|
|
|
|
|
|
|
|
/** 岗位组 */
|
|
/** 岗位组 */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private Long[] postIds;
|
|
private Long[] postIds;
|
|
|
|
|
|
|
|
/** 角色ID */
|
|
/** 角色ID */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private Long roleId;
|
|
private Long roleId;
|
|
|
|
|
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
private String roleKey;
|
|
private String roleKey;
|
|
|
|
|
|
|
|
public SysUser()
|
|
public SysUser()
|