Showing
4 changed files
with
27 additions
and
3 deletions
@@ -33,6 +33,8 @@ public class Brand implements Serializable { | @@ -33,6 +33,8 @@ public class Brand implements Serializable { | ||
33 | 33 | ||
34 | private String searchShowImage; | 34 | private String searchShowImage; |
35 | 35 | ||
36 | + private String exRaise; | ||
37 | + | ||
36 | public Integer getId() { | 38 | public Integer getId() { |
37 | return id; | 39 | return id; |
38 | } | 40 | } |
@@ -121,6 +123,14 @@ public class Brand implements Serializable { | @@ -121,6 +123,14 @@ public class Brand implements Serializable { | ||
121 | this.brandNameCn = brandNameCn; | 123 | this.brandNameCn = brandNameCn; |
122 | } | 124 | } |
123 | 125 | ||
126 | + public String getExRaise() { | ||
127 | + return exRaise; | ||
128 | + } | ||
129 | + | ||
130 | + public void setExRaise(String exRaise) { | ||
131 | + this.exRaise = exRaise; | ||
132 | + } | ||
133 | + | ||
124 | @Override | 134 | @Override |
125 | public String toString() { | 135 | public String toString() { |
126 | return "Brand{" + | 136 | return "Brand{" + |
@@ -14,15 +14,16 @@ | @@ -14,15 +14,16 @@ | ||
14 | <result property="createTime" column="create_time"/> | 14 | <result property="createTime" column="create_time"/> |
15 | <result property="editPid" column="edit_pid"/> | 15 | <result property="editPid" column="edit_pid"/> |
16 | <result property="search_show_image" column="searchShowImage"/> | 16 | <result property="search_show_image" column="searchShowImage"/> |
17 | + <result property="ex_raise" column="exRaise"/> | ||
17 | </resultMap> | 18 | </resultMap> |
18 | 19 | ||
19 | <sql id="queryColumns"> | 20 | <sql id="queryColumns"> |
20 | - id, brand_name, brand_name_cn, brand_name_en, brand_logo, brand_search, status, create_time, search_show_image | 21 | + id, brand_name, brand_name_cn, brand_name_en, brand_logo, brand_search, status, create_time, search_show_image,ex_raise |
21 | </sql> | 22 | </sql> |
22 | 23 | ||
23 | <insert id="insertBrand" parameterType="com.yoho.ufo.model.brand.Brand"> | 24 | <insert id="insertBrand" parameterType="com.yoho.ufo.model.brand.Brand"> |
24 | - insert into brand(id, brand_name, brand_name_cn, brand_name_en, brand_logo, search_show_image, brand_search, status, create_time, edit_time, edit_pid) | ||
25 | - values (#{id}, #{brandName},#{brandNameCn}, #{brandNameEn}, #{brandLogo}, #{searchShowImage}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid}) | 25 | + insert into brand(id, brand_name, brand_name_cn, brand_name_en, brand_logo, search_show_image, brand_search, status, create_time, edit_time, edit_pid,ex_raise) |
26 | + values (#{id}, #{brandName},#{brandNameCn}, #{brandNameEn}, #{brandLogo}, #{searchShowImage}, #{brandSearch}, #{status}, #{createTime}, #{editTime}, #{editPid}, #{exRaise}) | ||
26 | </insert> | 27 | </insert> |
27 | 28 | ||
28 | <update id="updateBrandStatus" parameterType="com.yoho.ufo.model.brand.Brand"> | 29 | <update id="updateBrandStatus" parameterType="com.yoho.ufo.model.brand.Brand"> |
@@ -56,6 +57,9 @@ | @@ -56,6 +57,9 @@ | ||
56 | <if test="brand.editPid != null"> | 57 | <if test="brand.editPid != null"> |
57 | edit_pid = #{brand.editPid}, | 58 | edit_pid = #{brand.editPid}, |
58 | </if> | 59 | </if> |
60 | + <if test="brand.exRaise != null"> | ||
61 | + ex_raise = #{brand.exRaise}, | ||
62 | + </if> | ||
59 | brand_search = #{brand.brandSearch}, | 63 | brand_search = #{brand.brandSearch}, |
60 | search_show_image = #{brand.searchShowImage} | 64 | search_show_image = #{brand.searchShowImage} |
61 | </set> | 65 | </set> |
@@ -40,6 +40,7 @@ public class BrandServiceImpl implements IBrandService { | @@ -40,6 +40,7 @@ public class BrandServiceImpl implements IBrandService { | ||
40 | brand.setEditPid(getUserId()); | 40 | brand.setEditPid(getUserId()); |
41 | brand.setBrandLogo(ImagesHelper.getImageRelativeUrl(brand.getBrandLogo(), ImagesConstant.BUCKET_BRAND_LOGO)); | 41 | brand.setBrandLogo(ImagesHelper.getImageRelativeUrl(brand.getBrandLogo(), ImagesConstant.BUCKET_BRAND_LOGO)); |
42 | brand.setSearchShowImage(ImagesHelper.getImageRelativeUrl(brand.getSearchShowImage(), ImagesConstant.BUCKET_SEARCH_SHOW_IMAGE)); | 42 | brand.setSearchShowImage(ImagesHelper.getImageRelativeUrl(brand.getSearchShowImage(), ImagesConstant.BUCKET_SEARCH_SHOW_IMAGE)); |
43 | + brand.setExRaise(brandRequestBo.getExRaise()); | ||
43 | if (brand.getId() == null || brand.getId() == 0) { | 44 | if (brand.getId() == null || brand.getId() == 0) { |
44 | // 默认开启状态 | 45 | // 默认开启状态 |
45 | brand.setStatus(1); | 46 | brand.setStatus(1); |
@@ -84,6 +85,7 @@ public class BrandServiceImpl implements IBrandService { | @@ -84,6 +85,7 @@ public class BrandServiceImpl implements IBrandService { | ||
84 | brandResponseBo.setCreateTime(DateUtil.getDateStrBySecond(brand.getCreateTime(), DateUtil.DATE_TIME_FORMAT)); | 85 | brandResponseBo.setCreateTime(DateUtil.getDateStrBySecond(brand.getCreateTime(), DateUtil.DATE_TIME_FORMAT)); |
85 | brandResponseBo.setBrandLogo(ImagesHelper.getImageAbsoluteUrl(brand.getBrandLogo(), ImagesConstant.BUCKET_BRAND_LOGO)); | 86 | brandResponseBo.setBrandLogo(ImagesHelper.getImageAbsoluteUrl(brand.getBrandLogo(), ImagesConstant.BUCKET_BRAND_LOGO)); |
86 | brandResponseBo.setSearchShowImage(ImagesHelper.getImageAbsoluteUrl(brand.getSearchShowImage(), ImagesConstant.BUCKET_SEARCH_SHOW_IMAGE)); | 87 | brandResponseBo.setSearchShowImage(ImagesHelper.getImageAbsoluteUrl(brand.getSearchShowImage(), ImagesConstant.BUCKET_SEARCH_SHOW_IMAGE)); |
88 | + brandResponseBo.setExRaise(brand.getExRaise()); | ||
87 | return brandResponseBo; | 89 | return brandResponseBo; |
88 | } | 90 | } |
89 | 91 |
@@ -54,6 +54,13 @@ | @@ -54,6 +54,13 @@ | ||
54 | <div style="color: #ab1e1e;margin-top: 0px">*多个搜索词中间用英文逗号分隔</div> | 54 | <div style="color: #ab1e1e;margin-top: 0px">*多个搜索词中间用英文逗号分隔</div> |
55 | </td> | 55 | </td> |
56 | </tr> | 56 | </tr> |
57 | + <tr style="line-height: 0px"> | ||
58 | + <td width="20%">实物鉴定是否排除该品牌</td> | ||
59 | + <td width="50%"> | ||
60 | + <input type="radio" name="exRaise" value="1"> 排除 | ||
61 | + <input type="radio" name="exRaise" value="0" checked>不排除 | ||
62 | + </td> | ||
63 | + </tr> | ||
57 | </table> | 64 | </table> |
58 | </div> | 65 | </div> |
59 | </form> | 66 | </form> |
@@ -146,6 +153,7 @@ | @@ -146,6 +153,7 @@ | ||
146 | $("#brandEditForm").form("load", data.data); | 153 | $("#brandEditForm").form("load", data.data); |
147 | $("#brandEditForm #brandLogoUpload").imageUpload("setValue", data.data.brandLogo); | 154 | $("#brandEditForm #brandLogoUpload").imageUpload("setValue", data.data.brandLogo); |
148 | $("#brandEditForm #searchShowImageUpload").imageUpload("setValue", data.data.searchShowImage); | 155 | $("#brandEditForm #searchShowImageUpload").imageUpload("setValue", data.data.searchShowImage); |
156 | + $(":radio[name='exRaise'][value='" + data.data.exRaise + "']").prop("checked", "checked"); | ||
149 | }); | 157 | }); |
150 | } | 158 | } |
151 | }); | 159 | }); |
-
Please register or login to post a comment