| | |
| | | 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;
|
| | |
| | | /** 用户ID */
|
| | | @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号")
|
| | | private Long userId;
|
| | |
|
| | | /** 部门ID */
|
| | | @Excel(name = "部门编号", type = Type.IMPORT)
|
| | | private Long deptId;
|
| | |
|
| | | /** 用户账号 */
|
| | | @Excel(name = "登录名称")
|
| | |
| | | /** 租户ID */
|
| | | private Integer tenantId;
|
| | |
|
| | | private Long[] deptIds;
|
| | |
|
| | | @TableField(exist = false)
|
| | | private Long deptId;
|
| | |
|
| | | private Long currentDeptId;
|
| | |
|
| | | /**
|
| | | * 部门名称
|
| | | */
|
| | | private String deptNames;
|
| | |
|
| | | public Long getCurrentDeptId() {
|
| | | return currentDeptId;
|
| | | }
|
| | |
|
| | | public void setCurrentDeptId(Long currentDeptId) {
|
| | | this.currentDeptId = currentDeptId;
|
| | | }
|
| | |
|
| | | public SysUser()
|
| | | {
|
| | |
|
| | |
| | | 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 = "用户昵称不能包含脚本字符")
|
| | |
| | | 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())
|