销量和浏览量字段设置
This commit is contained in:
@@ -47,4 +47,16 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<update id="incrementSalesVolumeByOrderIds">
|
||||
UPDATE seller_listing
|
||||
SET sales_volume = sales_volume + 1
|
||||
WHERE id IN (
|
||||
SELECT DISTINCT listing_id FROM seller_order_item
|
||||
WHERE order_id IN
|
||||
<foreach collection="orderIds" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
)
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user