Commit 5c6d864e by 宋祥

1.用户信息4J规范

parent f4a3516d
package com.baosight.hggp.hg.xs.domain; package com.baosight.hggp.hg.xs.domain;
import java.io.Serializable; import com.baosight.iplat4j.core.data.DaoEPBase;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.util.StringUtils;
import java.util.HashMap;
import java.util.Map;
/** /**
* @author:songx * Project: <br>
* @date:2024/1/15,14:50 * Title:XsUser.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-09 14:45:45 create
*/ */
public class User implements Serializable { public class User extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_USER_ID = "userId"; /* 用户ID*/ public static final String FIELD_USER_ID = "userId"; /* 用户ID*/
public static final String FIELD_USER_NAME = "userName"; /* 用户中文名*/ public static final String FIELD_LOGIN_NAME = "loginName";
public static final String FIELD_LOGIN_NAME = "loginName"; /* 登录ID*/ public static final String FIELD_PASSWORD = "password";
public static final String FIELD_GENDER = "gender"; /* 性别*/ public static final String FIELD_STATUS = "status";
public static final String FIELD_MOBILE = "mobile"; /* 手机号*/ public static final String FIELD_USER_NAME = "userName";
public static final String FIELD_EMAIL = "email"; /* 邮箱*/ public static final String FIELD_GENDER = "gender";
public static final String FIELD_ACCOUNT_CODE = "accountCode"; /* 帐套代码*/ public static final String FIELD_MOBILE = "mobile";
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/ public static final String FIELD_EMAIL = "email";
public static final String FIELD_DEP_NAME = "depName"; /* 部门名称*/ public static final String FIELD_USER_TYPE = "userType";
public static final String FIELD_ACCOUNT_EXPIRE_DATE = "accountExpireDate";
public static final String FIELD_PWD_EXPIRE_DATE = "pwdExpireDate";
public static final String FIELD_IS_LOCKED = "isLocked";
public static final String FIELD_SORT_INDEX = "sortIndex"; /* 排序*/
public static final String FIELD_REC_CREATOR = "recCreator";
public static final String FIELD_REC_CREATE_TIME = "recCreateTime"; /* 创建时间*/
public static final String FIELD_REC_REVISOR = "recRevisor"; /* 修改人*/
public static final String FIELD_REC_REVISE_TIME = "recReviseTime"; /* 修改时间*/
public static final String FIELD_PWD_REVISE_DATE = "pwdReviseDate"; /* 密码修改时间*/
public static final String FIELD_PWD_REVISOR = "pwdRevisor"; /* 密码修改人*/
public static final String FIELD_USER_GROUP_ENAME = "userGroupEname"; /* 用户组*/
public static final String FIELD_ACCOUNT_CODE = "accountCode"; /* 帐套编码*/
public static final String COL_USER_ID = "USER_ID"; /* 用户ID*/
public static final String COL_LOGIN_NAME = "LOGIN_NAME";
public static final String COL_PASSWORD = "PASSWORD";
public static final String COL_STATUS = "STATUS";
public static final String COL_USER_NAME = "USER_NAME";
public static final String COL_GENDER = "GENDER";
public static final String COL_MOBILE = "MOBILE";
public static final String COL_EMAIL = "EMAIL";
public static final String COL_USER_TYPE = "USER_TYPE";
public static final String COL_ACCOUNT_EXPIRE_DATE = "ACCOUNT_EXPIRE_DATE";
public static final String COL_PWD_EXPIRE_DATE = "PWD_EXPIRE_DATE";
public static final String COL_IS_LOCKED = "IS_LOCKED";
public static final String COL_SORT_INDEX = "SORT_INDEX"; /* 排序*/
public static final String COL_REC_CREATOR = "REC_CREATOR";
public static final String COL_REC_CREATE_TIME = "REC_CREATE_TIME"; /* 创建时间*/
public static final String COL_REC_REVISOR = "REC_REVISOR"; /* 修改人*/
public static final String COL_REC_REVISE_TIME = "REC_REVISE_TIME"; /* 修改时间*/
public static final String COL_PWD_REVISE_DATE = "PWD_REVISE_DATE"; /* 密码修改时间*/
public static final String COL_PWD_REVISOR = "PWD_REVISOR"; /* 密码修改人*/
public static final String COL_USER_GROUP_ENAME = "USER_GROUP_ENAME"; /* 用户组*/
public static final String COL_ACCOUNT_CODE = "ACCOUNT_CODE"; /* 帐套编码*/
public static final String QUERY = "xs_user.query";
public static final String COUNT = "xs_user.count";
public static final String INSERT = "xs_user.insert";
public static final String UPDATE = "xs_user.update";
public static final String DELETE = "xs_user.delete";
private String userId = " "; /* 用户ID*/
private String loginName = " ";
private String password = " ";
private String status = " ";
private String userName = " ";
private String gender = " ";
private String mobile = " ";
private String email = " ";
private String userType = " ";
private String accountExpireDate = " ";
private String pwdExpireDate = " ";
private String isLocked = " ";
private Integer sortIndex = new Integer(0); /* 排序*/
private String recCreator = " ";
private String recCreateTime = " "; /* 创建时间*/
private String recRevisor = " "; /* 修改人*/
private String recReviseTime = " "; /* 修改时间*/
private String pwdReviseDate = " "; /* 密码修改时间*/
private String pwdRevisor = " "; /* 密码修改人*/
private String archiveFlag = " "; /* 归档标记*/
private String userGroupEname = " "; /* 用户组*/
private String jobId = " "; /* 用户岗位号*/
private String ehrOrgId = " "; /* EHR组织机构代码*/
private String jobName = " "; /* 用户岗位名*/
private String accountCode = " "; /* 帐套编码*/
/** /**
* 用户ID * initialize the metadata.
*/ */
private String userId; public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_USER_ID);
eiColumn.setPrimaryKey(true);
eiColumn.setDescName("用户ID");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_LOGIN_NAME);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PASSWORD);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_STATUS);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_USER_NAME);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_GENDER);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_MOBILE);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_EMAIL);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_USER_TYPE);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ACCOUNT_EXPIRE_DATE);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PWD_EXPIRE_DATE);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_IS_LOCKED);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SORT_INDEX);
eiColumn.setDescName("排序");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_REC_CREATOR);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_REC_CREATE_TIME);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_REC_REVISOR);
eiColumn.setDescName("修改人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_REC_REVISE_TIME);
eiColumn.setDescName("修改时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PWD_REVISE_DATE);
eiColumn.setDescName("密码修改时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PWD_REVISOR);
eiColumn.setDescName("密码修改人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_USER_GROUP_ENAME);
eiColumn.setDescName("用户组");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ACCOUNT_CODE);
eiColumn.setDescName("帐套编码");
eiMetadata.addMeta(eiColumn);
}
/** /**
* 用户中文名 * the constructor.
*/ */
private String userName; public User() {
initMetaData();
}
/** /**
* 登录ID * get the userId - 用户ID.
* @return the userId
*/ */
private String loginName; public String getUserId() {
return this.userId;
}
/** /**
* 性别 * set the userId - 用户ID.
*
* @param userId - 用户ID
*/ */
private String gender; public void setUserId(String userId) {
this.userId = userId;
}
/** /**
* 手机号 * get the loginName .
* @return the loginName
*/ */
private String mobile; public String getLoginName() {
return this.loginName;
}
/** /**
* 邮箱 * set the loginName .
*
* @param loginName
*/ */
private String email; public void setLoginName(String loginName) {
this.loginName = loginName;
}
/** /**
* 企业代码 * get the password .
* @return the password
*/ */
private String accountCode; public String getPassword() {
return this.password;
}
/** /**
* 部门代码 * set the password .
*
* @param password
*/ */
private String depCode; public void setPassword(String password) {
this.password = password;
}
/** /**
* 部门名称 * get the status .
* @return the status
*/ */
private String depName; public String getStatus() {
return this.status;
public String getUserId() {
return userId;
} }
public void setUserId(String userId) { /**
this.userId = userId; * set the status .
*
* @param status
*/
public void setStatus(String status) {
this.status = status;
} }
/**
* get the userName .
* @return the userName
*/
public String getUserName() { public String getUserName() {
return userName; return this.userName;
} }
/**
* set the userName .
*
* @param userName
*/
public void setUserName(String userName) { public void setUserName(String userName) {
this.userName = userName; this.userName = userName;
} }
/**
public String getLoginName() { * get the gender .
return loginName; * @return the gender
*/
public String getGender() {
return this.gender;
} }
public void setLoginName(String loginName) { /**
this.loginName = loginName; * set the gender .
*
* @param gender
*/
public void setGender(String gender) {
this.gender = gender;
} }
/**
* get the mobile .
* @return the mobile
*/
public String getMobile() { public String getMobile() {
return mobile; return this.mobile;
} }
/**
* set the mobile .
*
* @param mobile
*/
public void setMobile(String mobile) { public void setMobile(String mobile) {
this.mobile = mobile; this.mobile = mobile;
} }
/**
* get the email .
* @return the email
*/
public String getEmail() { public String getEmail() {
return email; return this.email;
} }
/**
* set the email .
*
* @param email
*/
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
/**
public String getAccountCode() { * get the userType .
return accountCode; * @return the userType
*/
public String getUserType() {
return this.userType;
} }
public void setAccountCode(String accountCode) { /**
this.accountCode = accountCode; * set the userType .
*
* @param userType
*/
public void setUserType(String userType) {
this.userType = userType;
} }
/**
public String getDepCode() { * get the accountExpireDate .
return depCode; * @return the accountExpireDate
*/
public String getAccountExpireDate() {
return this.accountExpireDate;
} }
public void setDepCode(String depCode) { /**
this.depCode = depCode; * set the accountExpireDate .
*
* @param accountExpireDate
*/
public void setAccountExpireDate(String accountExpireDate) {
this.accountExpireDate = accountExpireDate;
} }
/**
public String getDepName() { * get the pwdExpireDate .
return depName; * @return the pwdExpireDate
*/
public String getPwdExpireDate() {
return this.pwdExpireDate;
} }
public void setDepName(String depName) { /**
this.depName = depName; * set the pwdExpireDate .
*
* @param pwdExpireDate
*/
public void setPwdExpireDate(String pwdExpireDate) {
this.pwdExpireDate = pwdExpireDate;
} }
/**
public String getGender() { * get the isLocked .
return gender; * @return the isLocked
*/
public String getIsLocked() {
return this.isLocked;
} }
public void setGender(String gender) { /**
this.gender = gender; * set the isLocked .
*
* @param isLocked
*/
public void setIsLocked(String isLocked) {
this.isLocked = isLocked;
}
/**
* get the sortIndex - 排序.
* @return the sortIndex
*/
public Integer getSortIndex() {
return this.sortIndex;
}
/**
* set the sortIndex - 排序.
*
* @param sortIndex - 排序
*/
public void setSortIndex(Integer sortIndex) {
this.sortIndex = sortIndex;
}
/**
* get the recCreator .
* @return the recCreator
*/
public String getRecCreator() {
return this.recCreator;
}
/**
* set the recCreator .
*
* @param recCreator
*/
@Override
public void setRecCreator(String recCreator) {
this.recCreator = recCreator;
}
/**
* get the recCreateTime - 创建时间.
* @return the recCreateTime
*/
public String getRecCreateTime() {
return this.recCreateTime;
}
/**
* set the recCreateTime - 创建时间.
*
* @param recCreateTime - 创建时间
*/
@Override
public void setRecCreateTime(String recCreateTime) {
this.recCreateTime = recCreateTime;
}
/**
* get the recRevisor - 修改人.
* @return the recRevisor
*/
public String getRecRevisor() {
return this.recRevisor;
}
/**
* set the recRevisor - 修改人.
*
* @param recRevisor - 修改人
*/
@Override
public void setRecRevisor(String recRevisor) {
this.recRevisor = recRevisor;
}
/**
* get the recReviseTime - 修改时间.
* @return the recReviseTime
*/
public String getRecReviseTime() {
return this.recReviseTime;
}
/**
* set the recReviseTime - 修改时间.
*
* @param recReviseTime - 修改时间
*/
@Override
public void setRecReviseTime(String recReviseTime) {
this.recReviseTime = recReviseTime;
}
/**
* get the pwdReviseDate - 密码修改时间.
* @return the pwdReviseDate
*/
public String getPwdReviseDate() {
return this.pwdReviseDate;
}
/**
* set the pwdReviseDate - 密码修改时间.
*
* @param pwdReviseDate - 密码修改时间
*/
public void setPwdReviseDate(String pwdReviseDate) {
this.pwdReviseDate = pwdReviseDate;
}
/**
* get the pwdRevisor - 密码修改人.
* @return the pwdRevisor
*/
public String getPwdRevisor() {
return this.pwdRevisor;
}
/**
* set the pwdRevisor - 密码修改人.
*
* @param pwdRevisor - 密码修改人
*/
public void setPwdRevisor(String pwdRevisor) {
this.pwdRevisor = pwdRevisor;
}
/**
* get the archiveFlag - 归档标记.
* @return the archiveFlag
*/
public String getArchiveFlag() {
return this.archiveFlag;
}
/**
* set the archiveFlag - 归档标记.
*
* @param archiveFlag - 归档标记
*/
@Override
public void setArchiveFlag(String archiveFlag) {
this.archiveFlag = archiveFlag;
}
/**
* get the userGroupEname - 用户组.
* @return the userGroupEname
*/
public String getUserGroupEname() {
return this.userGroupEname;
}
/**
* set the userGroupEname - 用户组.
*
* @param userGroupEname - 用户组
*/
public void setUserGroupEname(String userGroupEname) {
this.userGroupEname = userGroupEname;
}
/**
* get the jobId - 用户岗位号.
* @return the jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* set the jobId - 用户岗位号.
*
* @param jobId - 用户岗位号
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
* get the ehrOrgId - EHR组织机构代码.
* @return the ehrOrgId
*/
public String getEhrOrgId() {
return this.ehrOrgId;
}
/**
* set the ehrOrgId - EHR组织机构代码.
*
* @param ehrOrgId - EHR组织机构代码
*/
public void setEhrOrgId(String ehrOrgId) {
this.ehrOrgId = ehrOrgId;
}
/**
* get the jobName - 用户岗位名.
* @return the jobName
*/
public String getJobName() {
return this.jobName;
}
/**
* set the jobName - 用户岗位名.
*
* @param jobName - 用户岗位名
*/
public void setJobName(String jobName) {
this.jobName = jobName;
}
/**
* get the accountCode - 帐套编码.
* @return the accountCode
*/
public String getAccountCode() {
return this.accountCode;
}
/**
* set the accountCode - 帐套编码.
*
* @param accountCode - 帐套编码
*/
public void setAccountCode(String accountCode) {
this.accountCode = accountCode;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_USER_ID)), userId));
setLoginName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_LOGIN_NAME)), loginName));
setPassword(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PASSWORD)), password));
setStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_STATUS)), status));
setUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_USER_NAME)), userName));
setGender(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_GENDER)), gender));
setMobile(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_MOBILE)), mobile));
setEmail(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_EMAIL)), email));
setUserType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_USER_TYPE)), userType));
setAccountExpireDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ACCOUNT_EXPIRE_DATE)), accountExpireDate));
setPwdExpireDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PWD_EXPIRE_DATE)), pwdExpireDate));
setIsLocked(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_IS_LOCKED)), isLocked));
setSortIndex(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_SORT_INDEX)), sortIndex));
setRecCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REC_CREATOR)), recCreator));
setRecCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REC_CREATE_TIME)), recCreateTime));
setRecRevisor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REC_REVISOR)), recRevisor));
setRecReviseTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_REC_REVISE_TIME)), recReviseTime));
setPwdReviseDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PWD_REVISE_DATE)), pwdReviseDate));
setPwdRevisor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PWD_REVISOR)), pwdRevisor));
setUserGroupEname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_USER_GROUP_ENAME)), userGroupEname));
setAccountCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ACCOUNT_CODE)), accountCode));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_USER_ID, StringUtils.toString(userId, eiMetadata.getMeta(FIELD_USER_ID)));
map.put(FIELD_LOGIN_NAME, StringUtils.toString(loginName, eiMetadata.getMeta(FIELD_LOGIN_NAME)));
map.put(FIELD_PASSWORD, StringUtils.toString(password, eiMetadata.getMeta(FIELD_PASSWORD)));
map.put(FIELD_STATUS, StringUtils.toString(status, eiMetadata.getMeta(FIELD_STATUS)));
map.put(FIELD_USER_NAME, StringUtils.toString(userName, eiMetadata.getMeta(FIELD_USER_NAME)));
map.put(FIELD_GENDER, StringUtils.toString(gender, eiMetadata.getMeta(FIELD_GENDER)));
map.put(FIELD_MOBILE, StringUtils.toString(mobile, eiMetadata.getMeta(FIELD_MOBILE)));
map.put(FIELD_EMAIL, StringUtils.toString(email, eiMetadata.getMeta(FIELD_EMAIL)));
map.put(FIELD_USER_TYPE, StringUtils.toString(userType, eiMetadata.getMeta(FIELD_USER_TYPE)));
map.put(FIELD_ACCOUNT_EXPIRE_DATE, StringUtils.toString(accountExpireDate, eiMetadata.getMeta(FIELD_ACCOUNT_EXPIRE_DATE)));
map.put(FIELD_PWD_EXPIRE_DATE, StringUtils.toString(pwdExpireDate, eiMetadata.getMeta(FIELD_PWD_EXPIRE_DATE)));
map.put(FIELD_IS_LOCKED, StringUtils.toString(isLocked, eiMetadata.getMeta(FIELD_IS_LOCKED)));
map.put(FIELD_SORT_INDEX, StringUtils.toString(sortIndex, eiMetadata.getMeta(FIELD_SORT_INDEX)));
map.put(FIELD_REC_CREATOR, StringUtils.toString(recCreator, eiMetadata.getMeta(FIELD_REC_CREATOR)));
map.put(FIELD_REC_CREATE_TIME, StringUtils.toString(recCreateTime, eiMetadata.getMeta(FIELD_REC_CREATE_TIME)));
map.put(FIELD_REC_REVISOR, StringUtils.toString(recRevisor, eiMetadata.getMeta(FIELD_REC_REVISOR)));
map.put(FIELD_REC_REVISE_TIME, StringUtils.toString(recReviseTime, eiMetadata.getMeta(FIELD_REC_REVISE_TIME)));
map.put(FIELD_PWD_REVISE_DATE, StringUtils.toString(pwdReviseDate, eiMetadata.getMeta(FIELD_PWD_REVISE_DATE)));
map.put(FIELD_PWD_REVISOR, StringUtils.toString(pwdRevisor, eiMetadata.getMeta(FIELD_PWD_REVISOR)));
map.put(FIELD_USER_GROUP_ENAME, StringUtils.toString(userGroupEname, eiMetadata.getMeta(FIELD_USER_GROUP_ENAME)));
map.put(FIELD_ACCOUNT_CODE, StringUtils.toString(accountCode, eiMetadata.getMeta(FIELD_ACCOUNT_CODE)));
return map;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment