Prechádzať zdrojové kódy

1、修改sku的查询方法

zhoux 1 rok pred
rodič
commit
95eb457846

+ 3 - 0
src/main/java/com/dk/mdm/mapper/mst/GoodsSkuMapper.xml

@@ -117,6 +117,9 @@
             <if test="brandId != null and brandId != ''">
             <if test="brandId != null and brandId != ''">
                 AND tmgs.brand_id = #{brandId}::uuid
                 AND tmgs.brand_id = #{brandId}::uuid
             </if>
             </if>
+            <if test="skuId != null and skuId != ''">
+                AND tmgs.sku_id = #{skuId}::uuid
+            </if>
             <if test="categoryId != null and categoryId != ''">
             <if test="categoryId != null and categoryId != ''">
                 AND tmgs.category_id = #{categoryId}::uuid
                 AND tmgs.category_id = #{categoryId}::uuid
             </if>
             </if>