From 5d59c0ad6e82b6255cf38c3dba715395af1d60a7 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 10 十二月 2018 14:37:15 +0800
Subject: [PATCH] 取消红包参数异常

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/hongbao/AccountDetailsHongBaoMapServiceImpl.java |    6 ++++--
 1 files changed, 4 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 2338e60..613314c 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
@@ -4,6 +4,7 @@
 
 import javax.annotation.Resource;
 
+import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import com.yeshi.fanli.dao.mybatis.money.AccountDetailHongBaoMapMapper;
@@ -12,6 +13,7 @@
 import com.yeshi.fanli.entity.money.AccountDetailHongBaoMap;
 import com.yeshi.fanli.service.inter.hongbao.AccountDetailsHongBaoMapService;
 
+@Service
 public class AccountDetailsHongBaoMapServiceImpl implements AccountDetailsHongBaoMapService {
 
 	@Resource
@@ -27,11 +29,11 @@
 		AccountDetailHongBaoMap map = new AccountDetailHongBaoMap();
 		map.setAccountDetails(new AccountDetails(accountDetailsId));
 		map.setCreateTime(new Date());
-		map.setHongBao(new HongBao());
+		map.setHongBao(new HongBao(hongBaoId));
 		map.setUpdateTime(new Date());
 		AccountDetailHongBaoMap oldMap = accountDetailHongBaoMapMapper.selectByHongBaoId(hongBaoId);
 		if (oldMap == null) {
-			accountDetailHongBaoMapMapper.insertSelective(oldMap);
+			accountDetailHongBaoMapMapper.insertSelective(map);
 		}
 
 	}

--
Gitblit v1.8.0