|
|
|
@ -1,16 +1,19 @@ |
|
|
|
|
package com.ruoyi.common.core.domain.entity; |
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
import javax.validation.constraints.*; |
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
|
|
import com.ruoyi.common.annotation.Excel; |
|
|
|
|
import com.ruoyi.common.annotation.Excel.ColumnType; |
|
|
|
|
import com.ruoyi.common.annotation.Excel.Type; |
|
|
|
|
import com.ruoyi.common.annotation.Excels; |
|
|
|
|
import com.ruoyi.common.core.domain.BaseEntity; |
|
|
|
|
import com.ruoyi.common.xss.Xss; |
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.Email; |
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
|
import javax.validation.constraints.Size; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 用户对象 sys_user |
|
|
|
@ -89,6 +92,20 @@ public class SysUser extends BaseEntity |
|
|
|
|
/** 角色ID */ |
|
|
|
|
private Long roleId; |
|
|
|
|
|
|
|
|
|
/** 微信昵称 */ |
|
|
|
|
@Excel(name = "微信昵称") |
|
|
|
|
private String wechatNickName; |
|
|
|
|
|
|
|
|
|
/** 账户余额 */ |
|
|
|
|
@Excel(name = "账户余额") |
|
|
|
|
private Long balance; |
|
|
|
|
|
|
|
|
|
/** 推荐人ID */ |
|
|
|
|
@Excel(name = "推荐人ID") |
|
|
|
|
private Long referrerId; |
|
|
|
|
|
|
|
|
|
private SysUser referrerSysUser; |
|
|
|
|
|
|
|
|
|
public SysUser() |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
@ -297,6 +314,43 @@ public class SysUser extends BaseEntity |
|
|
|
|
this.roleId = roleId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setWechatNickName(String wechatNickName) |
|
|
|
|
{ |
|
|
|
|
this.wechatNickName = wechatNickName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String getWechatNickName() |
|
|
|
|
{ |
|
|
|
|
return wechatNickName; |
|
|
|
|
} |
|
|
|
|
public void setBalance(Long balance) |
|
|
|
|
{ |
|
|
|
|
this.balance = balance; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Long getBalance() |
|
|
|
|
{ |
|
|
|
|
return balance; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setReferrerId(Long referrerId) |
|
|
|
|
{ |
|
|
|
|
this.referrerId = referrerId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Long getReferrerId() |
|
|
|
|
{ |
|
|
|
|
return referrerId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public SysUser getReferrerSysUser() { |
|
|
|
|
return referrerSysUser; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setReferrerSysUser(SysUser referrerSysUser) { |
|
|
|
|
this.referrerSysUser = referrerSysUser; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toString() { |
|
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
|
|
@ -319,6 +373,9 @@ public class SysUser extends BaseEntity |
|
|
|
|
.append("updateTime", getUpdateTime()) |
|
|
|
|
.append("remark", getRemark()) |
|
|
|
|
.append("dept", getDept()) |
|
|
|
|
.append("wechatNickName", getWechatNickName()) |
|
|
|
|
.append("balance", getBalance()) |
|
|
|
|
.append("referrerSysUser", getReferrerSysUser()) |
|
|
|
|
.toString(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|