| | |
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | | import javax.validation.constraints.Email;
|
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.Size;
|
| | | 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.fasterxml.jackson.annotation.JsonIgnore;
|
| | | import com.fasterxml.jackson.annotation.JsonProperty;
|
| | | import com.ruoyi.common.xss.Xss;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel.Type;
|
| | |
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | /** 用户ID */
|
| | | @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | private Long userId;
|
| | |
|
| | | /** 部门ID */
|
| | | @Excel(name = "部门编号", type = Type.IMPORT)
|
| | | private Long deptId;
|
| | |
|
| | | /** 用户账号 */
|
| | | @Excel(name = "登录名称")
|
| | |
| | | private String email;
|
| | |
|
| | | /** 手机号码 */
|
| | | @Excel(name = "手机号码")
|
| | | @Excel(name = "手机号码", cellType = ColumnType.TEXT)
|
| | | private String phonenumber;
|
| | |
|
| | | /** 用户性别 */
|
| | |
| | | /** 密码 */
|
| | | private String password;
|
| | |
|
| | | /** 盐加密 */
|
| | | private String salt;
|
| | |
|
| | | /** 帐号状态(0正常 1停用) */
|
| | | @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
|
| | | /** 账号状态(0正常 1停用) */
|
| | | @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用")
|
| | | private String status;
|
| | |
|
| | | /** 删除标志(0代表存在 2代表删除) */
|
| | | private String delFlag;
|
| | |
|
| | | /** 最后登陆IP */
|
| | | @Excel(name = "最后登陆IP", type = Type.EXPORT)
|
| | | /** 最后登录IP */
|
| | | @Excel(name = "最后登录IP", type = Type.EXPORT)
|
| | | private String loginIp;
|
| | |
|
| | | /** 最后登陆时间 */
|
| | | @Excel(name = "最后登陆时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
|
| | | /** 最后登录时间 */
|
| | | @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
|
| | | private Date loginDate;
|
| | |
|
| | | /** 部门对象 */
|
| | |
| | |
|
| | | /** 岗位组 */
|
| | | private Long[] postIds;
|
| | |
|
| | | /** 角色ID */
|
| | | private Long roleId;
|
| | |
|
| | | /** 租户ID */
|
| | | private Integer tenantId;
|
| | |
|
| | | private Long[] deptIds;
|
| | |
|
| | | @TableField(exist = false)
|
| | | private Long deptId;
|
| | |
|
| | | private Long currentDeptId;
|
| | |
|
| | | /** 当前登录公司 */
|
| | | private String currentFactoryName;
|
| | |
|
| | | public String getCurrentFactoryName() {
|
| | | return currentFactoryName;
|
| | | }
|
| | |
|
| | | public void setCurrentFactoryName(String currentFactoryName) {
|
| | | this.currentFactoryName = currentFactoryName;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 部门名称
|
| | | */
|
| | | private String deptNames;
|
| | |
|
| | | public Long getCurrentDeptId() {
|
| | | return currentDeptId;
|
| | | }
|
| | |
|
| | | public void setCurrentDeptId(Long currentDeptId) {
|
| | | this.currentDeptId = currentDeptId;
|
| | | }
|
| | |
|
| | | public SysUser()
|
| | | {
|
| | |
| | | return userId != null && 1L == userId;
|
| | | }
|
| | |
|
| | | public Long getDeptId()
|
| | | {
|
| | | return deptId;
|
| | | }
|
| | |
|
| | | public void setDeptId(Long deptId)
|
| | | {
|
| | | this.deptId = deptId;
|
| | | }
|
| | |
|
| | | @Xss(message = "用户昵称不能包含脚本字符")
|
| | | @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
|
| | | public String getNickName()
|
| | | {
|
| | |
| | | this.nickName = nickName;
|
| | | }
|
| | |
|
| | | @Xss(message = "用户账号不能包含脚本字符")
|
| | | @NotBlank(message = "用户账号不能为空")
|
| | | @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
|
| | | public String getUserName()
|
| | |
| | | this.avatar = avatar;
|
| | | }
|
| | |
|
| | | @JsonIgnore
|
| | | @JsonProperty
|
| | | public String getPassword()
|
| | | {
|
| | | return password;
|
| | |
| | | public void setPassword(String password)
|
| | | {
|
| | | this.password = password;
|
| | | }
|
| | |
|
| | | public String getSalt()
|
| | | {
|
| | | return salt;
|
| | | }
|
| | |
|
| | | public void setSalt(String salt)
|
| | | {
|
| | | this.salt = salt;
|
| | | }
|
| | |
|
| | | public String getStatus()
|
| | |
| | | this.postIds = postIds;
|
| | | }
|
| | |
|
| | | public Long getRoleId()
|
| | | {
|
| | | return roleId;
|
| | | }
|
| | |
|
| | | public void setRoleId(Long roleId)
|
| | | {
|
| | | this.roleId = roleId;
|
| | | }
|
| | |
|
| | | public Integer getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Integer tenantId) {
|
| | | 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())
|
| | |
| | | .append("sex", getSex())
|
| | | .append("avatar", getAvatar())
|
| | | .append("password", getPassword())
|
| | | .append("salt", getSalt())
|
| | | .append("status", getStatus())
|
| | | .append("delFlag", getDelFlag())
|
| | | .append("loginIp", getLoginIp())
|