无关风月
2025-04-03 b01f752252eaadd1fa31eda6a9ad43146660b721
xinquan-api/xinquan-api-system/src/main/java/com/xinquan/system/api/domain/SysUser.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinquan.common.core.annotation.Excel;
import com.xinquan.common.core.annotation.Excel.ColumnType;
import com.xinquan.common.core.annotation.Excel.Type;
@@ -9,11 +10,13 @@
import com.xinquan.common.core.web.domain.BaseEntity;
import com.xinquan.common.core.xss.Xss;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.time.LocalDateTime;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;
@@ -23,6 +26,7 @@
 * 
 * @author ruoyi
 */
@Data
public class SysUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;
@@ -33,20 +37,22 @@
    private Long userId;
    /** 部门ID */
    @Excel(name = "部门编号", type = Type.IMPORT)
    @Excel(name = "部门id", type = Type.IMPORT)
    @TableField("dept_id")
    private Long deptId;
    /** 用户账号 */
    @Excel(name = "登录名称")
    @Excel(name = "登录名称/登录账号")
    @TableField("user_name")
    private String userName;
    /** 用户昵称 */
    @Excel(name = "用户名称")
    @NotBlank(message = "姓名不能为空")
    @Excel(name = "用户名称(姓名)")
    @TableField("nick_name")
    private String nickName;
    @Excel(name = "操作人")
    @TableField("handleName")
    private String handleName;
    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
@@ -54,7 +60,6 @@
    /** 手机号码 */
    @Excel(name = "手机号码")
    @NotBlank(message = "请输入账号")
    private String phonenumber;
    /** 用户性别 */
@@ -65,7 +70,6 @@
    private String avatar;
    /** 密码 */
    @NotBlank(message = "密码不能为空")
    private String password;
    /** 帐号状态(0正常 1停用) */
@@ -85,7 +89,7 @@
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("login_date")
    private Date loginDate;
    private LocalDateTime loginDate;
    /** 部门对象 */
    @Excels({
@@ -101,18 +105,40 @@
    /** 角色组 */
    @TableField(exist = false)
    @ApiModelProperty(value = "角色id数组")
    private Long[] roleIds;
    /** 岗位组 */
    @TableField(exist = false)
    private Long[] postIds;
    @ApiModelProperty(value = "部门id数组")
    private List<Long> deptIds;
    /** 角色ID */
    @TableField(exist = false)
    private Long roleId;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "用户类型 00:管理后台用户 01:APP用户")
    @TableField("user_type")
    private String userType;
    @ApiModelProperty(value = "禁用原因")
    @TableField("reason")
    private String reason;
    @ApiModelProperty(value = "禁用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("disable_time")
    private LocalDateTime disableTime;
    public String getUserType() {
        return userType;
    }
    public void setUserType(String userType) {
        this.userType = userType;
    }
    @Override
    public String getRemark() {
@@ -271,12 +297,12 @@
        this.loginIp = loginIp;
    }
    public Date getLoginDate()
    public LocalDateTime getLoginDate()
    {
        return loginDate;
    }
    public void setLoginDate(Date loginDate)
    public void setLoginDate(LocalDateTime loginDate)
    {
        this.loginDate = loginDate;
    }
@@ -311,15 +337,6 @@
        this.roleIds = roleIds;
    }
    public Long[] getPostIds()
    {
        return postIds;
    }
    public void setPostIds(Long[] postIds)
    {
        this.postIds = postIds;
    }
    public Long getRoleId()
    {