zhijiezhao 1 jaar geleden
bovenliggende
commit
b04e8741d6
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      src/main/resources/mappings/modules/product/CmProductCombinationMapper.xml

+ 1 - 3
src/main/resources/mappings/modules/product/CmProductCombinationMapper.xml

@@ -130,7 +130,7 @@
 		left join cm_organize_product_info copi on copi.productId = a.productID
 		left join shop s on a.shopId = s.shopID
 		<where>
-
+			copi.validFlag in (2,3,9)
 			<if test="productID !=null and productID !=''">
 				AND a.productID=#{productID}
 			</if>
@@ -146,8 +146,6 @@
 				<if test="dbName == 'mssql'">'%'+#{shopName}+'%'</if>
 				<if test="dbName == 'mysql'">concat('%',#{shopName},'%')</if>
 			</if>
--- 			AND a.validFlag in (2,3,9)
-			 copi.validFlag in (2,3,9)
 			and a.combinationID is null
 			and a.productCategory = 1
 		</where>