Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
d15197fc
提交
d15197fc
authored
12月 20, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
同步前台新增商品分类链接
上级
956b3d29
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
6 行删除
+27
-6
TbCfGoodstypeEntity.java
...rc/main/java/com/platform/entity/TbCfGoodstypeEntity.java
+10
-0
TbCfGoodstypeDao.xml
.../src/main/resources/com/platform/dao/TbCfGoodstypeDao.xml
+12
-5
tbcfgoodstype.html
...admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
+3
-0
tbcfgoodstype.js
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
+2
-1
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfGoodstypeEntity.java
浏览文件 @
d15197fc
...
...
@@ -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
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfGoodstypeDao.xml
浏览文件 @
d15197fc
...
...
@@ -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>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstype.html
浏览文件 @
d15197fc
...
...
@@ -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>
...
...
platform-admin/src/main/webapp/js/sys/tbcfgoodstype.js
浏览文件 @
d15197fc
...
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论