From a6f34b99ee20e528b766c8ed5a61bd9c5aa0e7ae Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 16 十一月 2019 18:10:33 +0800
Subject: [PATCH] 淘宝相似商品推荐接口优化,根据商品ID搜索商品基本信息优化

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
index 52a6ec5..50950ef 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/HongBaoV2ServiceImpl.java
@@ -145,6 +145,7 @@
 		return hongBaoV2Mapper.selectByPrimaryKey(id);
 	}
 
+
 	@Transactional
 	@Override
 	public int addHongBao(List<CommonOrder> commonOrderList, int type) throws HongBaoException {
@@ -449,6 +450,9 @@
 						} else if (hongBao.getState() == HongBaoV2.STATE_BUKELINGQU) {
 							firstHongbao.setMoney(
 									MoneyBigDecimalUtil.mul(hongBao.getMoney(), firstRate.divide(new BigDecimal(100))));
+						}else if(hongBao.getState() == HongBaoV2.STATE_SHIXIAO)
+						{
+							firstHongbao.setMoney(new BigDecimal(0));
 						}
 						hongBaoV2Mapper.insertSelective(firstHongbao);
 						// 鐢ㄦ埛閫氱煡

--
Gitblit v1.8.0