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

新增商品分类跳转链接

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