|
|
@ -212,7 +212,7 @@ public class UserBadgeServiceImpl implements UserBadgeService { |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 个人中心-获取徽章认证页面详情 |
|
|
|
* 先判断 userId存在不,不存在从tokenDto获取【工作端和居民端合用一个接口】 |
|
|
|
* 先判断 recordId存在不,不存在是居民端,反之,工作端【工作端和居民端合用一个接口】 |
|
|
|
* @Param tokenDto |
|
|
|
* @Param certificationDetailFormDTO |
|
|
|
* @author zxc |
|
|
@ -220,10 +220,10 @@ public class UserBadgeServiceImpl implements UserBadgeService { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public CertificationDetailResultDTO certificationDetail(TokenDto tokenDto, CertificationDetailFormDTO certificationDetailFormDTO) { |
|
|
|
if (StringUtils.isEmpty(certificationDetailFormDTO.getUserId())){ |
|
|
|
certificationDetailFormDTO.setUserId(tokenDto.getUserId()); |
|
|
|
if (StringUtils.isNotBlank(certificationDetailFormDTO.getRecordId())){ |
|
|
|
return userBadgeDao.selectBadgeAuthRecord(null, certificationDetailFormDTO.getBadgeId(),certificationDetailFormDTO.getRecordId()); |
|
|
|
} |
|
|
|
return userBadgeDao.selectBadgeAuthRecord(certificationDetailFormDTO.getUserId(), certificationDetailFormDTO.getBadgeId()); |
|
|
|
return userBadgeDao.selectBadgeAuthRecord(tokenDto.getUserId(), certificationDetailFormDTO.getBadgeId(),certificationDetailFormDTO.getRecordId()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|