|
|
|
@@ -79,6 +79,9 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
@Autowired |
|
|
|
private WxOrderService wxOrderService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxCUserBasicInfoService wxCUserBasicInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Qualifier("couponDetailRedisTemplate") |
|
|
|
RedisTemplate<String, WxCouponCVo> cdRedisTemplate; |
|
|
|
@@ -102,8 +105,20 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
public PageInfo<WxGameUserActionLogVo> listUserActionLogAsPage(WxGameActionLog record, Integer pageIndex, Integer pageSize) { |
|
|
|
PageInfo<WxGameUserActionLogVo> page = PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> wxGameActionLogMapper.findUserSumList(record)); |
|
|
|
if (null != page && null != page.getList() && page.getList().size() > 0) { |
|
|
|
List<Long> userIdList = new ArrayList<Long>(); |
|
|
|
for (int i = 0 ; i < page.getList().size() ; i ++) { |
|
|
|
WxGameUserActionLogVo vo = page.getList().get(i); |
|
|
|
userIdList.add(vo.getUserId()); |
|
|
|
} |
|
|
|
Map<Long, WxCUserBasicInfo> userMap = wxCUserBasicInfoService.getUserMap(record, userIdList); |
|
|
|
for (int i = 0 ; i < page.getList().size() ; i ++) { |
|
|
|
WxGameUserActionLogVo vo = page.getList().get(i); |
|
|
|
if (null != userMap) { |
|
|
|
WxCUserBasicInfo user = userMap.get(vo.getUserId()); |
|
|
|
if (null != user) { |
|
|
|
vo.setUserPhone(user.getPhone()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return page; |
|
|
|
|