|
@@ -816,6 +816,10 @@ public class UserFacade extends UserServiceImpl {
|
|
|
auditMap.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
|
auditMap.put("gmtModified", DateUtil.now());
|
|
|
auditMap.put("certificationDate", DateUtil.now());
|
|
|
+ User userDate = getById(userInfoAuditVO.getUserId());
|
|
|
+ if(!userDate.getAuthStatus().equals(2)){
|
|
|
+ return RespDTO.onError("该用户已被操作");
|
|
|
+ }
|
|
|
if (ByType == 1) {
|
|
|
auditMap.put("isReject", RejectEnum.PASS.getKey());
|
|
|
}
|
|
@@ -952,6 +956,10 @@ public class UserFacade extends UserServiceImpl {
|
|
|
map.put("userId", baseIdVO.getId());
|
|
|
map.put("modifier", UserUtils.getCurrentPrincipleID());
|
|
|
map.put("gmtModified", DateUtil.now());
|
|
|
+ User userDate = getById(baseIdVO.getId());
|
|
|
+ if(userDate==null){
|
|
|
+ return RespDTO.onError("该用户已不存在");
|
|
|
+ }
|
|
|
//客户中心-查询用户续费数量
|
|
|
RespDTO<Integer> renewalSums = diagbotmanClient.getUserWaitingRenewal(baseIdVO.getId());
|
|
|
if (renewalSums == null || !"0".equals(renewalSums.code)) {
|
|
@@ -969,7 +977,7 @@ public class UserFacade extends UserServiceImpl {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"审核的产品数量失败");
|
|
|
}
|
|
|
- int auditSum = renewalSums.data;
|
|
|
+ int auditSum = auditSums.data;
|
|
|
System.out.println("=========auditSumauditSum===="+auditSum);
|
|
|
if(auditSum>0){
|
|
|
return RespDTO.onError("该用户产品申请单,请先审核");
|
|
@@ -1390,6 +1398,10 @@ public class UserFacade extends UserServiceImpl {
|
|
|
amendUserInfo.put("userId", amendUserInfoVO.getUserId());
|
|
|
amendUserInfo.put("position", amendUserInfoVO.getPosition());
|
|
|
amendUserInfo.put("linkman", amendUserInfoVO.getLinkman());
|
|
|
+ User userDate = getById(amendUserInfoVO.getUserId());
|
|
|
+ if(userDate==null){
|
|
|
+ return RespDTO.onError("该用户已不存在");
|
|
|
+ }
|
|
|
boolean res = updateUserInfo(amendUserInfo);
|
|
|
if (!res) {
|
|
|
throw new CommonException(CommonErrorCode.UPDATE_INFO_FAIL);
|