diff --git a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml index 828ba4455..a534d54f5 100644 --- a/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml +++ b/cash-service/product-service/src/main/resources/mapper/ProductMapper.xml @@ -149,7 +149,7 @@ and t1.shop_id = #{shopId} - and t1.id in + and (t1.id in #{item} @@ -157,6 +157,7 @@ #{item} + ) order by t1.sort desc,t1.id desc