|
@@ -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)) {
|
|
@@ -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);
|