From 2442c923fd35ef864be1cfe07e039eebfaf24ffc Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期二, 03 十二月 2019 11:48:21 +0800
Subject: [PATCH] 新人红包功能

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java
index 603a9d8..48f43b7 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java
@@ -126,7 +126,7 @@
 
 	@Transactional
 	@Override
-	public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
+	public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, BigDecimal couplePrice, TaoBaoGoodsBrief goods)
 			throws UserTaoLiJinRecordException {
 		Date date = new Date();
 		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
@@ -148,8 +148,6 @@
 		} catch (ParseException e2) {
 			e2.printStackTrace();
 		}
-		// 鏂颁汉绾㈠寘 鑷喘涓�鍏�
-		BigDecimal perface = new BigDecimal(1);
 
 		if (!TaoBaoUtil.isSpecialGoods(goods.getMaterialLibType())) {// 闈炶繑鍒╁簱鍟嗗搧
 			String relationId = null;
@@ -162,7 +160,7 @@
 			if (StringUtil.isNullOrEmpty(relationId)) {
 				throw new UserTaoLiJinRecordException(101, "娓犻亾鏈妗�");
 			}
-			UserTaoLiJinRecord record = createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name,
+			UserTaoLiJinRecord record = createUserTaoLiJin(1, uid, goods.getAuctionId(), couplePrice, 1, name,
 					sendStartTime, sendEndTime, null, useEndTime, TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
 			record.setSendUrl(record.getSendUrl() + "&relationId=" + relationId);
 			UserTaoLiJinRecord updateRecoed = new UserTaoLiJinRecord();
@@ -171,7 +169,7 @@
 			userTaoLiJinRecordMapper.updateByPrimaryKeySelective(record);
 			return record;
 		} else {// 杩斿埄搴撳晢鍝�
-			return createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name, sendStartTime, sendEndTime, null,
+			return createUserTaoLiJin(1, uid, goods.getAuctionId(), couplePrice, 1, name, sendStartTime, sendEndTime, null,
 					useEndTime, TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT);
 		}
 

--
Gitblit v1.8.0