|
@@ -28,6 +28,7 @@ |
|
@@ -28,6 +28,7 @@ |
28
|
<result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" />
|
28
|
<result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" />
|
29
|
<result column="bar_code" jdbcType="VARCHAR" property="barCode" />
|
29
|
<result column="bar_code" jdbcType="VARCHAR" property="barCode" />
|
30
|
<result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" />
|
30
|
<result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" />
|
|
|
31
|
+ <result column="show_channel" jdbcType="VARCHAR" property="showChannel" />
|
31
|
</resultMap>
|
32
|
</resultMap>
|
32
|
|
33
|
|
33
|
<insert id="insert" parameterType="com.yoho.ufo.dal.model.Product" useGeneratedKeys="true" keyProperty="id" >
|
34
|
<insert id="insert" parameterType="com.yoho.ufo.dal.model.Product" useGeneratedKeys="true" keyProperty="id" >
|
|
@@ -37,7 +38,7 @@ |
|
@@ -37,7 +38,7 @@ |
37
|
min_price, max_price, create_time,
|
38
|
min_price, max_price, create_time,
|
38
|
update_time, shelve_time, edit_time,
|
39
|
update_time, shelve_time, edit_time,
|
39
|
shelve_status, storage, key_words,
|
40
|
shelve_status, storage, key_words,
|
40
|
- del_status, age_level, is_syn_calender, offer_price,hs_code,bar_code,product_name_cn,measuremen_code)
|
41
|
+ del_status, age_level, is_syn_calender, offer_price,hs_code,bar_code,product_name_cn,measuremen_code, show_channel)
|
41
|
values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR},
|
42
|
values (#{id,jdbcType=INTEGER}, #{productName,jdbcType=VARCHAR}, #{productCode,jdbcType=VARCHAR},
|
42
|
#{maxSortId,jdbcType=INTEGER}, #{midSortId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER},
|
43
|
#{maxSortId,jdbcType=INTEGER}, #{midSortId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER},
|
43
|
#{seriesId,jdbcType=INTEGER}, #{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER},
|
44
|
#{seriesId,jdbcType=INTEGER}, #{gender,jdbcType=CHAR}, #{saleTime,jdbcType=INTEGER},
|
|
@@ -45,7 +46,8 @@ |
|
@@ -45,7 +46,8 @@ |
45
|
#{updateTime,jdbcType=INTEGER}, #{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER},
|
46
|
#{updateTime,jdbcType=INTEGER}, #{shelveTime,jdbcType=INTEGER}, #{editTime,jdbcType=INTEGER},
|
46
|
#{shelveStatus,jdbcType=INTEGER}, #{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR},
|
47
|
#{shelveStatus,jdbcType=INTEGER}, #{storage,jdbcType=INTEGER}, #{keyWords,jdbcType=VARCHAR},
|
47
|
#{delStatus,jdbcType=INTEGER}, #{ageLevel,jdbcType=VARCHAR},
|
48
|
#{delStatus,jdbcType=INTEGER}, #{ageLevel,jdbcType=VARCHAR},
|
48
|
- #{isSynCalender,jdbcType=INTEGER}, #{offerPrice,jdbcType=DECIMAL}, #{hsCode,jdbcType=DECIMAL}, #{barCode,jdbcType=VARCHAR}, #{productNameCn,jdbcType=VARCHAR}, #{measuremenCode,jdbcType=VARCHAR})
|
49
|
+ #{isSynCalender,jdbcType=INTEGER}, #{offerPrice,jdbcType=DECIMAL}, #{hsCode,jdbcType=DECIMAL}, #{barCode,jdbcType=VARCHAR}, #{productNameCn,jdbcType=VARCHAR}, #{measuremenCode,jdbcType=VARCHAR}
|
|
|
50
|
+ , #{showChannel,jdbcType=VARCHAR})
|
49
|
</insert>
|
51
|
</insert>
|
50
|
<update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product">
|
52
|
<update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product">
|
51
|
update product set
|
53
|
update product set
|
|
@@ -76,12 +78,13 @@ |
|
@@ -76,12 +78,13 @@ |
76
|
bar_code = #{barCode,jdbcType=VARCHAR},
|
78
|
bar_code = #{barCode,jdbcType=VARCHAR},
|
77
|
hs_code = #{hsCode,jdbcType=INTEGER},
|
79
|
hs_code = #{hsCode,jdbcType=INTEGER},
|
78
|
measuremen_code = #{measuremenCode,jdbcType=VARCHAR},
|
80
|
measuremen_code = #{measuremenCode,jdbcType=VARCHAR},
|
79
|
- product_name_cn = #{productNameCn,jdbcType=VARCHAR}
|
81
|
+ product_name_cn = #{productNameCn,jdbcType=VARCHAR},
|
|
|
82
|
+ show_channel = #{showChannel,jdbcType=VARCHAR}
|
80
|
where id = #{id,jdbcType=INTEGER}
|
83
|
where id = #{id,jdbcType=INTEGER}
|
81
|
</update>
|
84
|
</update>
|
82
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
85
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
83
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
86
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
84
|
- gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time,
|
87
|
+ gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time, show_channel,
|
85
|
shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price , hs_code,bar_code,product_name_cn,measuremen_code
|
88
|
shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price , hs_code,bar_code,product_name_cn,measuremen_code
|
86
|
from product
|
89
|
from product
|
87
|
where id = #{id,jdbcType=INTEGER}
|
90
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -89,14 +92,14 @@ |
|
@@ -89,14 +92,14 @@ |
89
|
<select id="selectAll" resultMap="BaseResultMap">
|
92
|
<select id="selectAll" resultMap="BaseResultMap">
|
90
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
93
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
91
|
gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time,
|
94
|
gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time,
|
92
|
- shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price
|
95
|
+ shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price ,show_channel
|
93
|
from product
|
96
|
from product
|
94
|
</select>
|
97
|
</select>
|
95
|
|
98
|
|
96
|
<select id="selectPage" resultMap="BaseResultMap">
|
99
|
<select id="selectPage" resultMap="BaseResultMap">
|
97
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
100
|
select id, product_name, product_code, max_sort_id, mid_sort_id, brand_id, series_id,
|
98
|
gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time,
|
101
|
gender, sale_time, min_price, max_price, create_time, update_time, shelve_time, edit_time,
|
99
|
- shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price
|
102
|
+ shelve_status, storage, key_words, del_status, age_level, is_syn_calender, offer_price ,show_channel
|
100
|
from product where del_status=0 <include refid="pageCondition" /> order by product.id desc limit #{start},#{rows}
|
103
|
from product where del_status=0 <include refid="pageCondition" /> order by product.id desc limit #{start},#{rows}
|
101
|
</select>
|
104
|
</select>
|
102
|
<select id="selectCount" resultType="java.lang.Integer">
|
105
|
<select id="selectCount" resultType="java.lang.Integer">
|