From 69bee82b81626b82b7f39f0e459e4f56b1699b51 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 13 三月 2019 12:02:16 +0800
Subject: [PATCH] 正式数据库修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java
index 613314c..99a603c 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java
@@ -1,6 +1,7 @@
 package com.yeshi.fanli.service.impl.hongbao;
 
 import java.util.Date;
+import java.util.List;
 
 import javax.annotation.Resource;
 
@@ -8,9 +9,9 @@
 import org.springframework.transaction.annotation.Transactional;
 
 import com.yeshi.fanli.dao.mybatis.money.AccountDetailHongBaoMapMapper;
-import com.yeshi.fanli.entity.bus.user.AccountDetails;
 import com.yeshi.fanli.entity.bus.user.HongBao;
 import com.yeshi.fanli.entity.money.AccountDetailHongBaoMap;
+import com.yeshi.fanli.entity.money.UserMoneyDetail;
 import com.yeshi.fanli.service.inter.hongbao.AccountDetailsHongBaoMapService;
 
 @Service
@@ -27,7 +28,7 @@
 
 		// 淇濆瓨璐︽埛鏄庣粏涓庣孩鍖呯殑鍏崇郴
 		AccountDetailHongBaoMap map = new AccountDetailHongBaoMap();
-		map.setAccountDetails(new AccountDetails(accountDetailsId));
+		map.setUserMoneyDetail(new UserMoneyDetail(accountDetailsId));
 		map.setCreateTime(new Date());
 		map.setHongBao(new HongBao(hongBaoId));
 		map.setUpdateTime(new Date());
@@ -38,4 +39,12 @@
 
 	}
 
+	@Transactional
+	@Override
+	public void saveAccountDetailsHongBaoMap(List<Long> hongBaoIdList, Long accountDetailsId) {
+		if (hongBaoIdList != null)
+			for (Long hongBaoId : hongBaoIdList)
+				saveAccountDetailsHongBaoMap(hongBaoId, accountDetailsId);
+	}
+
 }

--
Gitblit v1.8.0