Authored by qinchao

销售类目

@@ -59,4 +59,6 @@ public class SaleCategory { @@ -59,4 +59,6 @@ public class SaleCategory {
59 59
60 private String linkDetail; 60 private String linkDetail;
61 61
  62 + private String imageUrl;
  63 +
62 } 64 }
@@ -13,17 +13,18 @@ @@ -13,17 +13,18 @@
13 <result property="updateTime" column="update_time"/> 13 <result property="updateTime" column="update_time"/>
14 <result property="linkType" column="link_type"/> 14 <result property="linkType" column="link_type"/>
15 <result property="linkDetail" column="link_detail"/> 15 <result property="linkDetail" column="link_detail"/>
  16 + <result property="imageUrl" column="image_url"/>
16 </resultMap> 17 </resultMap>
17 18
18 <sql id="Base_Column_List"> 19 <sql id="Base_Column_List">
19 - id, category_name, status, level, parent_id, order_by,create_time,update_time,link_type,link_detail 20 + id, category_name, status, level, parent_id, order_by,create_time,update_time,link_type,link_detail,image_url
20 </sql> 21 </sql>
21 22
22 23
23 <select id="selectAll" resultMap="BaseResultMap"> 24 <select id="selectAll" resultMap="BaseResultMap">
24 select <include refid="Base_Column_List" /> 25 select <include refid="Base_Column_List" />
25 from sale_category where 1=1 26 from sale_category where 1=1
26 - order by level,order_by 27 + order by level,order_by desc
27 </select> 28 </select>
28 29
29 </mapper> 30 </mapper>
1 package com.yoho.ufo.service.impl; 1 package com.yoho.ufo.service.impl;
2 2
3 -import com.google.common.collect.Lists;  
4 import com.yoho.ufo.dal.SaleCategoryMapper; 3 import com.yoho.ufo.dal.SaleCategoryMapper;
5 -import com.yoho.ufo.model.commoditybasicrole.category.ProductSort;  
6 import com.yoho.ufo.model.salecategory.SaleCategory; 4 import com.yoho.ufo.model.salecategory.SaleCategory;
7 import com.yoho.ufo.service.ISaleCategoryService; 5 import com.yoho.ufo.service.ISaleCategoryService;
8 -import com.yoho.ufo.util.CollectionUtil;  
9 import com.yoho.ufo.util.OrikaUtils; 6 import com.yoho.ufo.util.OrikaUtils;
10 -import com.yohobuy.ufo.model.request.productsort.ProductSortRequestBo;  
11 -import com.yohobuy.ufo.model.response.productsort.ProductSortTreeViewResponseBo;  
12 import com.yohobuy.ufo.model.response.salecategory.SaleCategoryTreeViewResponseBo; 7 import com.yohobuy.ufo.model.response.salecategory.SaleCategoryTreeViewResponseBo;
13 import lombok.extern.slf4j.Slf4j; 8 import lombok.extern.slf4j.Slf4j;
14 import org.apache.commons.collections.CollectionUtils; 9 import org.apache.commons.collections.CollectionUtils;