...
|
...
|
@@ -28,6 +28,7 @@ |
|
|
<result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" />
|
|
|
<result column="bar_code" jdbcType="VARCHAR" property="barCode" />
|
|
|
<result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" />
|
|
|
<result column="show_channel" jdbcType="VARCHAR" property="showChannel" />
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yoho.ufo.dal.model.Product" useGeneratedKeys="true" keyProperty="id" >
|
...
|
...
|
@@ -37,7 +38,7 @@ |
|
|
min_price, max_price, create_time,
|
|
|
update_time, shelve_time, edit_time,
|
|
|
shelve_status, storage, key_words,
|
|
|
del_status, age_level, is_syn_calender, offer_price,hs_code,bar_code,product_name_cn,measuremen_code)
|
|
|
del_status, age_level, is_syn_calender, offer_price,hs_code,bar_code,product_name_cn,measuremen_code, show_channel)
|
|
|
values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR},
|
|
|
#{maxSortId,jdbcType=INTEGER}, #{midSortId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER},
|
|
|
#{seriesId,jdbcType=INTEGER}, #{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER},
|
...
|
...
|
@@ -45,7 +46,8 @@ |
|
|
#{updateTime,jdbcType=INTEGER}, #{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER},
|
|
|
#{shelveStatus,jdbcType=INTEGER}, #{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR},
|
|
|
#{delStatus,jdbcType=INTEGER}, #{ageLevel,jdbcType=VARCHAR},
|
|
|
#{isSynCalender,jdbcType=INTEGER}, #{offerPrice,jdbcType=DECIMAL}, #{hsCode,jdbcType=DECIMAL}, #{barCode,jdbcType=VARCHAR}, #{productNameCn,jdbcType=VARCHAR}, #{measuremenCode,jdbcType=VARCHAR})
|
|
|
#{isSynCalender,jdbcType=INTEGER}, #{offerPrice,jdbcType=DECIMAL}, #{hsCode,jdbcType=DECIMAL}, #{barCode,jdbcType=VARCHAR}, #{productNameCn,jdbcType=VARCHAR}, #{measuremenCode,jdbcType=VARCHAR}
|
|
|
, #{showChannel,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product">
|
|
|
update product set
|
...
|
...
|
@@ -76,12 +78,13 @@ |
|
|
bar_code = #{barCode,jdbcType=VARCHAR},
|
|
|
hs_code = #{hsCode,jdbcType=INTEGER},
|
|
|
measuremen_code = #{measuremenCode,jdbcType=VARCHAR},
|
|
|
product_name_cn = #{productNameCn,jdbcType=VARCHAR}
|
|
|
product_name_cn = #{productNameCn,jdbcType=VARCHAR},
|
|
|
show_channel = #{showChannel,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
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,
|
|
|
gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time, show_channel,
|
|
|
shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price , hs_code,bar_code,product_name_cn,measuremen_code
|
|
|
from product
|
|
|
where id = #{id,jdbcType=INTEGER}
|
...
|
...
|
@@ -89,14 +92,14 @@ |
|
|
<select id="selectAll" resultMap="BaseResultMap">
|
|
|
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, age_level, is_syn_calender, offer_price
|
|
|
shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price ,show_channel
|
|
|
from product
|
|
|
</select>
|
|
|
|
|
|
<select id="selectPage" resultMap="BaseResultMap">
|
|
|
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, age_level, is_syn_calender, offer_price
|
|
|
shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price ,show_channel
|
|
|
from product where del_status=0 <include refid="pageCondition" /> order by product.id desc limit #{start},#{rows}
|
|
|
</select>
|
|
|
<select id="selectCount" resultType="java.lang.Integer">
|
...
|
...
|
|