Merge remote-tracking branch 'origin/master'

This commit is contained in:
Tankaikai 2025-04-07 11:40:34 +08:00
commit 982aab3108
1 changed files with 7 additions and 4 deletions

View File

@ -247,9 +247,12 @@
from tb_product as a
left join tb_prod_sku as b on a.id = b.product_id
where a.shop_id = #{shopId}
<if test="productIds != null">
and a.id in
<foreach collection="productIds" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</if>
GROUP BY a.id
</select>
<update id="updateProductStockNum">