Forráskód Böngészése

更多分类新增分类图片

anderx 7 éve%!(EXTRA string=óta)
szülő
commit
76b1337dbc

+ 1 - 1
src/main/java/com/goafanti/business/bo/JtBusinessCategoryBo.java

@@ -8,8 +8,8 @@ public class JtBusinessCategoryBo {
 String topLevel;
 String topLevelId;
 String summary;
-List<JtBusinessCategory>children;
 String topImg;
+List<JtBusinessCategory>children;
 
 public String getTopImg() {
 	return topImg;

+ 3 - 1
src/main/java/com/goafanti/common/mapper/JtBusinessCategoryMapper.xml

@@ -453,10 +453,11 @@ where
 	and jt2.id = #{0}
  </select>
  <select id="getCategoryBySuperId" resultType="com.goafanti.common.model.JtBusinessCategory">
-  select
+    select
 	id,
 	name,
 	super_id as superId,
+	img_url as imgUrl,
 	sort,module
 from
 	jt_business_category
@@ -467,6 +468,7 @@ where
   <resultMap id="JtBusinessCategoryBoResult" type="com.goafanti.business.bo.JtBusinessCategoryBo">  
         <id column="name" property="topLevel" />  
         <id column="topLevelId" property="topLevelId" />
+        <id column="topImg" property="topImg" />
         <id column="summary" property="summary"/>
         <collection column="topLevelId" ofType="com.goafanti.common.model.JtBusinessCategory" property="children" select="getCategoryBySuperId">
         </collection>