| | |
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | | import javax.validation.constraints.*;
|
| | | import jakarta.validation.constraints.*;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.ruoyi.common.core.annotation.Excel;
|
| | |
| | | @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
|
| | | private Date loginDate;
|
| | |
|
| | | /** 密码最后更新时间 */
|
| | | private Date pwdUpdateDate;
|
| | |
|
| | | /** 部门对象 */
|
| | | @Excels({
|
| | | @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
|
| | |
| | | }
|
| | |
|
| | | public boolean isAdmin()
|
| | | {
|
| | | return isAdmin(this.userId);
|
| | | }
|
| | |
|
| | | public static boolean isAdmin(Long userId)
|
| | | {
|
| | | return UserConstants.isAdmin(userId);
|
| | | }
|
| | |
| | | this.loginDate = loginDate;
|
| | | }
|
| | |
|
| | | public Date getPwdUpdateDate()
|
| | | {
|
| | | return pwdUpdateDate;
|
| | | }
|
| | |
|
| | | public void setPwdUpdateDate(Date pwdUpdateDate)
|
| | | {
|
| | | this.pwdUpdateDate = pwdUpdateDate;
|
| | | }
|
| | |
|
| | | public SysDept getDept()
|
| | | {
|
| | | return dept;
|
| | |
| | | .append("delFlag", getDelFlag())
|
| | | .append("loginIp", getLoginIp())
|
| | | .append("loginDate", getLoginDate())
|
| | | .append("pwdUpdateDate", getPwdUpdateDate())
|
| | | .append("createBy", getCreateBy())
|
| | | .append("createTime", getCreateTime())
|
| | | .append("updateBy", getUpdateBy())
|