From 744594ef1a2f530fc3e86ea9dc48b62247f79420 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 19 五月 2020 17:13:23 +0800
Subject: [PATCH] 饿了么绘图,添加口碑

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java
index a08c7b1..916beef 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/OrderProcessServiceImpl.java
@@ -133,10 +133,10 @@
 
 	@Resource
 	private UserMoneyMsgNotificationService userMoneyMsgNotificationService;
- 
+
 	@Resource
 	private UserOrderMsgNotificationService userOrderMsgNotificationService;
-	 
+
 	@Resource
 	private UserExtraTaoBaoInfoService userExtraTaoBaoInfoService;
 
@@ -220,7 +220,8 @@
 				List<TaoBaoOrder> list = orders.get(orderId);
 				String pid = String.format("mm_%s_%s_%s", configList.get(0).getAccountId(),
 						list.get(0).getSourceMediaId(), list.get(0).getAdPositionId());
-				if ("楗夸簡涔�".equalsIgnoreCase(list.get(0).getOrderType())) {
+				if ("楗夸簡涔�".equalsIgnoreCase(list.get(0).getOrderType())
+						&& !pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT)) {
 					// 楗夸簡涔堣鍗曞紑濮嬪綊鍏ュ埌娣樺疂璁㈠崟
 					if (TimeUtil.convertToTimeTemp(list.get(0).getCreateTime(),
 							"yyyy-MM-dd HH:mm:ss") >= Constant.NEW_ORDER_FANLI_RULE_TIME) {
@@ -228,6 +229,9 @@
 					} else {
 						elmeOrderMap.put(orderId, list);
 					}
+				} else if ("鍙g".equalsIgnoreCase(list.get(0).getOrderType())
+						&& pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_KOUBEI_PID)) {// 鍙g鑷喘
+					fanliOrderMap.put(orderId, list);
 				} else {
 					if (!StringUtil.isNullOrEmpty(list.get(0).getSpecialId())
 							|| pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID)) {// 璁剧疆娓犻亾ID褰撳仛浼氬憳杩愯惀ID鐨勪綅缃甀D
@@ -740,8 +744,9 @@
 						&& !StringUtil.isNullOrEmpty(orderList.get(0).getRelationId())) {// 澶勭悊闈炶繑鍒╁晢鍝佸簱鐨勫晢鍝�
 					targetUid = taoBaoBuyRelationMapService.selectUidByRelationId(orderList.get(0).getRelationId());
 
-				} else if (pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_ELEME_PID)
-						&& !StringUtil.isNullOrEmpty(orderList.get(0).getRelationId())) {// 澶勭悊楗夸簡涔堢殑璁㈠崟
+				} else if ((pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_ELEME_PID)
+						|| pid.equalsIgnoreCase(TaoBaoConstant.TAOBAO_KOUBEI_PID))
+						&& !StringUtil.isNullOrEmpty(orderList.get(0).getRelationId())) {// 澶勭悊楗夸簡涔�,鍙g鐨勮鍗�
 					UserExtraTaoBaoInfo extraInfo = userExtraTaoBaoInfoService
 							.getByRelationId(orderList.get(0).getRelationId());
 					if (extraInfo != null) {
@@ -1281,8 +1286,7 @@
 				update.setUpdateTime(new Date());
 				hongBaoV2Service.updateByPrimaryKeySelective(update);
 			}
-		
-		
+
 		if (hongBao.getType() == HongBaoV2.TYPE_ZIGOU || hongBao.getType() == HongBaoV2.TYPE_SHARE_GOODS) {
 			userOrderMsgNotificationService.orderInvalidToBusinessRunning(uid, orderId, sourceType, hongBao.getType());
 		}
@@ -1302,7 +1306,7 @@
 				// 鏌ヨ涓荤孩鍖�
 				HongBaoOrder hongBaoOrder = hongBaoOrderMapper.selectByCommonOrderId(commonOrder.getId());
 				if (hongBaoOrder != null && hongBaoOrder.getHongBaoV2() != null) {
-				if (hongBaoOrder.getHongBaoV2().getState() == HongBaoV2.STATE_BUKELINGQU) {
+				if (hongBaoOrder.getHongBaoV2().getState() == HongBaoV2.STATE_BUKELINGQU || hongBaoOrder.getHongBaoV2().getState() == HongBaoV2.STATE_SHIXIAO) {
 				// 璁㈠崟澶辨晥,璧犻�侀噾甯�
 				try {
 				invalidHongBaoV2AndGiveGodenCorn(hongBaoOrder.getHongBaoV2().getId(), hongBaoOrder.getHongBaoV2().getUserInfo().getId(), commonOrder.getOrderNo(), commonOrder.getSourceType(), "璁㈠崟鎴愬姛锛屽晢瀹舵湭鎵撴");

--
Gitblit v1.8.0