|
@@ -30,6 +30,7 @@ import com.diagbot.entity.UserAuthentication;
|
|
import com.diagbot.entity.UserOrganization;
|
|
import com.diagbot.entity.UserOrganization;
|
|
import com.diagbot.entity.UserRole;
|
|
import com.diagbot.entity.UserRole;
|
|
import com.diagbot.entity.wrapper.MenuWrapper;
|
|
import com.diagbot.entity.wrapper.MenuWrapper;
|
|
|
|
+import com.diagbot.enums.AuthHandleEnum;
|
|
import com.diagbot.enums.AuthStatusEnum;
|
|
import com.diagbot.enums.AuthStatusEnum;
|
|
import com.diagbot.enums.ConstantEnum;
|
|
import com.diagbot.enums.ConstantEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -795,10 +796,15 @@ public class UserFacade extends UserServiceImpl {
|
|
auditMap.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
auditMap.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
auditMap.put("gmtModified", DateUtil.now());
|
|
auditMap.put("gmtModified", DateUtil.now());
|
|
auditMap.put("certificationDate", DateUtil.now());
|
|
auditMap.put("certificationDate", DateUtil.now());
|
|
- auditMap.put("isReject", userInfoAuditVO.getIsReject());
|
|
|
|
|
|
+ if(ByType == 1){
|
|
|
|
+ auditMap.put("isReject", RejectEnum.PASS.getKey());
|
|
|
|
+ }
|
|
|
|
+ if(ByType == 2){
|
|
|
|
+ auditMap.put("isReject", RejectEnum.NO_PASS.getKey());
|
|
|
|
+ }
|
|
auditMap.put("rejectComment", userInfoAuditVO.getRejectComment());
|
|
auditMap.put("rejectComment", userInfoAuditVO.getRejectComment());
|
|
auditMap.put("rejectType", userInfoAuditVO.getRejectType());
|
|
auditMap.put("rejectType", userInfoAuditVO.getRejectType());
|
|
- auditMap.put("status",1);
|
|
|
|
|
|
+ auditMap.put("status",AuthHandleEnum.Handled.getKey());//已处理
|
|
if(ByType == 1){
|
|
if(ByType == 1){
|
|
auditMap.put("authStatus", 1);
|
|
auditMap.put("authStatus", 1);
|
|
}
|
|
}
|
|
@@ -806,8 +812,11 @@ public class UserFacade extends UserServiceImpl {
|
|
auditMap.put("authStatus", 0);
|
|
auditMap.put("authStatus", 0);
|
|
}
|
|
}
|
|
// TODO 审核前先验证该用户的的认证状态
|
|
// TODO 审核前先验证该用户的的认证状态
|
|
- auditUserInfoAll(auditMap);
|
|
|
|
- return RespDTO.onSuc(true);
|
|
|
|
|
|
+ boolean res = auditUserInfoAll(auditMap);
|
|
|
|
+ if (!res) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|
|
|
|
+ }
|
|
|
|
+ return RespDTO.onSuc(res);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -921,8 +930,11 @@ public class UserFacade extends UserServiceImpl {
|
|
map.put("userId", baseIdVO.getId());
|
|
map.put("userId", baseIdVO.getId());
|
|
map.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
map.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
map.put("gmtModified", DateUtil.now());
|
|
map.put("gmtModified", DateUtil.now());
|
|
- updateDeleted(map);
|
|
|
|
- return RespDTO.onSuc(true);
|
|
|
|
|
|
+ boolean res = updateDeleted(map);
|
|
|
|
+ if (!res) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|
|
|
|
+ }
|
|
|
|
+ return RespDTO.onSuc(res);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -931,7 +943,7 @@ public class UserFacade extends UserServiceImpl {
|
|
* @param authStatus
|
|
* @param authStatus
|
|
* @return 分页查询用户信息和机构信息开通产品
|
|
* @return 分页查询用户信息和机构信息开通产品
|
|
*/
|
|
*/
|
|
- public RespDTO<IPage<UserInfoDTO>> getUserOrganProductAlls(Page page, String orgName, Integer authStatus) {
|
|
|
|
|
|
+/* public RespDTO<IPage<UserInfoDTO>> getUserOrganProductAlls(Page page, String orgName, Integer authStatus) {
|
|
|
|
|
|
UserInfoDTO userInfo = new UserInfoDTO();
|
|
UserInfoDTO userInfo = new UserInfoDTO();
|
|
userInfo.setOrgName(orgName);
|
|
userInfo.setOrgName(orgName);
|
|
@@ -965,7 +977,7 @@ public class UserFacade extends UserServiceImpl {
|
|
System.out.println("====================" + GsonUtil.toJson(userData));
|
|
System.out.println("====================" + GsonUtil.toJson(userData));
|
|
user.setRecords(userData);
|
|
user.setRecords(userData);
|
|
return RespDTO.onSuc(user);
|
|
return RespDTO.onSuc(user);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
/**
|
|
/**
|
|
* 1.分页查询注册用户信息接口 queryUserInformation
|
|
* 1.分页查询注册用户信息接口 queryUserInformation
|
|
* @param page
|
|
* @param page
|
|
@@ -1085,6 +1097,8 @@ public class UserFacade extends UserServiceImpl {
|
|
if(endTime != null && endTime.length() != 0){
|
|
if(endTime != null && endTime.length() != 0){
|
|
userInfo.setEndTime(endTime);
|
|
userInfo.setEndTime(endTime);
|
|
}
|
|
}
|
|
|
|
+ userInfo.setAuthStatus(2);//认证中。。。
|
|
|
|
+ userInfo.setStatus(0);//待处理
|
|
return RespDTO.onSuc(queryAuthentication(page, userInfo));
|
|
return RespDTO.onSuc(queryAuthentication(page, userInfo));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1172,7 +1186,7 @@ public class UserFacade extends UserServiceImpl {
|
|
listId.add("orgPrincipal");//负责人
|
|
listId.add("orgPrincipal");//负责人
|
|
listId.add("orgType");//机构属性
|
|
listId.add("orgType");//机构属性
|
|
listId.add("orgAddress");//机构地址
|
|
listId.add("orgAddress");//机构地址
|
|
- listId.add("userName");// 用户名
|
|
|
|
|
|
+ listId.add("linkman");// 用户名
|
|
|
|
|
|
List<ExportOrganizationDTO> list = new ArrayList<>();
|
|
List<ExportOrganizationDTO> list = new ArrayList<>();
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
@@ -1184,7 +1198,7 @@ public class UserFacade extends UserServiceImpl {
|
|
userInfo.getOrgPrincipal(),
|
|
userInfo.getOrgPrincipal(),
|
|
OrganizationTypeEnum.getName(userInfo.getOrgType()),
|
|
OrganizationTypeEnum.getName(userInfo.getOrgType()),
|
|
userInfo.getOrgAddress(),
|
|
userInfo.getOrgAddress(),
|
|
- userInfo.getUserName()));
|
|
|
|
|
|
+ userInfo.getLinkman()));
|
|
}
|
|
}
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
ExportBeanExcelUtil ex = new ExportBeanExcelUtil();
|
|
ExportBeanExcelUtil ex = new ExportBeanExcelUtil();
|
|
@@ -1197,7 +1211,8 @@ public class UserFacade extends UserServiceImpl {
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
userMap.put("startTime", userExportVO.getStartTime());
|
|
userMap.put("startTime", userExportVO.getStartTime());
|
|
userMap.put("endTime", userExportVO.getEndTime());
|
|
userMap.put("endTime", userExportVO.getEndTime());
|
|
- userMap.put("authStatus", userExportVO.getAuthStatus());
|
|
|
|
|
|
+ userMap.put("authStatus", 2);//认证状态: 0 未认证,1 已认证,2 认证中
|
|
|
|
+ userMap.put("status", 0);//处理状态(0:待处理,1:已处理)
|
|
userMap.put("orgName", userExportVO.getOrgName());
|
|
userMap.put("orgName", userExportVO.getOrgName());
|
|
userMap.put("userName", userExportVO.getUserName());
|
|
userMap.put("userName", userExportVO.getUserName());
|
|
List<AuthenticationDTO> datas = exportKema(userMap);
|
|
List<AuthenticationDTO> datas = exportKema(userMap);
|
|
@@ -1216,7 +1231,7 @@ public class UserFacade extends UserServiceImpl {
|
|
|
|
|
|
List<String> listId = new ArrayList<>();
|
|
List<String> listId = new ArrayList<>();
|
|
listId.add("userId");//用户ID
|
|
listId.add("userId");//用户ID
|
|
- listId.add("userGmtCreate");//记录创建时间
|
|
|
|
|
|
+ listId.add("autGmtCreate");//记录创建时间
|
|
listId.add("orderNum");
|
|
listId.add("orderNum");
|
|
listId.add("linkman");//联系人
|
|
listId.add("linkman");//联系人
|
|
listId.add("orgName");//机构名称
|
|
listId.add("orgName");//机构名称
|
|
@@ -1229,7 +1244,7 @@ public class UserFacade extends UserServiceImpl {
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
AuthenticationDTO userInfo = datas.get(i);
|
|
AuthenticationDTO userInfo = datas.get(i);
|
|
list.add(new ExportKemaDTO(String.valueOf(userInfo.getUserId()),
|
|
list.add(new ExportKemaDTO(String.valueOf(userInfo.getUserId()),
|
|
- DateUtil.formatDate(userInfo.getUserGmtCreate()),
|
|
|
|
|
|
+ DateUtil.formatDate(userInfo.getAutGmtCreate()),
|
|
userInfo.getOrderNum(),
|
|
userInfo.getOrderNum(),
|
|
userInfo.getLinkman(),
|
|
userInfo.getLinkman(),
|
|
userInfo.getOrgName(),
|
|
userInfo.getOrgName(),
|
|
@@ -1249,7 +1264,7 @@ public class UserFacade extends UserServiceImpl {
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
userMap.put("startTime", userExportVO.getStartTime());
|
|
userMap.put("startTime", userExportVO.getStartTime());
|
|
userMap.put("endTime", userExportVO.getEndTime());
|
|
userMap.put("endTime", userExportVO.getEndTime());
|
|
- userMap.put("authStatus", userExportVO.getAuthStatus());
|
|
|
|
|
|
+ userMap.put("authStatus", 1);
|
|
userMap.put("orgName", userExportVO.getOrgName());
|
|
userMap.put("orgName", userExportVO.getOrgName());
|
|
userMap.put("userName", userExportVO.getUserName());
|
|
userMap.put("userName", userExportVO.getUserName());
|
|
List<UserInfoDTO> datas = dependentuserInfoByTime(userMap);
|
|
List<UserInfoDTO> datas = dependentuserInfoByTime(userMap);
|
|
@@ -1269,7 +1284,7 @@ public class UserFacade extends UserServiceImpl {
|
|
List<String> listId = new ArrayList<>();
|
|
List<String> listId = new ArrayList<>();
|
|
listId.add("userId");//用户ID
|
|
listId.add("userId");//用户ID
|
|
listId.add("userGmtCreate");//记录创建时间
|
|
listId.add("userGmtCreate");//记录创建时间
|
|
- listId.add("userGmtModified");
|
|
|
|
|
|
+ listId.add("passauthTime");
|
|
listId.add("linkman");//联系人
|
|
listId.add("linkman");//联系人
|
|
listId.add("orgName");//机构名称
|
|
listId.add("orgName");//机构名称
|
|
listId.add("position");//岗位信息
|
|
listId.add("position");//岗位信息
|
|
@@ -1305,8 +1320,11 @@ public class UserFacade extends UserServiceImpl {
|
|
amendUserInfo.put("userId", amendUserInfoVO.getUserId());
|
|
amendUserInfo.put("userId", amendUserInfoVO.getUserId());
|
|
amendUserInfo.put("position", amendUserInfoVO.getPosition());
|
|
amendUserInfo.put("position", amendUserInfoVO.getPosition());
|
|
amendUserInfo.put("linkman", amendUserInfoVO.getLinkman());
|
|
amendUserInfo.put("linkman", amendUserInfoVO.getLinkman());
|
|
- updateUserInfo(amendUserInfo);
|
|
|
|
- return RespDTO.onSuc(true);
|
|
|
|
|
|
+ boolean res = updateUserInfo(amendUserInfo);
|
|
|
|
+ if (!res) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|
|
|
|
+ }
|
|
|
|
+ return RespDTO.onSuc(res);
|
|
}
|
|
}
|
|
|
|
|
|
//超管修改机构信息
|
|
//超管修改机构信息
|
|
@@ -1318,8 +1336,11 @@ public class UserFacade extends UserServiceImpl {
|
|
amendOrg.put("type", amendOrgVO.getOrgType());
|
|
amendOrg.put("type", amendOrgVO.getOrgType());
|
|
amendOrg.put("orgId", amendOrgVO.getOrgId());
|
|
amendOrg.put("orgId", amendOrgVO.getOrgId());
|
|
amendOrg.put("orgSubNum", amendOrgVO.getOrgSubNum());
|
|
amendOrg.put("orgSubNum", amendOrgVO.getOrgSubNum());
|
|
- updateOrganizations(amendOrg);
|
|
|
|
- return RespDTO.onSuc(true);
|
|
|
|
|
|
+ boolean res = updateOrganizations(amendOrg);
|
|
|
|
+ if (!res) {
|
|
|
|
+ throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|
|
|
|
+ }
|
|
|
|
+ return RespDTO.onSuc(res);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|