提交 6553de70 authored 作者: luojie's avatar luojie

新增商品分类跳转链接

上级 c48af74c
...@@ -44,6 +44,7 @@ public class GoodsTypeController { ...@@ -44,6 +44,7 @@ public class GoodsTypeController {
StationToGoodsType goodsType = new StationToGoodsType(); StationToGoodsType goodsType = new StationToGoodsType();
goodsType.setCategoryId(goods.getGoodstypeId()); goodsType.setCategoryId(goods.getGoodstypeId());
goodsType.setGoodstypetitle(goods.getGoodstypeTitle()); goodsType.setGoodstypetitle(goods.getGoodstypeTitle());
goodsType.setGoodstypeUrl(goods.getGoodstypeUrl());
List<TbCfStationItemEntity> station = tbCfStationItemService.getGoodsTypeList(goods.getGoodstypeId()); List<TbCfStationItemEntity> station = tbCfStationItemService.getGoodsTypeList(goods.getGoodstypeId());
goodsType.setStationlist(station); goodsType.setStationlist(station);
listStation.add(goodsType); listStation.add(goodsType);
......
...@@ -25,7 +25,10 @@ public class TbCfGoodstypeEntity implements Serializable { ...@@ -25,7 +25,10 @@ public class TbCfGoodstypeEntity implements Serializable {
* 商品分类排序编号 * 商品分类排序编号
*/ */
private Integer goodstypeSort; private Integer goodstypeSort;
/**
* 商品分类url
*/
private String goodstypeUrl;
/** /**
* 设置:商品分类Id * 设置:商品分类Id
*/ */
...@@ -65,4 +68,12 @@ public class TbCfGoodstypeEntity implements Serializable { ...@@ -65,4 +68,12 @@ public class TbCfGoodstypeEntity implements Serializable {
public Integer getGoodstypeSort() { public Integer getGoodstypeSort() {
return goodstypeSort; return goodstypeSort;
} }
public String getGoodstypeUrl() {
return goodstypeUrl;
}
public void setGoodstypeUrl(String goodstypeUrl) {
this.goodstypeUrl = goodstypeUrl;
}
} }
...@@ -8,6 +8,7 @@ public class StationToGoodsType { ...@@ -8,6 +8,7 @@ public class StationToGoodsType {
private String CategoryId; private String CategoryId;
private String Goodstypetitle; private String Goodstypetitle;
private String GoodstypeUrl;
private List<TbCfStationItemEntity> stationlist; private List<TbCfStationItemEntity> stationlist;
public String getCategoryId() { public String getCategoryId() {
...@@ -33,4 +34,12 @@ public class StationToGoodsType { ...@@ -33,4 +34,12 @@ public class StationToGoodsType {
public void setStationlist(List<TbCfStationItemEntity> stationlist) { public void setStationlist(List<TbCfStationItemEntity> stationlist) {
this.stationlist = stationlist; this.stationlist = stationlist;
} }
public String getGoodstypeUrl() {
return GoodstypeUrl;
}
public void setGoodstypeUrl(String goodstypeUrl) {
GoodstypeUrl = goodstypeUrl;
}
} }
...@@ -7,13 +7,15 @@ ...@@ -7,13 +7,15 @@
<result property="goodstypeId" column="goodstype_id"/> <result property="goodstypeId" column="goodstype_id"/>
<result property="goodstypeTitle" column="goodstype_title"/> <result property="goodstypeTitle" column="goodstype_title"/>
<result property="goodstypeSort" column="goodstype_sort"/> <result property="goodstypeSort" column="goodstype_sort"/>
<result property="goodstypeUrl" column="goodstype_url"/>
</resultMap> </resultMap>
<select id="queryObject" resultType="com.diaoyun.zion.chinafrica.entity.TbCfGoodstypeEntity"> <select id="queryObject" resultType="com.diaoyun.zion.chinafrica.entity.TbCfGoodstypeEntity">
select select
`goodstype_id`, `goodstype_id`,
`goodstype_title`, `goodstype_title`,
`goodstype_sort` `goodstype_sort`,
`goodstype_url`
from tb_cf_goodstype from tb_cf_goodstype
where goodstype_id = #{id} where goodstype_id = #{id}
</select> </select>
...@@ -22,7 +24,8 @@ ...@@ -22,7 +24,8 @@
select select
`goodstype_id`, `goodstype_id`,
`goodstype_title`, `goodstype_title`,
`goodstype_sort` `goodstype_sort`,
`goodstype_url`
from tb_cf_goodstype from tb_cf_goodstype
WHERE 1=1 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
...@@ -53,11 +56,13 @@ ...@@ -53,11 +56,13 @@
insert into tb_cf_goodstype( insert into tb_cf_goodstype(
`goodstype_id`, `goodstype_id`,
`goodstype_title`, `goodstype_title`,
`goodstype_sort`) `goodstype_sort`,
`goodstype_url`)
values( values(
#{goodstypeId}, #{goodstypeId},
#{goodstypeTitle}, #{goodstypeTitle},
#{goodstypeSort}) #{goodstypeSort},
#{goodstypeUrl})
</insert> </insert>
<update id="update" parameterType="com.diaoyun.zion.chinafrica.entity.TbCfGoodstypeEntity"> <update id="update" parameterType="com.diaoyun.zion.chinafrica.entity.TbCfGoodstypeEntity">
...@@ -65,6 +70,7 @@ ...@@ -65,6 +70,7 @@
<set> <set>
<if test="goodstypeTitle != null">`goodstype_title` = #{goodstypeTitle}, </if> <if test="goodstypeTitle != null">`goodstype_title` = #{goodstypeTitle}, </if>
<if test="goodstypeSort != null">`goodstype_sort` = #{goodstypeSort}</if> <if test="goodstypeSort != null">`goodstype_sort` = #{goodstypeSort}</if>
<if test="goodstypeUrl != null">`goodstype_url` = #{goodstypeUrl}</if>
</set> </set>
where goodstype_id = #{goodstypeId} where goodstype_id = #{goodstypeId}
</update> </update>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论