| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.panzhihua.common.model.vos.shop.ComShopGoodsAttrVO; |
| | | import com.panzhihua.service_community.model.dos.ComShopGoodsAttrDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @auther lyq |
| | |
| | | @Mapper |
| | | public interface ComShopGoodsAttrDAO extends BaseMapper<ComShopGoodsAttrDO> { |
| | | |
| | | @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<ComShopGoodsAttrVO> getGoodsAttr(@Param("goodsId") Long goodsId); |
| | | |
| | | } |