diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapBaseFile.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapBaseFile.java deleted file mode 100644 index 2994713f..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapBaseFile.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.annotation.Excel; -import com.op.common.core.web.domain.BaseEntity; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -/** - * 附件对象 base_file - * - * @author Open Platform - * @date 2023-07-10 - */ -public class SapBaseFile extends BaseEntity { - private static final long serialVersionUID = 1L; - - /** 附件ID */ - private String fileId; - - /** 附件名称 */ - @Excel(name = "附件名称") - private String fileName; - - /** 附件地址 */ - @Excel(name = "附件地址") - private String fileAddress; - - /** 数据来源 */ - @Excel(name = "数据来源") - private String sourceId; - - /** 预留字段1 */ - @Excel(name = "预留字段1") - private String attr1; - - /** 预留字段2 */ - @Excel(name = "预留字段2") - private String attr2; - - /** 预留字段3 */ - @Excel(name = "预留字段3") - private Long attr3; - - /** 预留字段4 */ - @Excel(name = "预留字段4") - private Long attr4; - - public void setFileId(String fileId) { - this.fileId = fileId; - } - - public String getFileId() { - return fileId; - } - public void setFileName(String fileName) { - this.fileName = fileName; - } - - public String getFileName() { - return fileName; - } - public void setFileAddress(String fileAddress) { - this.fileAddress = fileAddress; - } - - public String getFileAddress() { - return fileAddress; - } - public void setSourceId(String sourceId) { - this.sourceId = sourceId; - } - - public String getSourceId() { - return sourceId; - } - public void setAttr1(String attr1) { - this.attr1 = attr1; - } - - public String getAttr1() { - return attr1; - } - public void setAttr2(String attr2) { - this.attr2 = attr2; - } - - public String getAttr2() { - return attr2; - } - public void setAttr3(Long attr3) { - this.attr3 = attr3; - } - - public Long getAttr3() { - return attr3; - } - public void setAttr4(Long attr4) { - this.attr4 = attr4; - } - - public Long getAttr4() { - return attr4; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("fileId", getFileId()) - .append("fileName", getFileName()) - .append("fileAddress", getFileAddress()) - .append("sourceId", getSourceId()) - .append("remark", getRemark()) - .append("attr1", getAttr1()) - .append("attr2", getAttr2()) - .append("attr3", getAttr3()) - .append("attr4", getAttr4()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); - } -} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProcess.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProcess.java deleted file mode 100644 index 25882cb8..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProcess.java +++ /dev/null @@ -1,270 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.annotation.Excel; -import com.op.common.core.web.domain.BaseEntity; - -/** - * 工艺组成对象 pro_route_process - * - * @author yinjinlu - * @date 2022-05-13 - */ -public class SapProRouteProcess extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 记录ID */ - private String recordId; - - /** 工艺路线ID */ - @Excel(name = "工艺路线ID") - private String routeId; - - /** 工序ID */ - @Excel(name = "工序ID") - private String processId; - - /** 工序编码 */ - @Excel(name = "工序编码") - private String processCode; - - /** 工序名称 */ - @Excel(name = "工序名称") - private String processName; - - /** 序号 */ - @Excel(name = "序号") - private Integer orderNum; - - /** 工序ID */ - @Excel(name = "工序ID") - private String nextProcessId; - - /** 工序编码 */ - @Excel(name = "工序编码") - private String nextProcessCode; - - /** 工序名称 */ - @Excel(name = "工序名称") - private String nextProcessName; - - /** 与下一道工序关系 */ - @Excel(name = "与下一道工序关系") - private String linkType; - - /** 准备时间 */ - @Excel(name = "准备时间") - private String defaultPreTime; - - /** 等待时间 */ - @Excel(name = "等待时间") - private String defaultSufTime; - - /** 甘特图显示颜色 */ - @Excel(name = "甘特图显示颜色") - private String colorCode; - - /** 是否关键工序 */ - private String keyFlag; - - /** 预留字段1 */ - private String attr1; - - /** 预留字段2 */ - private String attr2; - - /** 预留字段3 */ - private String attr3; - - /** 预留字段4 */ - private String attr4; - - public void setRecordId(String recordId) - { - this.recordId = recordId; - } - - public String getRecordId() - { - return recordId; - } - public void setRouteId(String routeId) - { - this.routeId = routeId; - } - - public String getRouteId() - { - return routeId; - } - public void setProcessId(String processId) - { - this.processId = processId; - } - - public String getProcessId() - { - return processId; - } - public void setProcessCode(String processCode) - { - this.processCode = processCode; - } - - public String getProcessCode() - { - return processCode; - } - public void setProcessName(String processName) - { - this.processName = processName; - } - - public String getProcessName() - { - return processName; - } - public void setOrderNum(Integer orderNum) - { - this.orderNum = orderNum; - } - - public Integer getOrderNum() - { - return orderNum; - } - public void setNextProcessId(String nextProcessId) - { - this.nextProcessId = nextProcessId; - } - - public String getNextProcessId() - { - return nextProcessId; - } - public void setNextProcessCode(String nextProcessCode) - { - this.nextProcessCode = nextProcessCode; - } - - public String getNextProcessCode() - { - return nextProcessCode; - } - public void setNextProcessName(String nextProcessName) - { - this.nextProcessName = nextProcessName; - } - - public String getNextProcessName() - { - return nextProcessName; - } - public void setLinkType(String linkType) - { - this.linkType = linkType; - } - - public String getLinkType() - { - return linkType; - } - public void setDefaultPreTime(String defaultPreTime) - { - this.defaultPreTime = defaultPreTime; - } - - public String getDefaultPreTime() - { - return defaultPreTime; - } - public void setDefaultSufTime(String defaultSufTime) - { - this.defaultSufTime = defaultSufTime; - } - - public String getKeyFlag() { - return keyFlag; - } - - public void setKeyFlag(String keyFlag) { - this.keyFlag = keyFlag; - } - - public String getDefaultSufTime() - { - return defaultSufTime; - } - public void setColorCode(String colorCode) - { - this.colorCode = colorCode; - } - - public String getColorCode() - { - return colorCode; - } - - public void setAttr1(String attr1) - { - this.attr1 = attr1; - } - - public String getAttr1() - { - return attr1; - } - public void setAttr2(String attr2) - { - this.attr2 = attr2; - } - - - - public String getAttr2() - { - return attr2; - } - public void setAttr3(String attr3) - { - this.attr3 = attr3; - } - - public String getAttr3() - { - return attr3; - } - public void setAttr4(String attr4) - { - this.attr4 = attr4; - } - - public String getAttr4() - { - return attr4; - } - - @Override - public String toString() { - return "ProRouteProcess{" + - "recordId=" + recordId + - ", routeId=" + routeId + - ", processId=" + processId + - ", processCode='" + processCode + '\'' + - ", processName='" + processName + '\'' + - ", orderNum=" + orderNum + - ", nextProcessId=" + nextProcessId + - ", nextProcessCode='" + nextProcessCode + '\'' + - ", nextProcessName='" + nextProcessName + '\'' + - ", linkType='" + linkType + '\'' + - ", defaultPreTime=" + defaultPreTime + - ", defaultSufTime=" + defaultSufTime + - ", colorCode='" + colorCode + '\'' + - ", keyFlag='" + keyFlag + '\'' + - ", attr1='" + attr1 + '\'' + - ", attr2='" + attr2 + '\'' + - ", attr3=" + attr3 + - ", attr4=" + attr4 + - '}'; - } -} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProduct.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProduct.java deleted file mode 100644 index 52fee73a..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapProRouteProduct.java +++ /dev/null @@ -1,183 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.annotation.Excel; -import com.op.common.core.web.domain.BaseEntity; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -import java.util.List; - -/** - * 工艺产品关联对象 pro_route_product - * - * @author Open Platform - * @date 2023-07-13 - */ -public class SapProRouteProduct extends BaseEntity { - private static final long serialVersionUID = 1L; - - /** 记录ID */ - private String recordId; - - /** 工艺路线ID */ - @Excel(name = "工艺路线ID") - private String routeId; - - /** 产品ID */ - @Excel(name = "产品ID") - private String itemId; - - /** 产品编码 */ - @Excel(name = "产品编码") - private String itemCode; - - /** 产品名称 */ - @Excel(name = "产品名称") - private String itemName; - - /** 预留字段1 */ - @Excel(name = "预留字段1") - private String attr1; - - /** 预留字段2 */ - @Excel(name = "预留字段2") - private String attr2; - - /** 预留字段3 */ - @Excel(name = "预留字段3") - private String attr3; - - /** 预留字段4 */ - @Excel(name = "预留字段4") - private String attr4; - - private String key; - private String label; - private List unSelect; - private List selected; - private List selectedValues; - - public List getSelectedValues() { - return selectedValues; - } - - public void setSelectedValues(List selectedValues) { - this.selectedValues = selectedValues; - } - - public List getUnSelect() { - return unSelect; - } - - public void setUnSelect(List unSelect) { - this.unSelect = unSelect; - } - - public List getSelected() { - return selected; - } - - public void setSelected(List selected) { - this.selected = selected; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public String getLabel() { - return label; - } - - public void setLabel(String label) { - this.label = label; - } - - public void setRecordId(String recordId) { - this.recordId = recordId; - } - - public String getRecordId() { - return recordId; - } - public void setRouteId(String routeId) { - this.routeId = routeId; - } - - public String getRouteId() { - return routeId; - } - public void setItemId(String itemId) { - this.itemId = itemId; - } - - public String getItemId() { - return itemId; - } - public void setItemCode(String itemCode) { - this.itemCode = itemCode; - } - - public String getItemCode() { - return itemCode; - } - public void setItemName(String itemName) { - this.itemName = itemName; - } - - public String getItemName() { - return itemName; - } - public void setAttr1(String attr1) { - this.attr1 = attr1; - } - - public String getAttr1() { - return attr1; - } - public void setAttr2(String attr2) { - this.attr2 = attr2; - } - - public String getAttr2() { - return attr2; - } - public void setAttr3(String attr3) { - this.attr3 = attr3; - } - - public String getAttr3() { - return attr3; - } - public void setAttr4(String attr4) { - this.attr4 = attr4; - } - - public String getAttr4() { - return attr4; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("recordId", getRecordId()) - .append("routeId", getRouteId()) - .append("itemId", getItemId()) - .append("itemCode", getItemCode()) - .append("itemName", getItemName()) - .append("remark", getRemark()) - .append("attr1", getAttr1()) - .append("attr2", getAttr2()) - .append("attr3", getAttr3()) - .append("attr4", getAttr4()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); - } -} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysDept.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysDept.java deleted file mode 100644 index d06a3dc7..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysDept.java +++ /dev/null @@ -1,169 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.web.domain.BaseEntity; -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.NotNull; -import javax.validation.constraints.Size; -import java.util.ArrayList; -import java.util.List; - -/** - * 部门表 sys_dept - * - * @author OP - */ -public class SapSysDept extends BaseEntity { - private static final long serialVersionUID = 1L; - - /** 部门ID */ - private Long deptId; - - /** 父部门ID */ - private Long parentId; - - /** 祖级列表 */ - private String ancestors; - - /** 部门名称 */ - private String deptName; - - /** 显示顺序 */ - private Integer orderNum; - - /** 负责人 */ - private String leader; - - /** 联系电话 */ - private String phone; - - /** 邮箱 */ - private String email; - - /** 部门状态:0正常,1停用 */ - private String status; - - /** 删除标志(0代表存在 2代表删除) */ - private String delFlag; - - /** 父部门名称 */ - private String parentName; - - /** 子部门 */ - private List children = new ArrayList(); - - public Long getDeptId() { - return deptId; - } - - public void setDeptId(Long deptId) { - this.deptId = deptId; - } - - public Long getParentId() { - return parentId; - } - - public void setParentId(Long parentId) { - this.parentId = parentId; - } - - public String getAncestors() { - return ancestors; - } - - public void setAncestors(String ancestors) { - this.ancestors = ancestors; - } - - @NotBlank(message = "部门名称不能为空") - @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符") - public String getDeptName() { - return deptName; - } - - public void setDeptName(String deptName) { - this.deptName = deptName; - } - - @NotNull(message = "显示顺序不能为空") - public Integer getOrderNum() { - return orderNum; - } - - public void setOrderNum(Integer orderNum) { - this.orderNum = orderNum; - } - - public String getLeader() { - return leader; - } - - public void setLeader(String leader) { - this.leader = leader; - } - - @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符") - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - @Email(message = "邮箱格式不正确") - @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getDelFlag() { - return delFlag; - } - - public void setDelFlag(String delFlag) { - this.delFlag = delFlag; - } - - public String getParentName() { - return parentName; - } - - public void setParentName(String parentName) { - this.parentName = parentName; - } - - public List getChildren() { - return children; - } - - public void setChildren(List children) { - this.children = children; - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("deptId", getDeptId()) - .append("parentId", getParentId()).append("ancestors", getAncestors()).append("deptName", getDeptName()) - .append("orderNum", getOrderNum()).append("leader", getLeader()).append("phone", getPhone()) - .append("email", getEmail()).append("status", getStatus()).append("delFlag", getDelFlag()) - .append("createBy", getCreateBy()).append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).toString(); - } -} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysRole.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysRole.java deleted file mode 100644 index a0985350..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysRole.java +++ /dev/null @@ -1,202 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.annotation.Excel; -import com.op.common.core.annotation.Excel.ColumnType; -import com.op.common.core.web.domain.BaseEntity; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import java.util.Set; - -/** - * 角色表 sys_role - * - * @author OP - */ -public class SapSysRole extends BaseEntity { - private static final long serialVersionUID = 1L; - - /** 角色ID */ - @Excel(name = "角色序号", cellType = ColumnType.NUMERIC) - private Long roleId; - - /** 角色名称 */ - @Excel(name = "角色名称") - private String roleName; - - /** 角色权限 */ - @Excel(name = "角色权限") - private String roleKey; - - /** 角色排序 */ - @Excel(name = "角色排序") - private Integer roleSort; - - /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */ - @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限") - private String dataScope; - - /** 菜单树选择项是否关联显示( 0:父子不互相关联显示 1:父子互相关联显示) */ - private boolean menuCheckStrictly; - - /** 部门树选择项是否关联显示(0:父子不互相关联显示 1:父子互相关联显示 ) */ - private boolean deptCheckStrictly; - - /** 角色状态(0正常 1停用) */ - @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用") - private String status; - - /** 删除标志(0代表存在 2代表删除) */ - private String delFlag; - - /** 用户是否存在此角色标识 默认不存在 */ - private boolean flag = false; - - /** 菜单组 */ - private Long[] menuIds; - - /** 部门组(数据权限) */ - private Long[] deptIds; - - /** 角色菜单权限 */ - private Set permissions; - - public SapSysRole() { - - } - - public SapSysRole(Long roleId) { - this.roleId = roleId; - } - - public Long getRoleId() { - return roleId; - } - - public void setRoleId(Long roleId) { - this.roleId = roleId; - } - - public boolean isAdmin() { - return isAdmin(this.roleId); - } - - public static boolean isAdmin(Long roleId) { - return roleId != null && 1L == roleId; - } - - @NotBlank(message = "角色名称不能为空") - @Size(min = 0, max = 30, message = "角色名称长度不能超过30个字符") - public String getRoleName() { - return roleName; - } - - public void setRoleName(String roleName) { - this.roleName = roleName; - } - - @NotBlank(message = "权限字符不能为空") - @Size(min = 0, max = 100, message = "权限字符长度不能超过100个字符") - public String getRoleKey() { - return roleKey; - } - - public void setRoleKey(String roleKey) { - this.roleKey = roleKey; - } - - @NotNull(message = "显示顺序不能为空") - public Integer getRoleSort() { - return roleSort; - } - - public void setRoleSort(Integer roleSort) { - this.roleSort = roleSort; - } - - public String getDataScope() { - return dataScope; - } - - public void setDataScope(String dataScope) { - this.dataScope = dataScope; - } - - public boolean isMenuCheckStrictly() { - return menuCheckStrictly; - } - - public void setMenuCheckStrictly(boolean menuCheckStrictly) { - this.menuCheckStrictly = menuCheckStrictly; - } - - public boolean isDeptCheckStrictly() { - return deptCheckStrictly; - } - - public void setDeptCheckStrictly(boolean deptCheckStrictly) { - this.deptCheckStrictly = deptCheckStrictly; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getDelFlag() { - return delFlag; - } - - public void setDelFlag(String delFlag) { - this.delFlag = delFlag; - } - - public boolean isFlag() { - return flag; - } - - public void setFlag(boolean flag) { - this.flag = flag; - } - - public Long[] getMenuIds() { - return menuIds; - } - - public void setMenuIds(Long[] menuIds) { - this.menuIds = menuIds; - } - - public Long[] getDeptIds() { - return deptIds; - } - - public void setDeptIds(Long[] deptIds) { - this.deptIds = deptIds; - } - - public Set getPermissions() { - return permissions; - } - - public void setPermissions(Set permissions) { - this.permissions = permissions; - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("roleId", getRoleId()) - .append("roleName", getRoleName()).append("roleKey", getRoleKey()).append("roleSort", getRoleSort()) - .append("dataScope", getDataScope()).append("menuCheckStrictly", isMenuCheckStrictly()) - .append("deptCheckStrictly", isDeptCheckStrictly()).append("status", getStatus()) - .append("delFlag", getDelFlag()).append("createBy", getCreateBy()).append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark()) - .toString(); - } -} diff --git a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysUser.java b/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysUser.java deleted file mode 100644 index 52834b01..00000000 --- a/op-modules/op-sap/src/main/java/com/op/sap/domain/SapSysUser.java +++ /dev/null @@ -1,282 +0,0 @@ -package com.op.sap.domain; - -import com.op.common.core.annotation.Excel; -import com.op.common.core.annotation.Excel.ColumnType; -import com.op.common.core.annotation.Excel.Type; -import com.op.common.core.annotation.Excels; -import com.op.common.core.web.domain.BaseEntity; -import com.op.common.core.xss.Xss; -import com.op.system.api.domain.SysDept; -import com.op.system.api.domain.SysRole; -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 - * - * @author sf - */ -public class SapSysUser extends BaseEntity { - private static final long serialVersionUID = 1L; - - /** 用户ID */ - @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号") - private Long userId; - - /** 部门ID */ - @Excel(name = "部门编号", type = Type.IMPORT) - private Long deptId; - - /** 用户账号 */ - @Excel(name = "登录名称") - private String userName; - - /** 用户昵称 */ - @Excel(name = "用户名称") - private String nickName; - - /** 用户邮箱 */ - @Excel(name = "用户邮箱") - private String email; - - /** 手机号码 */ - @Excel(name = "手机号码") - private String phonenumber; - - /** 用户性别 */ - @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") - private String sex; - - /** 用户头像 */ - private String avatar; - - /** 密码 */ - private String password; - - /** 帐号状态(0正常 1停用) */ - @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用") - private String status; - - /** 删除标志(0代表存在 2代表删除) */ - private String delFlag; - - /** 最后登录IP */ - @Excel(name = "最后登录IP", type = Type.EXPORT) - private String loginIp; - - /** 最后登录时间 */ - @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) - private Date loginDate; - - /** 部门对象 */ - @Excels({ @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT), - @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT) }) - private SysDept dept; - - /** 角色对象 */ - private List roles; - - /** 角色组 */ - private Long[] roleIds; - - /** 岗位组 */ - private Long[] postIds; - - /** 角色ID */ - private Long roleId; - private String datasourceId; - - public String getDatasourceId() { - return datasourceId; - } - - public void setDatasourceId(String datasourceId) { - this.datasourceId = datasourceId; - } - - public SapSysUser() { - - } - - public SapSysUser(Long userId) { - this.userId = userId; - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - public boolean isAdmin() { - return isAdmin(this.userId); - } - - 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 = "用户昵称不能包含脚本字符") - @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") - public String getNickName() { - return nickName; - } - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - @Xss(message = "用户账号不能包含脚本字符") - @NotBlank(message = "用户账号不能为空") - @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符") - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - @Email(message = "邮箱格式不正确") - @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符") - public String getPhonenumber() { - return phonenumber; - } - - public void setPhonenumber(String phonenumber) { - this.phonenumber = phonenumber; - } - - public String getSex() { - return sex; - } - - public void setSex(String sex) { - this.sex = sex; - } - - public String getAvatar() { - return avatar; - } - - public void setAvatar(String avatar) { - this.avatar = avatar; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public String getDelFlag() { - return delFlag; - } - - public void setDelFlag(String delFlag) { - this.delFlag = delFlag; - } - - public String getLoginIp() { - return loginIp; - } - - public void setLoginIp(String loginIp) { - this.loginIp = loginIp; - } - - public Date getLoginDate() { - return loginDate; - } - - public void setLoginDate(Date loginDate) { - this.loginDate = loginDate; - } - - public SysDept getDept() { - return dept; - } - - public void setDept(SysDept dept) { - this.dept = dept; - } - - public List getRoles() { - return roles; - } - - public void setRoles(List roles) { - this.roles = roles; - } - - public Long[] getRoleIds() { - return roleIds; - } - - public void setRoleIds(Long[] roleIds) { - this.roleIds = roleIds; - } - - public Long[] getPostIds() { - return postIds; - } - - public void setPostIds(Long[] postIds) { - this.postIds = postIds; - } - - public Long getRoleId() { - return roleId; - } - - public void setRoleId(Long roleId) { - this.roleId = roleId; - } - - @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()).append("phonenumber", getPhonenumber()).append("sex", getSex()) - .append("avatar", getAvatar()).append("password", getPassword()).append("status", getStatus()) - .append("delFlag", getDelFlag()).append("loginIp", getLoginIp()).append("loginDate", getLoginDate()) - .append("createBy", getCreateBy()).append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark()) - .append("dept", getDept()).toString(); - } -}