package com.bcxin.survey.dto; import java.util.Map; public class UserRoleDataDto { private String user_id; // 用户ID private String userName; // 用户名 private String realName; // 真实姓名 private String userType; // 用户类型 private String orgType; // 机构类型 private String createOn; // 记录生成时间 private String xzbz; // 选择标志 private String role_id; // 角色ID private String roleName; // 角色名 private String roleCode; // 角色代码 private String roleDesc; // 角色描述 private String total; public UserRoleDataDto(Map map){ this.user_id = safeTransfor(map.get("user_id")); this.userName = safeTransfor(map.get("userName")); this.realName = safeTransfor(map.get("realName")); this.userType = safeTransfor(map.get("userType")); this.orgType = safeTransfor(map.get("orgType")); this.createOn = safeTransfor(map.get("createOn")); this.xzbz = safeTransfor(map.get("xzbz")); this.role_id = safeTransfor(map.get("role_id")); this.roleName = safeTransfor(map.get("roleName")); this.roleCode = safeTransfor(map.get("roleCode")); } private String safeTransfor(Object obj){ if ( obj == null ) { return ""; } return obj.toString(); } public String getUser_id() { return user_id; } public void setUser_id(String user_id) { this.user_id = user_id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getRealName() { return realName; } public void setRealName(String realName) { this.realName = realName; } public String getUserType() { return userType; } public void setUserType(String userType) { this.userType = userType; } public String getOrgType() { return orgType; } public void setOrgType(String orgType) { this.orgType = orgType; } public String getCreateOn() { return createOn; } public void setCreateOn(String createOn) { this.createOn = createOn; } public String getXzbz() { return xzbz; } public void setXzbz(String xzbz) { this.xzbz = xzbz; } public String getRole_id() { return role_id; } public void setRole_id(String role_id) { this.role_id = role_id; } public String getRoleName() { return roleName; } public void setRoleName(String roleName) { this.roleName = roleName; } public String getRoleCode() { return roleCode; } public void setRoleCode(String roleCode) { this.roleCode = roleCode; } public String getRoleDesc() { return roleDesc; } public void setRoleDesc(String roleDesc) { this.roleDesc = roleDesc; } public String getTotal() { return total; } public void setTotal(String total) { this.total = total; } }