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

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

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