|
@ -125,9 +125,13 @@ public class UserBadgeServiceImpl implements UserBadgeService { |
|
|
List<UserOperListResultDTO> userAuthBadgeList = userBadgeDao.selectAuthRecord(userOperListFormDTO.getUserId()); |
|
|
List<UserOperListResultDTO> userAuthBadgeList = userBadgeDao.selectAuthRecord(userOperListFormDTO.getUserId()); |
|
|
Object userBadge = userBadgeRedis.getCustomerBadge(userOperListFormDTO.getCustomerId()); |
|
|
Object userBadge = userBadgeRedis.getCustomerBadge(userOperListFormDTO.getCustomerId()); |
|
|
if (null == userBadge){ |
|
|
if (null == userBadge){ |
|
|
return new ArrayList<>(); |
|
|
this.reloadCustomerBadge(userOperListFormDTO.getCustomerId()); |
|
|
|
|
|
userBadge = userBadgeRedis.getCustomerBadge(userOperListFormDTO.getCustomerId()); |
|
|
} |
|
|
} |
|
|
List<UserOperListResultDTO> userOperListResultDTOS = JSON.parseArray(userBadge.toString(), UserOperListResultDTO.class); |
|
|
List<UserOperListResultDTO> userOperListResultDTOS = JSON.parseArray(userBadge.toString(), UserOperListResultDTO.class); |
|
|
|
|
|
if(CollectionUtils.isEmpty(userOperListResultDTOS)){ |
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
|
} |
|
|
// 没有任何记录
|
|
|
// 没有任何记录
|
|
|
if (CollectionUtils.isEmpty(userAuthBadgeList)){ |
|
|
if (CollectionUtils.isEmpty(userAuthBadgeList)){ |
|
|
userOperListResultDTOS.forEach(u -> { |
|
|
userOperListResultDTOS.forEach(u -> { |
|
|