doum
2025-12-11 21c7a5cf169657835b45668fee59ddf50ca13e67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.doumee.dao.business;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doumee.dao.business.model.GoodsSku;
import com.doumee.dao.web.response.goods.GoodsSkuAttrResponse;
import com.doumee.dao.web.response.goods.GoodsSkuResponse;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
/**
 * @author 江蹄蹄
 * @date 2023/03/21 15:48
 */
public interface GoodsSkuMapper extends BaseMapper<GoodsSku> {
 
    /**
     * 商品SKU规格组明细列表
     * @param goodsId
     * @return
     */
    @Select(" select s.* , g.IMGURL as goodsImgUrl from goods_sku s  left join goods g on s.GOODS_ID = g.id  where s.goods_Id = #{goodsId} ")
    List<GoodsSkuResponse> getSkuResponseList(@Param("goodsId") Integer goodsId);
 
}