From 658abf6822afe4ea5390a36de382eb5dc63c2d4d Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期四, 30 五月 2019 14:14:07 +0800
Subject: [PATCH] 修改 可以删除贴标签的商品

---
 fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml
index 8c036d2..60df4fd 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml
@@ -1104,9 +1104,9 @@
 
 	<select id="getAuctionIdbyClassId" resultType="java.lang.Long">
 		SELECT h.`sg_goods_id` FROM `yeshi_ec_quality_factory` h	
-		WHERE  h.`sg_goods_source` = #{goodsSource} <if test="systemCid != null">AND h.`sg_class_id` = #{systemCid}</if>
+		WHERE  h.`sg_goods_source` = #{goodsSource} 
 			AND h.`sg_updatetime` <![CDATA[<]]> #{beforeTime}
-			AND NOT EXISTS(SELECT lg_goods_id FROM `yeshi_ec_label_goods` lb WHERE lb.`lg_goods_id` = h.`sg_goods_id`)
+			<if test="systemCid != null">AND h.`sg_class_id` = #{systemCid}</if>
 	</select>
 
 

--
Gitblit v1.8.0