提交 d15197fc authored 作者: luojie's avatar luojie

同步前台新增商品分类链接

上级 956b3d29
......@@ -25,6 +25,8 @@ public class TbCfGoodstypeEntity implements Serializable {
*/
private Integer goodstypeSort;
private String goodstypeUrl;
/**
* 设置:商品分类Id
*/
......@@ -64,4 +66,12 @@ public class TbCfGoodstypeEntity implements Serializable {
public Integer getGoodstypeSort() {
return goodstypeSort;
}
public String getGoodstypeUrl() {
return goodstypeUrl;
}
public void setGoodstypeUrl(String goodstypeUrl) {
this.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.platform.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.platform.entity.TbCfGoodstypeEntity">
......@@ -65,6 +70,8 @@
<set>
<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>
where goodstype_id = #{goodstypeId}
</update>
......
......@@ -44,6 +44,9 @@
<Form-item label="商品分类排序编号" prop="goodstypeSort">
<i-input v-model="tbCfGoodstype.goodstypeSort" placeholder="商品分类排序编号"/>
</Form-item>
<Form-item label="商品分类跳转链接" prop="goodstypeUrl">
<i-input v-model="tbCfGoodstype.goodstypeUrl" placeholder="商品分类跳转链接"/>
</Form-item>
<Form-item>
<i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
<i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
......
......@@ -4,7 +4,8 @@ $(function () {
colModel: [
{label: 'goodstypeId', name: 'goodstypeId', index: 'goodstype_id', key: true, hidden: true},
{label: '商品分类标题', name: 'goodstypeTitle', index: 'goodstype_title', width: 80},
{label: '商品分类排序编号', name: 'goodstypeSort', index: 'goodstype_sort', width: 80}]
{label: '商品分类排序编号', name: 'goodstypeTitle', index: 'goodstype_title', width: 80},
{label: '商品分类跳转链接', name: 'goodstypeUrl', index: 'goodstype_url', width: 80}]
});
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论