yujian
2019-06-26 020d940ae4e16f55f69cef3dd4c8dc0b9764af07
fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java
@@ -29,7 +29,7 @@
import com.yeshi.fanli.service.inter.goods.CommonGoodsService;
import com.yeshi.fanli.service.inter.hongbao.HongBaoManageService;
import com.yeshi.fanli.service.inter.msg.UserOtherMsgNotificationService;
import com.yeshi.fanli.service.inter.tlj.GoodsTaoLiJinRateService;
import com.yeshi.fanli.service.inter.tlj.ConfigTaoLiJinService;
import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinDetailService;
import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinOriginService;
import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinRecordService;
@@ -40,6 +40,7 @@
import com.yeshi.fanli.util.RedisManager;
import com.yeshi.fanli.util.factory.CommonGoodsFactory;
import com.yeshi.fanli.util.taobao.TaoKeApiUtil;
import com.yeshi.fanli.util.taobao.TaoLiJinUtil;
import com.yeshi.fanli.vo.msg.ClientTextStyleVO;
import com.yeshi.fanli.vo.user.UserTaoLiJinRecordVO;
@@ -74,7 +75,7 @@
   private UserTaoLiJinOriginService userTaoLiJinOriginService;
   
   @Resource
   private GoodsTaoLiJinRateService goodsTaoLiJinRateService;
   private ConfigTaoLiJinService configTaoLiJinService;
   
   @Resource
   private UserOtherMsgNotificationService userOtherMsgNotificationService;
@@ -155,8 +156,10 @@
      if (isNewUser) {
         perface = new BigDecimal(1);
      } else {
         perface = goodsTaoLiJinRateService.getGoodsSpreadMoney(goods);
      }
         // 计算推广红包
         String warningRate = configTaoLiJinService.getValueByKey("warning_value");
         perface = TaoLiJinUtil.getSpreadMoney(warningRate, goods);
    }
      
      return createUserTaoLiJin(2, uid, goods.getAuctionId(), perface, totalNum, name, sendStartTime,
               sendEndTime, null, useEndTime);