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
27
28
package com.doumee.dao.business;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doumee.dao.business.model.GoodsSkuAttr;
import com.doumee.dao.web.response.goods.GoodsSkuAttrResponse;
import com.doumee.dao.web.response.goods.SkuAttrResponse;
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 GoodsSkuAttrMapper extends BaseMapper<GoodsSkuAttr> {
 
 
 
    /**
     * 商品SKU规格组明细列表
     * @param skuId
     * @return
     */
    @Select(" select s.id , s.GOODS_SKU_ID , s.SKU_ID , s.SKU_ATTR_ID  from goods_sku_attr s where s.SKU_ID = #{skuId} ")
    List<GoodsSkuAttrResponse> getSkuAttrResponseList(@Param("skuId") Integer skuId);
 
}