<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.panzhihua.service_community.dao.ComShopFlowerGoodsAttrDAO">
|
<resultMap id="BaseResultMap" type="com.panzhihua.service_community.model.dos.ComShopFlowerGoodsAttrDO">
|
<!--@mbg.generated-->
|
<!--@Table com_shop_flower_goods_attr-->
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
<result column="goods_id" jdbcType="BIGINT" property="goodsId"/>
|
<result column="store_id" jdbcType="BIGINT" property="storeId"/>
|
<result column="goods_name" jdbcType="VARCHAR" property="goodsName"/>
|
<result column="goods_attr_name" jdbcType="VARCHAR" property="goodsAttrName"/>
|
<result column="stock" jdbcType="INTEGER" property="stock"/>
|
<result column="sale" jdbcType="INTEGER" property="sale"/>
|
<result column="attr_pic" jdbcType="VARCHAR" property="attrPic"/>
|
<result column="is_default" jdbcType="TINYINT" property="isDefault"/>
|
<result column="price" jdbcType="DECIMAL" property="price"/>
|
<result column="free_shipping_price" jdbcType="DECIMAL" property="freeShippingPrice"/>
|
<result column="collate_price" jdbcType="DECIMAL" property="collatePrice"/>
|
<result column="create_at" jdbcType="TIMESTAMP" property="createAt"/>
|
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt"/>
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, goods_id, store_id, goods_name, goods_attr_name, stock, sale, attr_pic, is_default,
|
price, free_shipping_price, collate_price, create_at, update_at
|
</sql>
|
<select id="getGoodsAttr" resultType="com.panzhihua.common.model.vos.shop.ComShopFlowerGoodsAttrVO">
|
select <include refid="Base_Column_List"/> from com_shop_flower_goods_attr where goods_id = #{goodsId}
|
</select>
|
</mapper>
|