From c8f0ea4627aceaff03c93de66e918864477463f8 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 10 九月 2019 11:43:08 +0800
Subject: [PATCH] 不能申述违规订单

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java
index b01e542..ec90d57 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java
@@ -21,6 +21,7 @@
 import com.yeshi.fanli.service.inter.order.HongBaoOrderService;
 import com.yeshi.fanli.service.inter.order.LostOrderService;
 import com.yeshi.fanli.service.inter.order.OrderService;
+import com.yeshi.fanli.service.inter.taobao.TaoBaoPunishOrderService;
 import com.yeshi.fanli.util.Utils;
 
 @Service
@@ -41,6 +42,9 @@
 	@Resource
 	private UserOrderMsgNotificationService userOrderMsgNotificationService;
 
+	@Resource
+	private TaoBaoPunishOrderService taoBaoPunishOrderService;
+
 	@Transactional
 	@Override
 	public int addLostOrder(LostOrder lostOrder) {
@@ -49,6 +53,14 @@
 		if (type == null) { // 榛樿涓烘窐瀹濊鍗�
 			lostOrder.setType(1);
 			type = 1;
+		}
+
+		// 鏄惁澶勪簬杩濊璁㈠崟涓�
+		if (type == 1) {
+			int count = taoBaoPunishOrderService.countByTradeParentId(orderId);
+			if (count > 0) {
+				return -1001;
+			}
 		}
 
 		// 璁㈠崟鏄惁宸茬敵璇�
@@ -291,7 +303,8 @@
 	 * @return
 	 */
 	@Override
-	public List<LostOrder> listQuery(long start, int count, String key, Integer state, Integer handleType, Integer type) {
+	public List<LostOrder> listQuery(long start, int count, String key, Integer state, Integer handleType,
+			Integer type) {
 		return lostOrderMapper.listQuery(start, count, key, state, handleType, type);
 	}
 

--
Gitblit v1.8.0