package com.panzhihua.service_community.dao; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.panzhihua.common.model.vos.shop.ComShopGoodsAttrVO; import com.panzhihua.service_community.model.dos.ComShopGoodsAttrDO; /** * @auther lyq * @create 2021-04-14 15:02:49 * @describe 商品规格表mapper类 */ @Mapper public interface ComShopGoodsAttrDAO extends BaseMapper { @Select("select id,goods_id as goodsId,store_id as storeId,goods_name as goodsName,goods_attr as goodsAttr,stock,sale,attr_pic as attrPic,is_default as isDefault,price from com_shop_goods_attr where goods_id = #{goodsId}") List getGoodsAttr(@Param("goodsId") Long goodsId); }