|
|
@@ -26,6 +26,6 @@ public interface YhShopGoodsSkuMapper extends BaseMapper<YhShopGoodsSku> {
|
|
|
@Select("select sku_id,price from yh_shop_goods_sku where yhs_id = #{yhsId} and goods_id = #{goodsId} order by price limit 1")
|
|
|
YhShopGoodsSku selectMinPriceSkuByYhsId(@Param("yhsId") Long yhsId, @Param("skuId") Long goodsId);
|
|
|
|
|
|
- @Select("select * from yh_shop_goods_sku where yhs_id = #{yhsId} and goods_id = #{goodsId} order by price limit 1")
|
|
|
- List<YhShopGoodsSku> getBelowPriceShopSku(Long skuId, BigDecimal minPrice);
|
|
|
+ @Select("select * from yh_shop_goods_sku where sku_id = #{skuId} and price < #{minPrice} and status = 1")
|
|
|
+ List<YhShopGoodsSku> getBelowPriceShopSku(@Param("skuId") Long skuId, @Param("minPrice") BigDecimal minPrice);
|
|
|
}
|