From d40e978df4717d91f72f6e295c58f98524bbd29c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 08 一月 2020 14:27:28 +0800
Subject: [PATCH] 跳转方式增加小程序

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 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..e04a53e 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
@@ -124,9 +124,9 @@
 		return userTaoLiJinRecordMapper.selectByPrimaryKey(id);
 	}
 
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	@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,13 +169,13 @@
 			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);
 		}
 
 	}
 
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	@Override
 	public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
 			throws UserTaoLiJinRecordException {
@@ -236,7 +234,7 @@
 	}
 
 	@Override
-	@Transactional
+	@Transactional(rollbackFor=Exception.class)
 	public UserTaoLiJinRecord createUserTaoLiJin(int origin, Long uid, Long auctionId, BigDecimal perface, int totalNum,
 			String name, Date sendStartTime, Date sendEndTime, Date useStartTime, Date useEndTime, String pid)
 			throws UserTaoLiJinRecordException {

--
Gitblit v1.8.0