喻健
2018-11-16 a839e507e0cbba64499f270a719d0a2ceb351988
商品详情:销量低于1000则不返回 领券、分享提示消息
1个文件已修改
13 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/RecommendController.java
@@ -1883,7 +1883,10 @@
        BigDecimal shareMoney = taoBaoGoodsBriefService.getShareGoodsUserHongBao(tb);
        data.put("shareMoney", "¥" + shareMoney);
        // 分享赚人提示
        List<ShamUser> listShareUser = shamUserService.listRandShareUser(10, shareMoney, 1, 5);
        List<ShamUser> listShareUser = new ArrayList<ShamUser>();
        if (tb.getBiz30day() >= 1000) {
            listShareUser = shamUserService.listRandShareUser(10, shareMoney, 1, 5);
        }
        // 判断收藏
        if (StringUtil.isNullOrEmpty(uid)) {
@@ -1911,7 +1914,7 @@
        goods.put("coupon", StringUtil.isNullOrEmpty(tb.getCouponInfo()) ? false : true);
        // 领券人列表
        List<ShamUser> listCouponUser = null;
        List<ShamUser> listCouponUser = new ArrayList<ShamUser>();
        // 获取券信息
        if (!StringUtil.isNullOrEmpty(tb.getCouponInfo())) {
@@ -1932,8 +1935,10 @@
                    + tb.getCouponEffectiveEndTime().replace("-", "."));
            goods.put("couponInfo", couponInfo);
            // 领券人列表
            listCouponUser = shamUserService.listRandCouponUser(5, 1, 300);
            if (tb.getBiz30day() >= 1000) {
                // 领券人列表
                listCouponUser = shamUserService.listRandCouponUser(5, 1, 300);
            }
        }
        data.put("tbPidInfo", clientTBPid);