@ -1,402 +1,402 @@
/* */ package com.archive.project.system.user.domain
package com.archive.project.system.user.domain
;
;
/* */
/* */ import com.archive.framework.aspectj.lang.annotation.ColumnType ;
import com.archive.framework.aspectj.lang.annotation.ColumnType ;
import com.archive.framework.aspectj.lang.annotation.Excel ;
import com.archive.framework.aspectj.lang.annotation.Excel ;
/* */ import com.archive.framework.aspectj.lang.annotation.Excels ;
import com.archive.framework.aspectj.lang.annotation.Excels ;
/* */ import com.archive.framework.aspectj.lang.annotation.Type ;
import com.archive.framework.aspectj.lang.annotation.Type ;
import com.archive.framework.web.domain.BaseEntity ;
import com.archive.framework.web.domain.BaseEntity ;
/* */ import com.archive.project.system.dept.domain.Dept ;
import com.archive.project.system.dept.domain.Dept ;
/* */ import com.archive.project.system.role.domain.Role ;
import com.archive.project.system.role.domain.Role ;
/* */ import com.fasterxml.jackson.annotation.JsonIgnore ;
import com.fasterxml.jackson.annotation.JsonIgnore ;
/* */ import java.util.Date ;
import java.util.Date ;
/* */ import java.util.List ;
import java.util.List ;
/* */ import javax.validation.constraints.Email ;
import javax.validation.constraints.Email ;
/* */ import javax.validation.constraints.NotBlank ;
import javax.validation.constraints.NotBlank ;
/* */ import javax.validation.constraints.Size ;
import javax.validation.constraints.Size ;
/* */ 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 ;
/* */ import org.apache.shiro.crypto.SecureRandomNumberGenerator ;
import org.apache.shiro.crypto.SecureRandomNumberGenerator ;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class User
public class User
/* */ extends BaseEntity
extends BaseEntity
/* */ {
{
/* */ private static final long serialVersionUID = 1L ;
private static final long serialVersionUID = 1L ;
/* */ @Excel ( name = "用户序号" , cellType = ColumnType . NUMERIC , prompt = "用户编号" )
@Excel ( name = "用户序号" , cellType = ColumnType . NUMERIC , prompt = "用户编号" )
/* */ private Long userId ;
private Long userId ;
/* */ @Excel ( name = "部门编号" , type = Type . IMPORT )
@Excel ( name = "部门编号" , type = Type . IMPORT )
/* */ private Long deptId ;
private Long deptId ;
/* */ private Long parentId ;
private Long parentId ;
/* */ private Long roleId ;
private Long roleId ;
/* */ @Excel ( name = "登录名称" )
@Excel ( name = "登录名称" )
/* */ private String loginName ;
private String loginName ;
/* */ @Excel ( name = "用户名称" )
@Excel ( name = "用户名称" )
/* */ private String userName ;
private String userName ;
/* */ private String userType ;
private String userType ;
/* */ @Excel ( name = "用户邮箱" )
@Excel ( name = "用户邮箱" )
/* */ private String email ;
private String email ;
/* */ @Excel ( name = "手机号码" )
@Excel ( name = "手机号码" )
/* */ private String phonenumber ;
private String phonenumber ;
/* */ @Excel ( name = "用户性别" , readConverterExp = "0=男,1=女,2=未知" )
@Excel ( name = "用户性别" , readConverterExp = "0=男,1=女,2=未知" )
/* */ private String sex ;
private String sex ;
/* */ private String avatar ;
private String avatar ;
/* */ private String password ;
private String password ;
/* */ private String salt ;
private String salt ;
/* */ @Excel ( name = "帐号状态" , readConverterExp = "0=正常,1=停用" )
@Excel ( name = "帐号状态" , readConverterExp = "0=正常,1=停用" )
/* */ private String status ;
private String status ;
/* */ private String delFlag ;
private String delFlag ;
/* */ @Excel ( name = "最后登录IP" , type = Type . EXPORT )
@Excel ( name = "最后登录IP" , type = Type . EXPORT )
/* */ private String loginIp ;
private String loginIp ;
/* */ @Excel ( name = "最后登录时间" , width = 30.0D , dateFormat = "yyyy-MM-dd HH:mm:ss" , type = Type . EXPORT )
@Excel ( name = "最后登录时间" , width = 30.0D , dateFormat = "yyyy-MM-dd HH:mm:ss" , type = Type . EXPORT )
/* */ private Date loginDate ;
private Date loginDate ;
/* */ private Date pwdUpdateDate ;
private Date pwdUpdateDate ;
/* */ @Excels ( { @Excel ( name = "部门名称" , targetAttr = "deptName" , type = Type . EXPORT ) , @Excel ( name = "部门负责人" , targetAttr = "leader" , type = Type . EXPORT ) } )
@Excels ( { @Excel ( name = "部门名称" , targetAttr = "deptName" , type = Type . EXPORT ) , @Excel ( name = "部门负责人" , targetAttr = "leader" , type = Type . EXPORT ) } )
/* */ private Dept dept ;
private Dept dept ;
/* */ private List < Role > roles ;
private List < Role > roles ;
/* */ private Long [ ] roleIds ;
private Long [ ] roleIds ;
/* */ private Long [ ] postIds ;
private Long [ ] postIds ;
/* */
/* */ public User ( ) { }
public User ( ) { }
/* */
/* */ public User ( Long userId ) {
public User ( Long userId ) {
/* 113 */ this . userId = userId ;
this . userId = userId ;
/* */ }
}
/* */
/* */
/* */ public Long getUserId ( ) {
public Long getUserId ( ) {
/* 118 */ return this . userId ;
return this . userId ;
/* */ }
}
/* */
/* */
/* */ public void setUserId ( Long userId ) {
public void setUserId ( Long userId ) {
/* 123 */ this . userId = userId ;
this . userId = userId ;
/* */ }
}
/* */
/* */
/* */ public boolean isAdmin ( ) {
public boolean isAdmin ( ) {
/* 128 */ return isAdmin ( this . userId ) ;
return isAdmin ( this . userId ) ;
/* */ }
}
/* */
/* */
/* */ public static boolean isAdmin ( Long userId ) {
public static boolean isAdmin ( Long userId ) {
/* 133 */ return ( userId ! = null & & 1L = = userId . longValue ( ) ) ;
return ( userId ! = null & & 1L = = userId . longValue ( ) ) ;
/* */ }
}
/* */
/* */
/* */ public Long getDeptId ( ) {
public Long getDeptId ( ) {
/* 138 */ return this . deptId ;
return this . deptId ;
/* */ }
}
/* */
/* */
/* */ public void setDeptId ( Long deptId ) {
public void setDeptId ( Long deptId ) {
/* 143 */ this . deptId = deptId ;
this . deptId = deptId ;
/* */ }
}
/* */
/* */
/* */ public Long getParentId ( ) {
public Long getParentId ( ) {
/* 148 */ return this . parentId ;
return this . parentId ;
/* */ }
}
/* */
/* */
/* */ public void setParentId ( Long parentId ) {
public void setParentId ( Long parentId ) {
/* 153 */ this . parentId = parentId ;
this . parentId = parentId ;
/* */ }
}
/* */
/* */
/* */ public Long getRoleId ( ) {
public Long getRoleId ( ) {
/* 158 */ return this . roleId ;
return this . roleId ;
/* */ }
}
/* */
/* */
/* */ public void setRoleId ( Long roleId ) {
public void setRoleId ( Long roleId ) {
/* 163 */ this . roleId = roleId ;
this . roleId = roleId ;
/* */ }
}
/* */
/* */
/* */ @NotBlank ( message = "登录账号不能为空" )
@NotBlank ( message = "登录账号不能为空" )
/* */ @Size ( min = 0 , max = 30 , message = "登录账号长度不能超过30个字符" )
@Size ( min = 0 , max = 30 , message = "登录账号长度不能超过30个字符" )
/* */ public String getLoginName ( ) {
public String getLoginName ( ) {
/* 170 */ return this . loginName ;
return this . loginName ;
/* */ }
}
/* */
/* */
/* */ public void setLoginName ( String loginName ) {
public void setLoginName ( String loginName ) {
/* 175 */ this . loginName = loginName ;
this . loginName = loginName ;
/* */ }
}
/* */
/* */
/* */ @Size ( min = 0 , max = 30 , message = "用户昵称长度不能超过30个字符" )
@Size ( min = 0 , max = 30 , message = "用户昵称长度不能超过30个字符" )
/* */ public String getUserName ( ) {
public String getUserName ( ) {
/* 181 */ return this . userName ;
return this . userName ;
/* */ }
}
/* */
/* */
/* */ public void setUserName ( String userName ) {
public void setUserName ( String userName ) {
/* 186 */ this . userName = userName ;
this . userName = userName ;
/* */ }
}
/* */
/* */
/* */ public String getUserType ( ) {
public String getUserType ( ) {
/* 191 */ return this . userType ;
return this . userType ;
/* */ }
}
/* */
/* */
/* */ public void setUserType ( String userType ) {
public void setUserType ( String userType ) {
/* 196 */ this . userType = userType ;
this . userType = userType ;
/* */ }
}
/* */
/* */
/* */ @Email ( message = "邮箱格式不正确" )
@Email ( message = "邮箱格式不正确" )
/* */ @Size ( min = 0 , max = 50 , message = "邮箱长度不能超过50个字符" )
@Size ( min = 0 , max = 50 , message = "邮箱长度不能超过50个字符" )
/* */ public String getEmail ( ) {
public String getEmail ( ) {
/* 203 */ return this . email ;
return this . email ;
/* */ }
}
/* */
/* */
/* */ public void setEmail ( String email ) {
public void setEmail ( String email ) {
/* 208 */ this . email = email ;
this . email = email ;
/* */ }
}
/* */
/* */
/* */ @Size ( min = 0 , max = 11 , message = "手机号码长度不能超过11个字符" )
@Size ( min = 0 , max = 11 , message = "手机号码长度不能超过11个字符" )
/* */ public String getPhonenumber ( ) {
public String getPhonenumber ( ) {
/* 214 */ return this . phonenumber ;
return this . phonenumber ;
/* */ }
}
/* */
/* */
/* */ public void setPhonenumber ( String phonenumber ) {
public void setPhonenumber ( String phonenumber ) {
/* 219 */ this . phonenumber = phonenumber ;
this . phonenumber = phonenumber ;
/* */ }
}
/* */
/* */
/* */ public String getSex ( ) {
public String getSex ( ) {
/* 224 */ return this . sex ;
return this . sex ;
/* */ }
}
/* */
/* */
/* */ public void setSex ( String sex ) {
public void setSex ( String sex ) {
/* 229 */ this . sex = sex ;
this . sex = sex ;
/* */ }
}
/* */
/* */
/* */ public String getAvatar ( ) {
public String getAvatar ( ) {
/* 234 */ return this . avatar ;
return this . avatar ;
/* */ }
}
/* */
/* */
/* */ public void setAvatar ( String avatar ) {
public void setAvatar ( String avatar ) {
/* 239 */ this . avatar = avatar ;
this . avatar = avatar ;
/* */ }
}
/* */
/* */
/* */ @JsonIgnore
@JsonIgnore
/* */ public String getPassword ( ) {
public String getPassword ( ) {
/* 245 */ return this . password ;
return this . password ;
/* */ }
}
/* */
/* */
/* */ public void setPassword ( String password ) {
public void setPassword ( String password ) {
/* 250 */ this . password = password ;
this . password = password ;
/* */ }
}
/* */
/* */
/* */ public String getSalt ( ) {
public String getSalt ( ) {
/* 255 */ return this . salt ;
return this . salt ;
/* */ }
}
/* */
/* */
/* */ public void setSalt ( String salt ) {
public void setSalt ( String salt ) {
/* 260 */ this . salt = salt ;
this . salt = salt ;
/* */ }
}
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void randomSalt ( ) {
public void randomSalt ( ) {
/* 269 */ SecureRandomNumberGenerator secureRandom = new SecureRandomNumberGenerator ( ) ;
SecureRandomNumberGenerator secureRandom = new SecureRandomNumberGenerator ( ) ;
/* 270 */ String hex = secureRandom . nextBytes ( 3 ) . toHex ( ) ;
String hex = secureRandom . nextBytes ( 3 ) . toHex ( ) ;
/* 271 */ setSalt ( hex ) ;
setSalt ( hex ) ;
/* */ }
}
/* */
/* */
/* */ public String getStatus ( ) {
public String getStatus ( ) {
/* 276 */ return this . status ;
return this . status ;
/* */ }
}
/* */
/* */
/* */ public void setStatus ( String status ) {
public void setStatus ( String status ) {
/* 281 */ this . status = status ;
this . status = status ;
/* */ }
}
/* */
/* */
/* */ public String getDelFlag ( ) {
public String getDelFlag ( ) {
/* 286 */ return this . delFlag ;
return this . delFlag ;
/* */ }
}
/* */
/* */
/* */ public void setDelFlag ( String delFlag ) {
public void setDelFlag ( String delFlag ) {
/* 291 */ this . delFlag = delFlag ;
this . delFlag = delFlag ;
/* */ }
}
/* */
/* */
/* */ public String getLoginIp ( ) {
public String getLoginIp ( ) {
/* 296 */ return this . loginIp ;
return this . loginIp ;
/* */ }
}
/* */
/* */
/* */ public void setLoginIp ( String loginIp ) {
public void setLoginIp ( String loginIp ) {
/* 301 */ this . loginIp = loginIp ;
this . loginIp = loginIp ;
/* */ }
}
/* */
/* */
/* */ public Date getLoginDate ( ) {
public Date getLoginDate ( ) {
/* 306 */ return this . loginDate ;
return this . loginDate ;
/* */ }
}
/* */
/* */
/* */ public void setLoginDate ( Date loginDate ) {
public void setLoginDate ( Date loginDate ) {
/* 311 */ this . loginDate = loginDate ;
this . loginDate = loginDate ;
/* */ }
}
/* */
/* */
/* */ public Date getPwdUpdateDate ( ) {
public Date getPwdUpdateDate ( ) {
/* 316 */ return this . pwdUpdateDate ;
return this . pwdUpdateDate ;
/* */ }
}
/* */
/* */
/* */ public void setPwdUpdateDate ( Date pwdUpdateDate ) {
public void setPwdUpdateDate ( Date pwdUpdateDate ) {
/* 321 */ this . pwdUpdateDate = pwdUpdateDate ;
this . pwdUpdateDate = pwdUpdateDate ;
/* */ }
}
/* */
/* */
/* */ public Dept getDept ( ) {
public Dept getDept ( ) {
/* 326 */ if ( this . dept = = null )
if ( this . dept = = null )
/* */ {
{
/* 328 */ this . dept = new Dept ( ) ;
this . dept = new Dept ( ) ;
/* */ }
}
/* 330 */ return this . dept ;
return this . dept ;
/* */ }
}
/* */
/* */
/* */ public void setDept ( Dept dept ) {
public void setDept ( Dept dept ) {
/* 335 */ this . dept = dept ;
this . dept = dept ;
/* */ }
}
/* */
/* */
/* */ public List < Role > getRoles ( ) {
public List < Role > getRoles ( ) {
/* 340 */ return this . roles ;
return this . roles ;
/* */ }
}
/* */
/* */
/* */ public void setRoles ( List < Role > roles ) {
public void setRoles ( List < Role > roles ) {
/* 345 */ this . roles = roles ;
this . roles = roles ;
/* */ }
}
/* */
/* */
/* */ public Long [ ] getRoleIds ( ) {
public Long [ ] getRoleIds ( ) {
/* 350 */ return this . roleIds ;
return this . roleIds ;
/* */ }
}
/* */
/* */
/* */ public void setRoleIds ( Long [ ] roleIds ) {
public void setRoleIds ( Long [ ] roleIds ) {
/* 355 */ this . roleIds = roleIds ;
this . roleIds = roleIds ;
/* */ }
}
/* */
/* */
/* */ public Long [ ] getPostIds ( ) {
public Long [ ] getPostIds ( ) {
/* 360 */ return this . postIds ;
return this . postIds ;
/* */ }
}
/* */
/* */
/* */ public void setPostIds ( Long [ ] postIds ) {
public void setPostIds ( Long [ ] postIds ) {
/* 365 */ this . postIds = postIds ;
this . postIds = postIds ;
/* */ }
}
/* */
/* */ @Override
@Override
/* */ public String toString ( ) {
public String toString ( ) {
/* 370 */ return ( new ToStringBuilder ( this , ToStringStyle . MULTI_LINE_STYLE ) )
return ( new ToStringBuilder ( this , ToStringStyle . MULTI_LINE_STYLE ) )
/* 371 */ . append ( "userId" , getUserId ( ) )
. append ( "userId" , getUserId ( ) )
/* 372 */ . append ( "deptId" , getDeptId ( ) )
. append ( "deptId" , getDeptId ( ) )
/* 373 */ . append ( "loginName" , getLoginName ( ) )
. append ( "loginName" , getLoginName ( ) )
/* 374 */ . append ( "userName" , getUserName ( ) )
. append ( "userName" , getUserName ( ) )
/* 375 */ . append ( "userType" , getUserType ( ) )
. append ( "userType" , getUserType ( ) )
/* 376 */ . append ( "email" , getEmail ( ) )
. append ( "email" , getEmail ( ) )
/* 377 */ . append ( "phonenumber" , getPhonenumber ( ) )
. append ( "phonenumber" , getPhonenumber ( ) )
/* 378 */ . append ( "sex" , getSex ( ) )
. append ( "sex" , getSex ( ) )
/* 379 */ . append ( "avatar" , getAvatar ( ) )
. append ( "avatar" , getAvatar ( ) )
/* 380 */ . append ( "password" , getPassword ( ) )
. append ( "password" , getPassword ( ) )
/* 381 */ . append ( "salt" , getSalt ( ) )
. append ( "salt" , getSalt ( ) )
/* 382 */ . append ( "status" , getStatus ( ) )
. append ( "status" , getStatus ( ) )
/* 383 */ . append ( "delFlag" , getDelFlag ( ) )
. append ( "delFlag" , getDelFlag ( ) )
/* 384 */ . append ( "loginIp" , getLoginIp ( ) )
. append ( "loginIp" , getLoginIp ( ) )
/* 385 */ . append ( "loginDate" , getLoginDate ( ) )
. append ( "loginDate" , getLoginDate ( ) )
/* 386 */ . append ( "createBy" , getCreateBy ( ) )
. append ( "createBy" , getCreateBy ( ) )
/* 387 */ . append ( "createTime" , getCreateTime ( ) )
. append ( "createTime" , getCreateTime ( ) )
/* 388 */ . append ( "updateBy" , getUpdateBy ( ) )
. append ( "updateBy" , getUpdateBy ( ) )
/* 389 */ . append ( "updateTime" , getUpdateTime ( ) )
. append ( "updateTime" , getUpdateTime ( ) )
/* 390 */ . append ( "remark" , getRemark ( ) )
. append ( "remark" , getRemark ( ) )
/* 391 */ . append ( "dept" , getDept ( ) )
. append ( "dept" , getDept ( ) )
/* 392 */ . append ( "roles" , getRoles ( ) )
. append ( "roles" , getRoles ( ) )
/* 393 */ . toString ( ) ;
. toString ( ) ;
/* */ }
}
/* */ }
}
/ * Location : C : \ Users \ Administrator \ Desktop \ extracted . zip ! \ extracted \ BOOT - INF \ classes \ com \ archive \ project \ syste \ \ user \ domain \ User . class
/ * Location : C : \ Users \ Administrator \ Desktop \ extracted . zip ! \ extracted \ BOOT - INF \ classes \ com \ archive \ project \ syste \ \ user \ domain \ User . class