Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
cefff93f
提交
cefff93f
authored
10月 17, 2019
作者:
张光耀
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新站点商品的品名管理
上级
fac5bcd8
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
47 行增加
和
24 行删除
+47
-24
TbCfStationItemEntity.java
.../main/java/com/platform/entity/TbCfStationItemEntity.java
+19
-2
TbCfStationItemDao.xml
...rc/main/resources/com/platform/dao/TbCfStationItemDao.xml
+11
-5
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+9
-4
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+8
-13
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfStationItemEntity.java
浏览文件 @
cefff93f
...
...
@@ -7,8 +7,8 @@ import java.util.Date;
* 站点商品实体
* 表名 tb_cf_station_item
*
* @author
lipengjun
* @date 2019-10-1
5 16:22:59
* @author
LHB
* @date 2019-10-1
7 14:30:51
*/
public
class
TbCfStationItemEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -61,6 +61,10 @@ public class TbCfStationItemEntity implements Serializable {
* 商品二级分类
*/
private
String
itemCategorytwo
;
/**
* 商品品名
*/
private
String
itemDescritionId
;
/**
* 设置:商品id
...
...
@@ -218,4 +222,17 @@ public class TbCfStationItemEntity implements Serializable {
public
String
getItemCategorytwo
()
{
return
itemCategorytwo
;
}
/**
* 设置:商品品名
*/
public
void
setItemDescritionId
(
String
itemDescritionId
)
{
this
.
itemDescritionId
=
itemDescritionId
;
}
/**
* 获取:商品品名
*/
public
String
getItemDescritionId
()
{
return
itemDescritionId
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfStationItemDao.xml
浏览文件 @
cefff93f
...
...
@@ -16,6 +16,7 @@
<result
property=
"enableFlag"
column=
"enable_flag"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"itemCategorytwo"
column=
"item_categorytwo"
/>
<result
property=
"itemDescritionId"
column=
"item_descrition_id"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfStationItemEntity"
>
...
...
@@ -31,7 +32,8 @@
`platform_name`,
`enable_flag`,
`create_time`,
`item_categorytwo`
`item_categorytwo`,
`item_descrition_id`
from tb_cf_station_item
where item_id = #{id}
</select>
...
...
@@ -49,7 +51,8 @@
`platform_name`,
`enable_flag`,
`create_time`,
`item_categorytwo`
`item_categorytwo`,
`item_descrition_id`
from tb_cf_station_item
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -89,7 +92,8 @@
`platform_name`,
`enable_flag`,
`create_time`,
`item_categorytwo`)
`item_categorytwo`,
`item_descrition_id`)
values(
#{itemId},
#{itemCode},
...
...
@@ -102,7 +106,8 @@
#{platformName},
#{enableFlag},
#{createTime},
#{itemCategorytwo})
#{itemCategorytwo},
#{itemDescritionId})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfStationItemEntity"
>
...
...
@@ -118,7 +123,8 @@
<if
test=
"platformName != null"
>
`platform_name` = #{platformName},
</if>
<if
test=
"enableFlag != null"
>
`enable_flag` = #{enableFlag},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"itemCategorytwo != null"
>
`item_categorytwo` = #{itemCategorytwo}
</if>
<if
test=
"itemCategorytwo != null"
>
`item_categorytwo` = #{itemCategorytwo},
</if>
<if
test=
"itemDescritionId != null"
>
`item_descrition_id` = #{itemDescritionId}
</if>
</set>
where item_id = #{itemId}
</update>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
cefff93f
...
...
@@ -5,8 +5,8 @@
#parse("sys/header.html")
</head>
<body>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
<div
v-show=
"showList"
style=
"height: 100%;"
>
<div
id=
"rrapp"
v-cloak
>
<div
v-show=
"showList"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
...
...
@@ -42,12 +42,11 @@
<Form-item
label=
"商品标题简介"
prop=
"itemBrief"
>
<i-input
v-model=
"tbCfStationItem.itemBrief"
placeholder=
"商品标题简介"
/>
</Form-item>
<Form-item
label=
"商品
分类"
prop=
"itemCategory"
>
<Form-item
label=
"商品一级
分类"
prop=
"itemCategory"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfStationItem.itemCategory"
>
<i-option
v-for=
"(el,i) in Goodstype"
:key =
'i'
:value=
"el.goodstypeId"
>
{{el.goodstypeTitle}}
</i-option>
</i-select>
</Form-item>
<Form-item
label=
"商品链接"
prop=
"itemUrl"
>
<i-input
v-model=
"tbCfStationItem.itemUrl"
placeholder=
"商品链接"
/>
...
...
@@ -67,6 +66,12 @@
<Form-item
label=
"创建日期"
prop=
"createTime"
>
<i-input
v-model=
"tbCfStationItem.createTime"
placeholder=
"创建日期"
/>
</Form-item>
<Form-item
label=
"商品二级分类"
prop=
"itemCategorytwo"
>
<i-input
v-model=
"tbCfStationItem.itemCategorytwo"
placeholder=
"商品二级分类"
/>
</Form-item>
<Form-item
label=
"商品品名"
prop=
"itemDescritionId"
>
<i-input
v-model=
"tbCfStationItem.itemDescritionId"
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/tbcfstationitem.js
浏览文件 @
cefff93f
...
...
@@ -6,13 +6,15 @@ $(function () {
{
label
:
'商品编号'
,
name
:
'itemCode'
,
index
:
'item_code'
,
width
:
80
},
{
label
:
'商品名字'
,
name
:
'itemName'
,
index
:
'item_name'
,
width
:
80
},
{
label
:
'商品标题简介'
,
name
:
'itemBrief'
,
index
:
'item_brief'
,
width
:
80
},
{
label
:
'商品分类'
,
name
:
'itemCategory'
,
index
:
'item_category'
,
width
:
80
},
{
label
:
'商品链接'
,
name
:
'itemUrl'
,
index
:
'item_url'
,
width
:
80
,
formatter
:
linkFormat
},
{
label
:
'商品图片'
,
name
:
'itemImg'
,
index
:
'item_img'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'商品链接'
,
name
:
'itemUrl'
,
index
:
'item_url'
,
width
:
80
},
{
label
:
'商品图片'
,
name
:
'itemImg'
,
index
:
'item_img'
,
width
:
80
},
{
label
:
'所属平台'
,
name
:
'platformCode'
,
index
:
'platform_code'
,
width
:
80
},
{
label
:
'平台名'
,
name
:
'platformName'
,
index
:
'platform_name'
,
width
:
80
},
{
label
:
'启用状态'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
80
},
{
label
:
'创建日期'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
}]
{
label
:
'创建日期'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
},
{
label
:
'商品一级分类'
,
name
:
'itemCategory'
,
index
:
'item_category'
,
width
:
80
},
{
label
:
'商品二级分类'
,
name
:
'itemCategorytwo'
,
index
:
'item_categorytwo'
,
width
:
80
},
{
label
:
'商品品名'
,
name
:
'itemDescritionId'
,
index
:
'item_descrition_id'
,
width
:
80
}]
});
});
...
...
@@ -21,8 +23,8 @@ let vm = new Vue({
data
:
{
showList
:
true
,
title
:
null
,
Goodstype
:
null
,
tbCfStationItem
:
{},
Goodstype
:
null
,
ruleValidate
:
{
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
...
...
@@ -116,14 +118,7 @@ let vm = new Vue({
},
handleReset
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
},
// getGoods:function (){
// console.log("bbb");
// $.get('../tbcfgoodstype/queryAll',function (res) {
// console.log(this,"aaa");
// console.log(res,"bbb");
// })
// }
}
},
created
(){
var
that
=
this
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论