admin
2018-12-14 a0f699663a85185a697d88ea964179cdca59f548
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);
      }
   }