|
|
@@ -17,7 +17,7 @@ import java.util.List;
|
|
|
public interface YhShopGoodsSkuMapper extends BaseMapper<YhShopGoodsSku> {
|
|
|
|
|
|
@Select("select sku.*,ygs.price as yhShopSkuPrice from (select user_id from yh_shop where id = #{yhsId} limit 1) ys inner join yh_shop_goods_sku ygs on ygs.user_id = ys.user_id and ygs.sku_id = #{skuId} and ygs.deleted is true and ygs.status is true" +
|
|
|
- " inner join goods_don_sku sku on sku.id = ygs.sku_id")
|
|
|
+ " inner join goods_don_sku sku on sku.id = ygs.sku_id limit 1")
|
|
|
GoodsDonSku selectGoodsDonSkuBySkuIdAndYhsId(@Param("yhsId") Long yhsId, @Param("skuId") Long skuId);
|
|
|
|
|
|
@Update("update yh_shop_goods_sku set status = 0 where sku_id = #{skuId} and price not between #{minPrice} and #{maxPrice}")
|