zhijiezhao 2 years ago
parent
commit
042ac2e780
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/resources/mappings/modules/product/ProductMapper.xml

+ 4 - 0
src/main/resources/mappings/modules/product/ProductMapper.xml

@@ -339,7 +339,9 @@
 			priceFlag,
 			beautyActFlag,
 			ladderPriceFlag,
+		    <if test="stock !=''">
 			stock,
+			</if>
 			hasSkuFlag,
 			mainImage,
 			propertiesInfo,
@@ -413,7 +415,9 @@
 					 #{priceFlag},
 					 #{beautyActFlag},
 					 #{ladderPriceFlag},
+					 <if test="stock !=''">
 					 #{stock},
+					 </if>
 					 #{hasSkuFlag},
 					 #{mainImage},
 					 #{propertiesInfo},