|
|
@ -278,9 +278,12 @@ public class UserBadgeServiceImpl implements UserBadgeService { |
|
|
|
List<String> userIds = new ArrayList<>(); |
|
|
|
userIds.add(certificationAddFormDTO.getUserId()); |
|
|
|
List<UserBaseInfoResultDTO> userBaseInfoResultDTOS = userBaseInfoService.queryUserBaseInfo(userIds); |
|
|
|
if (CollectionUtils.isEmpty(userBaseInfoResultDTOS)) { |
|
|
|
if (CollectionUtils.isEmpty(userBaseInfoResultDTOS)||null==userBaseInfoResultDTOS.get(NumConstant.ZERO)) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),String.format("查询用户基本信息集合为空,userId:%s",certificationAddFormDTO.getUserId()),"查询用户基本信息异常"); |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(userBaseInfoResultDTOS.get(NumConstant.ZERO).getRegisteredGridId())){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"异常信息:注册网格为空","服务器开小差了...注册网格为空"); |
|
|
|
} |
|
|
|
userBadgeDao.updateCertificateRecordIsLast(form.getBadgeId(),form.getUserId()); |
|
|
|
form.setGridId(userBaseInfoResultDTOS.get(NumConstant.ZERO).getRegisteredGridId()); |
|
|
|
form.setIdNum(certificationAddFormDTO.getIdcard()); |
|
|
|