...
|
...
|
@@ -5,9 +5,10 @@ |
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="product_name" jdbcType="VARCHAR" property="productName" />
|
|
|
<result column="product_code" jdbcType="VARCHAR" property="productCode" />
|
|
|
<result column="sort_id" jdbcType="SMALLINT" property="sortId" />
|
|
|
<result column="brand_id" jdbcType="SMALLINT" property="brandId" />
|
|
|
<result column="series_id" jdbcType="SMALLINT" property="seriesId" />
|
|
|
<result column="max_sort_id" jdbcType="INTEGER" property="maxSortId" />
|
|
|
<result column="mid_sort_id" jdbcType="INTEGER" property="midSortId" />
|
|
|
<result column="brand_id" jdbcType="INTEGER" property="brandId" />
|
|
|
<result column="series_id" jdbcType="INTEGER" property="seriesId" />
|
|
|
<result column="gender" jdbcType="CHAR" property="gender" />
|
|
|
<result column="sale_time" jdbcType="INTEGER" property="saleTime" />
|
|
|
<result column="min_price" jdbcType="DECIMAL" property="minPrice" />
|
...
|
...
|
@@ -16,10 +17,10 @@ |
|
|
<result column="update_time" jdbcType="INTEGER" property="updateTime" />
|
|
|
<result column="shelve_time" jdbcType="INTEGER" property="shelveTime" />
|
|
|
<result column="edit_time" jdbcType="INTEGER" property="editTime" />
|
|
|
<result column="shelve_status" jdbcType="TINYINT" property="shelveStatus" />
|
|
|
<result column="shelve_status" jdbcType="INTEGER" property="shelveStatus" />
|
|
|
<result column="storage" jdbcType="INTEGER" property="storage" />
|
|
|
<result column="key_words" jdbcType="VARCHAR" property="keyWords" />
|
|
|
<result column="del_status" jdbcType="TINYINT" property="delStatus" />
|
|
|
<result column="del_status" jdbcType="INTEGER" property="delStatus" />
|
|
|
</resultMap>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from product
|
...
|
...
|
@@ -27,27 +28,28 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.product.model.Product">
|
|
|
insert into product (id, product_name, product_code,
|
|
|
sort_id, brand_id, series_id,
|
|
|
max_sort_id, mid_sort_id, brand_id, series_id,
|
|
|
gender, sale_time, min_price,
|
|
|
max_price, create_time, update_time,
|
|
|
shelve_time, edit_time, shelve_status,
|
|
|
storage, key_words, del_status
|
|
|
)
|
|
|
values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR},
|
|
|
#{sortId,jdbcType=SMALLINT}, #{brandId,jdbcType=SMALLINT}, #{seriesId,jdbcType=SMALLINT},
|
|
|
#{maxSortId,jdbcType=INTEGER}, #{midSortId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER}, #{seriesId,jdbcType=INTEGER},
|
|
|
#{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER}, #{minPrice,jdbcType=DECIMAL},
|
|
|
#{maxPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
|
|
#{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{shelveStatus,jdbcType=TINYINT},
|
|
|
#{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR}, #{delStatus,jdbcType=TINYINT}
|
|
|
#{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER}, #{shelveStatus,jdbcType=INTEGER},
|
|
|
#{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR}, #{delStatus,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.Product">
|
|
|
update product
|
|
|
set product_name = #{productName,jdbcType=VARCHAR},
|
|
|
product_code = #{productCode,jdbcType=VARCHAR},
|
|
|
sort_id = #{sortId,jdbcType=SMALLINT},
|
|
|
brand_id = #{brandId,jdbcType=SMALLINT},
|
|
|
series_id = #{seriesId,jdbcType=SMALLINT},
|
|
|
max_sort_id = #{maxSortId,jdbcType=INTEGER},
|
|
|
mid_sort_id = #{midSortId,jdbcType=INTEGER},
|
|
|
brand_id = #{brandId,jdbcType=INTEGER},
|
|
|
series_id = #{seriesId,jdbcType=INTEGER},
|
|
|
gender = #{gender,jdbcType=CHAR},
|
|
|
sale_time = #{saleTime,jdbcType=INTEGER},
|
|
|
min_price = #{minPrice,jdbcType=DECIMAL},
|
...
|
...
|
@@ -56,21 +58,21 @@ |
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
shelve_time = #{shelveTime,jdbcType=INTEGER},
|
|
|
edit_time = #{editTime,jdbcType=INTEGER},
|
|
|
shelve_status = #{shelveStatus,jdbcType=TINYINT},
|
|
|
shelve_status = #{shelveStatus,jdbcType=INTEGER},
|
|
|
storage = #{storage,jdbcType=INTEGER},
|
|
|
key_words = #{keyWords,jdbcType=VARCHAR},
|
|
|
del_status = #{delStatus,jdbcType=TINYINT}
|
|
|
del_status = #{delStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select id, product_name, product_code, sort_id, brand_id, series_id, gender, sale_time,
|
|
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time,
|
|
|
min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status,
|
|
|
storage, key_words, del_status
|
|
|
from product
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<select id="selectAll" resultMap="BaseResultMap">
|
|
|
select id, product_name, product_code, sort_id, brand_id, series_id, gender, sale_time,
|
|
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id, gender, sale_time,
|
|
|
min_price, max_price, create_time, update_time, shelve_time, edit_time, shelve_status,
|
|
|
storage, key_words, del_status
|
|
|
from product
|
...
|
...
|
|