chenrui
5 天以前 2382a47279b6ed520593539f73aa5e512b4f016e
src/main/java/com/ruoyi/project/system/domain/SysUser.java
@@ -3,6 +3,8 @@
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.ruoyi.common.xss.Xss;
@@ -24,10 +26,6 @@
    /** 用户ID */
    @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号")
    private Long userId;
    /** 部门ID */
    @Excel(name = "部门编号", type = Type.IMPORT)
    private Long deptId;
    /** 用户账号 */
    @Excel(name = "登录名称")
@@ -92,6 +90,16 @@
    /** 租户ID */
    private Integer tenantId;
    private Long[] deptIds;
    @TableField(exist = false)
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptNames;
    public SysUser()
    {
@@ -120,16 +128,6 @@
    public static boolean isAdmin(Long userId)
    {
        return userId != null && 1L == userId;
    }
    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }
    @Xss(message = "用户昵称不能包含脚本字符")
@@ -308,11 +306,34 @@
        this.tenantId = tenantId;
    }
    public Long[] getDeptIds() {
        return deptIds;
    }
    public void setDeptIds(Long[] deptIds) {
        this.deptIds = deptIds;
    }
    public String getDeptNames() {
        return deptNames;
    }
    public void setDeptNames(String deptNames) {
        this.deptNames = deptNames;
    }
    public Long getDeptId() {
        return deptId;
    }
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("email", getEmail())