From 1d36d85eebd73a1bef9c8b5ea77bbfc28260e878 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 26 六月 2019 12:16:54 +0800
Subject: [PATCH] 淘礼金的领取链接修改后同步到数据库

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 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 e1c1ed7..07b8e9f 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
@@ -98,6 +98,8 @@
 		return userTaoLiJinRecordMapper.selectByPrimaryKey(id);
 	}
 
+	
+	@Transactional
 	@Override
 	public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
 			throws UserTaoLiJinRecordException {
@@ -138,6 +140,10 @@
 			UserTaoLiJinRecord record = createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name,
 					sendStartTime, sendEndTime, null, useEndTime, TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
 			record.setSendUrl(record.getSendUrl() + "&relationId=" + relationId);
+			UserTaoLiJinRecord updateRecoed=new UserTaoLiJinRecord();
+			updateRecoed.setId(record.getId());
+			updateRecoed.setSendUrl(record.getSendUrl());
+			userTaoLiJinRecordMapper.updateByPrimaryKeySelective(record);
 			return record;
 		} else {// 杩斿埄搴撳晢鍝�
 			return createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name, sendStartTime, sendEndTime, null,
@@ -146,6 +152,7 @@
 
 	}
 
+	@Transactional
 	@Override
 	public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
 			throws UserTaoLiJinRecordException {
@@ -196,6 +203,10 @@
 				sendStartTime, sendEndTime, null, useEndTime, TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT);
 		String sendUrl = record.getSendUrl() + "&relationId=" + relationId;
 		record.setSendUrl(sendUrl);
+		UserTaoLiJinRecord updateRecoed=new UserTaoLiJinRecord();
+		updateRecoed.setId(record.getId());
+		updateRecoed.setSendUrl(sendUrl);
+		userTaoLiJinRecordMapper.updateByPrimaryKeySelective(record);
 		return record;
 	}
 

--
Gitblit v1.8.0