44323
2024-03-11 a1cadd023734d1e33f6455ec87fb7e2783d808fe
cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java
@@ -68,11 +68,11 @@
    public List<CouponListVo> queryCouponList(Integer uid, Integer distributionMethod) throws Exception {
        String value = redisUtil.getValue("VIP_P_" + uid);
        if (ToolUtil.isEmpty(value)) {
            Thread.sleep(5000);
            Thread.sleep(3000);
            value = redisUtil.getValue("VIP_P_" + uid);
        }
        List<CouponListVo> listVos = new ArrayList<>();
        if (ToolUtil.isEmpty(value)) {
        if (ToolUtil.isNotEmpty(value)) {
            List<Long> longs = JSON.parseArray(value, Long.class);
            List<UserCoupon> list = userCouponService.getBaseMapper().selectBatchIds(longs);
            List<Integer> collect = list.stream().map(UserCoupon::getCouponId).collect(Collectors.toList());