Administrator
2018-12-14 ac8305149dfab881c6668d0ee043b98b1d4dc3b8
分享记录调整
1个文件已修改
9 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsGroupServiceImpl.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserShareGoodsGroupServiceImpl.java
@@ -114,7 +114,7 @@
            shareGoodsGroup.setTotalOrder(totalOrder + 1);
            
            // 更新预计收益 
            BigDecimal totalMoney = shareGoodsGroup.getTotalMoney();
            BigDecimal totalMoney = newestRecord.getTotalMoney();
            if (totalMoney == null) {
                totalMoney = new BigDecimal(0);
            }
@@ -148,7 +148,11 @@
        if (group != null) {
            UserShareGoodsGroup shareGoodsGroup = new UserShareGoodsGroup(group.getId());
            // 累计浏览
            shareGoodsGroup.setTotalBrowse(group.getTotalBrowse() + count);
            Integer totalBrowse = group.getTotalBrowse();
            if (totalBrowse == null) {
                totalBrowse = 0;
            }
            shareGoodsGroup.setTotalBrowse(totalBrowse + count);
            
            // 今日浏览
            Date date = new Date();
@@ -159,6 +163,7 @@
                shareGoodsGroup.setTodayBrowse(count);
            }
            shareGoodsGroup.setBrowseTime(date);
            userShareGoodsGroupMapper.updateByPrimaryKeySelective(shareGoodsGroup);
        }
    }