Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
fc676668
提交
fc676668
authored
10月 16, 2019
作者:
张光耀
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加,商品一级分类,二级分类,品名管理
上级
4c7eefe4
隐藏空白字符变更
内嵌
并排
正在显示
23 个修改的文件
包含
1638 行增加
和
20 行删除
+1638
-20
TbCfDescripitonController.java
...va/com/platform/controller/TbCfDescripitonController.java
+109
-0
TbCfGoodstwotypeController.java
...a/com/platform/controller/TbCfGoodstwotypeController.java
+110
-0
TbCfDescripitonDao.java
...in/src/main/java/com/platform/dao/TbCfDescripitonDao.java
+13
-0
TbCfGoodstwotypeDao.java
...n/src/main/java/com/platform/dao/TbCfGoodstwotypeDao.java
+14
-0
TbCfDescripitonEntity.java
.../main/java/com/platform/entity/TbCfDescripitonEntity.java
+102
-0
TbCfGoodstwotypeEntity.java
...main/java/com/platform/entity/TbCfGoodstwotypeEntity.java
+68
-0
TbCfItemDetailEntity.java
...c/main/java/com/platform/entity/TbCfItemDetailEntity.java
+9
-7
TbCfStationItemEntity.java
.../main/java/com/platform/entity/TbCfStationItemEntity.java
+21
-4
GoodsTypeToGoodsTwo.java
...n/java/com/platform/entity/merge/GoodsTypeToGoodsTwo.java
+78
-0
StationToGoodsType.java
...in/java/com/platform/entity/merge/StationToGoodsType.java
+252
-0
TbCfDescripitonService.java
...ain/java/com/platform/service/TbCfDescripitonService.java
+71
-0
TbCfGoodstwotypeService.java
...in/java/com/platform/service/TbCfGoodstwotypeService.java
+79
-0
TbCfDescripitonServiceImpl.java
...com/platform/service/impl/TbCfDescripitonServiceImpl.java
+59
-0
TbCfGoodstwotypeServiceImpl.java
...om/platform/service/impl/TbCfGoodstwotypeServiceImpl.java
+69
-0
TbCfDescripitonDao.xml
...rc/main/resources/com/platform/dao/TbCfDescripitonDao.xml
+95
-0
TbCfGoodstwotypeDao.xml
...c/main/resources/com/platform/dao/TbCfGoodstwotypeDao.xml
+103
-0
TbCfItemDetailDao.xml
...src/main/resources/com/platform/dao/TbCfItemDetailDao.xml
+1
-1
TbCfStationItemDao.xml
...rc/main/resources/com/platform/dao/TbCfStationItemDao.xml
+11
-5
tbcfdescripiton.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
+67
-0
tbcfgoodstwotype.html
...in/src/main/webapp/WEB-INF/page/sys/tbcfgoodstwotype.html
+57
-0
tbcfstationitem.html
...min/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
+0
-3
tbcfdescripiton.js
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
+129
-0
tbcfgoodstwotype.js
platform-admin/src/main/webapp/js/sys/tbcfgoodstwotype.js
+121
-0
没有找到文件。
platform-admin/src/main/java/com/platform/controller/TbCfDescripitonController.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
controller
;
import
com.platform.entity.TbCfDescripitonEntity
;
import
com.platform.service.TbCfDescripitonService
;
import
com.platform.utils.PageUtils
;
import
com.platform.utils.Query
;
import
com.platform.utils.R
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.List
;
import
java.util.Map
;
/**
* Controller
*
* @author lipengjun
* @date 2019-10-16 11:32:22
*/
@Controller
@RequestMapping
(
"tbcfdescripiton"
)
public
class
TbCfDescripitonController
{
@Autowired
private
TbCfDescripitonService
tbCfDescripitonService
;
/**
* 查看列表
*/
@RequestMapping
(
"/list"
)
@RequiresPermissions
(
"tbcfdescripiton:list"
)
@ResponseBody
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
//查询列表数据
Query
query
=
new
Query
(
params
);
List
<
TbCfDescripitonEntity
>
tbCfDescripitonList
=
tbCfDescripitonService
.
queryList
(
query
);
int
total
=
tbCfDescripitonService
.
queryTotal
(
query
);
PageUtils
pageUtil
=
new
PageUtils
(
tbCfDescripitonList
,
total
,
query
.
getLimit
(),
query
.
getPage
());
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
/**
* 查看信息
*/
@RequestMapping
(
"/info/{goodstwotypeId}"
)
@RequiresPermissions
(
"tbcfdescripiton:info"
)
@ResponseBody
public
R
info
(
@PathVariable
(
"goodstwotypeId"
)
String
goodstwotypeId
)
{
TbCfDescripitonEntity
tbCfDescripiton
=
tbCfDescripitonService
.
queryObject
(
goodstwotypeId
);
return
R
.
ok
().
put
(
"tbCfDescripiton"
,
tbCfDescripiton
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
@RequiresPermissions
(
"tbcfdescripiton:save"
)
@ResponseBody
public
R
save
(
@RequestBody
TbCfDescripitonEntity
tbCfDescripiton
)
{
tbCfDescripitonService
.
save
(
tbCfDescripiton
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
@RequiresPermissions
(
"tbcfdescripiton:update"
)
@ResponseBody
public
R
update
(
@RequestBody
TbCfDescripitonEntity
tbCfDescripiton
)
{
tbCfDescripitonService
.
update
(
tbCfDescripiton
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
@RequiresPermissions
(
"tbcfdescripiton:delete"
)
@ResponseBody
public
R
delete
(
@RequestBody
String
[]
goodstwotypeIds
)
{
tbCfDescripitonService
.
deleteBatch
(
goodstwotypeIds
);
return
R
.
ok
();
}
/**
* 查看所有列表
*/
@RequestMapping
(
"/queryAll"
)
@ResponseBody
public
R
queryAll
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
List
<
TbCfDescripitonEntity
>
list
=
tbCfDescripitonService
.
queryList
(
params
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
}
platform-admin/src/main/java/com/platform/controller/TbCfGoodstwotypeController.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
controller
;
import
com.platform.entity.TbCfGoodstwotypeEntity
;
import
com.platform.entity.merge.GoodsTypeToGoodsTwo
;
import
com.platform.service.TbCfGoodstwotypeService
;
import
com.platform.utils.PageUtils
;
import
com.platform.utils.Query
;
import
com.platform.utils.R
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
java.util.List
;
import
java.util.Map
;
/**
* Controller
*
* @author lipengjun
* @date 2019-10-15 15:06:31
*/
@Controller
@RequestMapping
(
"tbcfgoodstwotype"
)
public
class
TbCfGoodstwotypeController
{
@Autowired
private
TbCfGoodstwotypeService
tbCfGoodstwotypeService
;
/**
* 查看列表
*/
@RequestMapping
(
"/list"
)
@RequiresPermissions
(
"tbcfgoodstwotype:list"
)
@ResponseBody
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
//查询列表数据
Query
query
=
new
Query
(
params
);
List
<
TbCfGoodstwotypeEntity
>
tbCfGoodstwotypeList
=
tbCfGoodstwotypeService
.
queryList
(
query
);
int
total
=
tbCfGoodstwotypeService
.
queryTotal
(
query
);
PageUtils
pageUtil
=
new
PageUtils
(
tbCfGoodstwotypeList
,
total
,
query
.
getLimit
(),
query
.
getPage
());
return
R
.
ok
().
put
(
"page"
,
pageUtil
);
}
/**
* 查看信息
*/
@RequestMapping
(
"/info/{goodstwotypeId}"
)
@RequiresPermissions
(
"tbcfgoodstwotype:info"
)
@ResponseBody
public
R
info
(
@PathVariable
(
"goodstwotypeId"
)
String
goodstwotypeId
)
{
GoodsTypeToGoodsTwo
tbCfGoodstwotype
=
tbCfGoodstwotypeService
.
queryGoodsTypeId
(
goodstwotypeId
);
return
R
.
ok
().
put
(
"tbCfGoodstwotype"
,
tbCfGoodstwotype
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
@RequiresPermissions
(
"tbcfgoodstwotype:save"
)
@ResponseBody
public
R
save
(
@RequestBody
TbCfGoodstwotypeEntity
tbCfGoodstwotype
)
{
tbCfGoodstwotypeService
.
save
(
tbCfGoodstwotype
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
@RequiresPermissions
(
"tbcfgoodstwotype:update"
)
@ResponseBody
public
R
update
(
@RequestBody
TbCfGoodstwotypeEntity
tbCfGoodstwotype
)
{
tbCfGoodstwotypeService
.
update
(
tbCfGoodstwotype
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
@RequiresPermissions
(
"tbcfgoodstwotype:delete"
)
@ResponseBody
public
R
delete
(
@RequestBody
String
[]
goodstwotypeIds
)
{
tbCfGoodstwotypeService
.
deleteBatch
(
goodstwotypeIds
);
return
R
.
ok
();
}
/**
* 查看所有列表
*/
@RequestMapping
(
"/queryAll"
)
@ResponseBody
public
R
queryAll
(
@RequestParam
Map
<
String
,
Object
>
params
)
{
List
<
TbCfGoodstwotypeEntity
>
list
=
tbCfGoodstwotypeService
.
queryList
(
params
);
return
R
.
ok
().
put
(
"list"
,
list
);
}
}
platform-admin/src/main/java/com/platform/dao/TbCfDescripitonDao.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
dao
;
import
com.platform.entity.TbCfDescripitonEntity
;
/**
* Dao
*
* @author lipengjun
* @date 2019-10-16 11:51:35
*/
public
interface
TbCfDescripitonDao
extends
BaseDao
<
TbCfDescripitonEntity
>
{
}
platform-admin/src/main/java/com/platform/dao/TbCfGoodstwotypeDao.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
dao
;
import
com.platform.entity.TbCfGoodstwotypeEntity
;
import
com.platform.entity.merge.GoodsTypeToGoodsTwo
;
/**
* Dao
*
* @author lipengjun
* @date 2019-10-15 15:06:31
*/
public
interface
TbCfGoodstwotypeDao
extends
BaseDao
<
TbCfGoodstwotypeEntity
>
{
GoodsTypeToGoodsTwo
queryGoodsTypeId
(
String
goodstype_id
);
}
platform-admin/src/main/java/com/platform/entity/TbCfDescripitonEntity.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 实体
* 表名 tb_cf_descripiton
*
* @author lipengjun
* @date 2019-10-16 11:32:22
*/
public
class
TbCfDescripitonEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 品名Id
*/
private
String
descripitionId
;
/**
* 品名名字
*/
private
String
descripitionName
;
/**
* 海关编码
*/
private
String
descripitionCode
;
/**
* 一级分类Id
*/
private
String
goodstypeId
;
/**
* 二级分类Id
*/
private
String
goodstwotypeId
;
/**
* 设置:品名Id
*/
public
void
setDescripitionId
(
String
descripitionId
)
{
this
.
descripitionId
=
descripitionId
;
}
/**
* 获取:品名Id
*/
public
String
getDescripitionId
()
{
return
descripitionId
;
}
/**
* 设置:品名名字
*/
public
void
setDescripitionName
(
String
descripitionName
)
{
this
.
descripitionName
=
descripitionName
;
}
/**
* 获取:品名名字
*/
public
String
getDescripitionName
()
{
return
descripitionName
;
}
/**
* 设置:海关编码
*/
public
void
setDescripitionCode
(
String
descripitionCode
)
{
this
.
descripitionCode
=
descripitionCode
;
}
/**
* 获取:海关编码
*/
public
String
getDescripitionCode
()
{
return
descripitionCode
;
}
/**
* 设置:一级分类Id
*/
public
void
setGoodstypeId
(
String
goodstypeId
)
{
this
.
goodstypeId
=
goodstypeId
;
}
/**
* 获取:一级分类Id
*/
public
String
getGoodstypeId
()
{
return
goodstypeId
;
}
/**
* 设置:二级分类Id
*/
public
void
setGoodstwotypeId
(
String
goodstwotypeId
)
{
this
.
goodstwotypeId
=
goodstwotypeId
;
}
/**
* 获取:二级分类Id
*/
public
String
getGoodstwotypeId
()
{
return
goodstwotypeId
;
}
}
platform-admin/src/main/java/com/platform/entity/TbCfGoodstwotypeEntity.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 实体
* 表名 tb_cf_goodstwotype
*
* @author lipengjun
* @date 2019-10-15 15:06:31
*/
public
class
TbCfGoodstwotypeEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 商品二级分类Id
*/
private
String
goodstwotypeId
;
/**
* 商品二级分类标题
*/
private
String
goodstwotypeTitle
;
/**
* 商品一级分类id
*/
private
String
goodstypeId
;
/**
* 设置:商品二级分类Id
*/
public
void
setGoodstwotypeId
(
String
goodstwotypeId
)
{
this
.
goodstwotypeId
=
goodstwotypeId
;
}
/**
* 获取:商品二级分类Id
*/
public
String
getGoodstwotypeId
()
{
return
goodstwotypeId
;
}
/**
* 设置:商品二级分类标题
*/
public
void
setGoodstwotypeTitle
(
String
goodstwotypeTitle
)
{
this
.
goodstwotypeTitle
=
goodstwotypeTitle
;
}
/**
* 获取:商品二级分类标题
*/
public
String
getGoodstwotypeTitle
()
{
return
goodstwotypeTitle
;
}
/**
* 设置:商品一级分类id
*/
public
void
setGoodstypeId
(
String
goodstypeId
)
{
this
.
goodstypeId
=
goodstypeId
;
}
/**
* 获取:商品一级分类id
*/
public
String
getGoodstypeId
()
{
return
goodstypeId
;
}
}
platform-admin/src/main/java/com/platform/entity/TbCfItemDetailEntity.java
浏览文件 @
fc676668
...
...
@@ -9,7 +9,7 @@ import java.util.Date;
* 表名 tb_cf_item_detail
*
* @author lipengjun
* @date 2019-
09-20 11:03:38
* @date 2019-
10-15 15:07:27
*/
public
class
TbCfItemDetailEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -19,7 +19,7 @@ public class TbCfItemDetailEntity implements Serializable {
*/
private
String
itemId
;
/**
* 商品
id,源平台的id,不一定有
* 商品
url
*/
private
String
sourceItemId
;
/**
...
...
@@ -47,7 +47,7 @@ public class TbCfItemDetailEntity implements Serializable {
*/
private
BigDecimal
itemPrice
;
/**
* 商品分类
* 商品分类
一级分类
*/
private
String
itemCategory
;
/**
...
...
@@ -71,6 +71,7 @@ public class TbCfItemDetailEntity implements Serializable {
*/
private
Date
createTime
;
/**
* 设置:商品表记录id
*/
...
...
@@ -85,14 +86,14 @@ public class TbCfItemDetailEntity implements Serializable {
return
itemId
;
}
/**
* 设置:商品
id,源平台的id,不一定有
* 设置:商品
url
*/
public
void
setSourceItemId
(
String
sourceItemId
)
{
this
.
sourceItemId
=
sourceItemId
;
}
/**
* 获取:商品
id,源平台的id,不一定有
* 获取:商品
url
*/
public
String
getSourceItemId
()
{
return
sourceItemId
;
...
...
@@ -176,14 +177,14 @@ public class TbCfItemDetailEntity implements Serializable {
return
itemPrice
;
}
/**
* 设置:商品分类
* 设置:商品分类
一级分类
*/
public
void
setItemCategory
(
String
itemCategory
)
{
this
.
itemCategory
=
itemCategory
;
}
/**
* 获取:商品分类
* 获取:商品分类
一级分类
*/
public
String
getItemCategory
()
{
return
itemCategory
;
...
...
@@ -253,4 +254,5 @@ public class TbCfItemDetailEntity implements Serializable {
public
Date
getCreateTime
()
{
return
createTime
;
}
}
platform-admin/src/main/java/com/platform/entity/TbCfStationItemEntity.java
浏览文件 @
fc676668
...
...
@@ -8,7 +8,7 @@ import java.util.Date;
* 表名 tb_cf_station_item
*
* @author lipengjun
* @date 2019-
09-20 11:03:38
* @date 2019-
10-15 16:22:59
*/
public
class
TbCfStationItemEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -30,7 +30,7 @@ public class TbCfStationItemEntity implements Serializable {
*/
private
String
itemBrief
;
/**
* 商品分类
* 商品
一级
分类
*/
private
String
itemCategory
;
/**
...
...
@@ -57,6 +57,10 @@ public class TbCfStationItemEntity implements Serializable {
* 创建日期
*/
private
Date
createTime
;
/**
* 商品二级分类
*/
private
String
itemCategorytwo
;
/**
* 设置:商品id
...
...
@@ -111,14 +115,14 @@ public class TbCfStationItemEntity implements Serializable {
return
itemBrief
;
}
/**
* 设置:商品分类
* 设置:商品
一级
分类
*/
public
void
setItemCategory
(
String
itemCategory
)
{
this
.
itemCategory
=
itemCategory
;
}
/**
* 获取:商品分类
* 获取:商品
一级
分类
*/
public
String
getItemCategory
()
{
return
itemCategory
;
...
...
@@ -201,4 +205,17 @@ public class TbCfStationItemEntity implements Serializable {
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:商品二级分类
*/
public
void
setItemCategorytwo
(
String
itemCategorytwo
)
{
this
.
itemCategorytwo
=
itemCategorytwo
;
}
/**
* 获取:商品二级分类
*/
public
String
getItemCategorytwo
()
{
return
itemCategorytwo
;
}
}
platform-admin/src/main/java/com/platform/entity/merge/GoodsTypeToGoodsTwo.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
entity
.
merge
;
import
java.io.Serializable
;
public
class
GoodsTypeToGoodsTwo
implements
Serializable
{
/**
* 商品二级分类Id
*/
private
String
goodstwotypeId
;
/**
* 商品二级分类标题
*/
private
String
goodstwotypeTitle
;
/**
* 商品一级分类id
*/
private
String
goodstypeId
;
/**
* 商品分类标题
*/
private
String
goodstypeTitle
;
/**
* 设置:商品二级分类Id
*/
public
void
setGoodstwotypeId
(
String
goodstwotypeId
)
{
this
.
goodstwotypeId
=
goodstwotypeId
;
}
/**
* 获取:商品二级分类Id
*/
public
String
getGoodstwotypeId
()
{
return
goodstwotypeId
;
}
/**
* 设置:商品二级分类标题
*/
public
void
setGoodstwotypeTitle
(
String
goodstwotypeTitle
)
{
this
.
goodstwotypeTitle
=
goodstwotypeTitle
;
}
/**
* 获取:商品二级分类标题
*/
public
String
getGoodstwotypeTitle
()
{
return
goodstwotypeTitle
;
}
/**
* 设置:商品一级分类id
*/
public
void
setGoodstypeId
(
String
goodstypeId
)
{
this
.
goodstypeId
=
goodstypeId
;
}
/**
* 获取:商品一级分类id
*/
public
String
getGoodstypeId
()
{
return
goodstypeId
;
}
/**
* 设置:商品分类标题
*/
public
void
setGoodstypeTitle
(
String
goodstypeTitle
)
{
this
.
goodstypeTitle
=
goodstypeTitle
;
}
/**
* 获取:商品分类标题
*/
public
String
getGoodstypeTitle
()
{
return
goodstypeTitle
;
}
}
platform-admin/src/main/java/com/platform/entity/merge/StationToGoodsType.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
entity
.
merge
;
import
java.util.Date
;
public
class
StationToGoodsType
{
/**
* 商品id
*/
private
String
itemId
;
/**
* 商品编号
*/
private
String
itemCode
;
/**
* 商品名字
*/
private
String
itemName
;
/**
* 商品标题简介
*/
private
String
itemBrief
;
/**
* 商品一级分类
*/
private
String
itemCategory
;
/**
* 商品链接
*/
private
String
itemUrl
;
/**
* 商品图片
*/
private
String
itemImg
;
/**
* 所属平台
*/
private
String
platformCode
;
/**
* 平台名
*/
private
String
platformName
;
/**
* 启用状态
*/
private
Integer
enableFlag
;
/**
* 创建日期
*/
private
Date
createTime
;
/**
* 商品二级分类
*/
private
String
itemCategorytwo
;
/**
* 商品分类Id
*/
private
String
goodstypeId
;
/**
* 商品分类标题
*/
private
String
goodstypeTitle
;
/**
* 设置:商品id
*/
public
void
setItemId
(
String
itemId
)
{
this
.
itemId
=
itemId
;
}
/**
* 获取:商品id
*/
public
String
getItemId
()
{
return
itemId
;
}
/**
* 设置:商品编号
*/
public
void
setItemCode
(
String
itemCode
)
{
this
.
itemCode
=
itemCode
;
}
/**
* 获取:商品编号
*/
public
String
getItemCode
()
{
return
itemCode
;
}
/**
* 设置:商品名字
*/
public
void
setItemName
(
String
itemName
)
{
this
.
itemName
=
itemName
;
}
/**
* 获取:商品名字
*/
public
String
getItemName
()
{
return
itemName
;
}
/**
* 设置:商品标题简介
*/
public
void
setItemBrief
(
String
itemBrief
)
{
this
.
itemBrief
=
itemBrief
;
}
/**
* 获取:商品标题简介
*/
public
String
getItemBrief
()
{
return
itemBrief
;
}
/**
* 设置:商品一级分类
*/
public
void
setItemCategory
(
String
itemCategory
)
{
this
.
itemCategory
=
itemCategory
;
}
/**
* 获取:商品一级分类
*/
public
String
getItemCategory
()
{
return
itemCategory
;
}
/**
* 设置:商品链接
*/
public
void
setItemUrl
(
String
itemUrl
)
{
this
.
itemUrl
=
itemUrl
;
}
/**
* 获取:商品链接
*/
public
String
getItemUrl
()
{
return
itemUrl
;
}
/**
* 设置:商品图片
*/
public
void
setItemImg
(
String
itemImg
)
{
this
.
itemImg
=
itemImg
;
}
/**
* 获取:商品图片
*/
public
String
getItemImg
()
{
return
itemImg
;
}
/**
* 设置:所属平台
*/
public
void
setPlatformCode
(
String
platformCode
)
{
this
.
platformCode
=
platformCode
;
}
/**
* 获取:所属平台
*/
public
String
getPlatformCode
()
{
return
platformCode
;
}
/**
* 设置:平台名
*/
public
void
setPlatformName
(
String
platformName
)
{
this
.
platformName
=
platformName
;
}
/**
* 获取:平台名
*/
public
String
getPlatformName
()
{
return
platformName
;
}
/**
* 设置:启用状态
*/
public
void
setEnableFlag
(
Integer
enableFlag
)
{
this
.
enableFlag
=
enableFlag
;
}
/**
* 获取:启用状态
*/
public
Integer
getEnableFlag
()
{
return
enableFlag
;
}
/**
* 设置:创建日期
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 获取:创建日期
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:商品二级分类
*/
public
void
setItemCategorytwo
(
String
itemCategorytwo
)
{
this
.
itemCategorytwo
=
itemCategorytwo
;
}
/**
* 获取:商品二级分类
*/
public
String
getItemCategorytwo
()
{
return
itemCategorytwo
;
}
/**
* 设置:商品分类Id
*/
public
void
setGoodstypeId
(
String
goodstypeId
)
{
this
.
goodstypeId
=
goodstypeId
;
}
/**
* 获取:商品分类Id
*/
public
String
getGoodstypeId
()
{
return
goodstypeId
;
}
/**
* 设置:商品分类标题
*/
public
void
setGoodstypeTitle
(
String
goodstypeTitle
)
{
this
.
goodstypeTitle
=
goodstypeTitle
;
}
/**
* 获取:商品分类标题
*/
public
String
getGoodstypeTitle
()
{
return
goodstypeTitle
;
}
}
platform-admin/src/main/java/com/platform/service/TbCfDescripitonService.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfDescripitonEntity
;
import
java.util.List
;
import
java.util.Map
;
/**
* Service接口
*
* @author lipengjun
* @date 2019-10-16 11:51:35
*/
public
interface
TbCfDescripitonService
{
/**
* 根据主键查询实体
*
* @param id 主键
* @return 实体
*/
TbCfDescripitonEntity
queryObject
(
String
descripitionId
);
/**
* 分页查询
*
* @param map 参数
* @return list
*/
List
<
TbCfDescripitonEntity
>
queryList
(
Map
<
String
,
Object
>
map
);
/**
* 分页统计总数
*
* @param map 参数
* @return 总数
*/
int
queryTotal
(
Map
<
String
,
Object
>
map
);
/**
* 保存实体
*
* @param tbCfDescripiton 实体
* @return 保存条数
*/
int
save
(
TbCfDescripitonEntity
tbCfDescripiton
);
/**
* 根据主键更新实体
*
* @param tbCfDescripiton 实体
* @return 更新条数
*/
int
update
(
TbCfDescripitonEntity
tbCfDescripiton
);
/**
* 根据主键删除
*
* @param descripitionId
* @return 删除条数
*/
int
delete
(
String
descripitionId
);
/**
* 根据主键批量删除
*
* @param descripitionIds
* @return 删除条数
*/
int
deleteBatch
(
String
[]
descripitionIds
);
}
platform-admin/src/main/java/com/platform/service/TbCfGoodstwotypeService.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
service
;
import
com.platform.entity.TbCfGoodstwotypeEntity
;
import
com.platform.entity.merge.GoodsTypeToGoodsTwo
;
import
java.util.List
;
import
java.util.Map
;
/**
* Service接口
*
* @author lipengjun
* @date 2019-10-15 15:06:31
*/
public
interface
TbCfGoodstwotypeService
{
/**
* 根据主键查询实体
*
* @param id 主键
* @return 实体
*/
TbCfGoodstwotypeEntity
queryObject
(
String
goodstwotypeId
);
/**
* 分页查询
*
* @param map 参数
* @return list
*/
List
<
TbCfGoodstwotypeEntity
>
queryList
(
Map
<
String
,
Object
>
map
);
/**
* 分页统计总数
*
* @param map 参数
* @return 总数
*/
int
queryTotal
(
Map
<
String
,
Object
>
map
);
/**
* 保存实体
*
* @param tbCfGoodstwotype 实体
* @return 保存条数
*/
int
save
(
TbCfGoodstwotypeEntity
tbCfGoodstwotype
);
/**
* 根据主键更新实体
*
* @param tbCfGoodstwotype 实体
* @return 更新条数
*/
int
update
(
TbCfGoodstwotypeEntity
tbCfGoodstwotype
);
/**
* 根据主键删除
*
* @param goodstwotypeId
* @return 删除条数
*/
int
delete
(
String
goodstwotypeId
);
/**
* 根据主键批量删除
*
* @param goodstwotypeIds
* @return 删除条数
*/
int
deleteBatch
(
String
[]
goodstwotypeIds
);
/**
* 根据二级级分类Id查询
* @param goodstype_id
* @return
*/
GoodsTypeToGoodsTwo
queryGoodsTypeId
(
String
goodstype_id
);
}
platform-admin/src/main/java/com/platform/service/impl/TbCfDescripitonServiceImpl.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.TbCfDescripitonDao
;
import
com.platform.entity.TbCfDescripitonEntity
;
import
com.platform.service.TbCfDescripitonService
;
import
com.platform.utils.IdUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* Service实现类
*
* @author lipengjun
* @date 2019-10-16 11:51:35
*/
@Service
(
"tbCfDescripitonService"
)
public
class
TbCfDescripitonServiceImpl
implements
TbCfDescripitonService
{
@Autowired
private
TbCfDescripitonDao
tbCfDescripitonDao
;
@Override
public
TbCfDescripitonEntity
queryObject
(
String
descripitionId
)
{
return
tbCfDescripitonDao
.
queryObject
(
descripitionId
);
}
@Override
public
List
<
TbCfDescripitonEntity
>
queryList
(
Map
<
String
,
Object
>
map
)
{
return
tbCfDescripitonDao
.
queryList
(
map
);
}
@Override
public
int
queryTotal
(
Map
<
String
,
Object
>
map
)
{
return
tbCfDescripitonDao
.
queryTotal
(
map
);
}
@Override
public
int
save
(
TbCfDescripitonEntity
tbCfDescripiton
)
{
tbCfDescripiton
.
setDescripitionId
(
IdUtil
.
createIdbyUUID
());
return
tbCfDescripitonDao
.
save
(
tbCfDescripiton
);
}
@Override
public
int
update
(
TbCfDescripitonEntity
tbCfDescripiton
)
{
return
tbCfDescripitonDao
.
update
(
tbCfDescripiton
);
}
@Override
public
int
delete
(
String
descripitionId
)
{
return
tbCfDescripitonDao
.
delete
(
descripitionId
);
}
@Override
public
int
deleteBatch
(
String
[]
descripitionIds
)
{
return
tbCfDescripitonDao
.
deleteBatch
(
descripitionIds
);
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfGoodstwotypeServiceImpl.java
0 → 100644
浏览文件 @
fc676668
package
com
.
platform
.
service
.
impl
;
import
com.platform.dao.TbCfGoodstwotypeDao
;
import
com.platform.entity.TbCfGoodstwotypeEntity
;
import
com.platform.entity.merge.GoodsTypeToGoodsTwo
;
import
com.platform.service.TbCfGoodstwotypeService
;
import
com.platform.utils.IdUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* Service实现类
*
* @author lipengjun
* @date 2019-10-15 15:06:31
*/
@Service
(
"tbCfGoodstwotypeService"
)
public
class
TbCfGoodstwotypeServiceImpl
implements
TbCfGoodstwotypeService
{
@Autowired
private
TbCfGoodstwotypeDao
tbCfGoodstwotypeDao
;
@Override
public
TbCfGoodstwotypeEntity
queryObject
(
String
goodstwotypeId
)
{
return
tbCfGoodstwotypeDao
.
queryObject
(
goodstwotypeId
);
}
@Override
public
List
<
TbCfGoodstwotypeEntity
>
queryList
(
Map
<
String
,
Object
>
map
)
{
return
tbCfGoodstwotypeDao
.
queryList
(
map
);
}
@Override
public
int
queryTotal
(
Map
<
String
,
Object
>
map
)
{
return
tbCfGoodstwotypeDao
.
queryTotal
(
map
);
}
@Override
public
int
save
(
TbCfGoodstwotypeEntity
tbCfGoodstwotype
)
{
tbCfGoodstwotype
.
setGoodstwotypeId
(
IdUtil
.
createIdbyUUID
());
return
tbCfGoodstwotypeDao
.
save
(
tbCfGoodstwotype
);
}
@Override
public
int
update
(
TbCfGoodstwotypeEntity
tbCfGoodstwotype
)
{
return
tbCfGoodstwotypeDao
.
update
(
tbCfGoodstwotype
);
}
@Override
public
int
delete
(
String
goodstwotypeId
)
{
return
tbCfGoodstwotypeDao
.
delete
(
goodstwotypeId
);
}
@Override
public
int
deleteBatch
(
String
[]
goodstwotypeIds
)
{
return
tbCfGoodstwotypeDao
.
deleteBatch
(
goodstwotypeIds
);
}
/**
* 根据二级分类Id进行查询修改
* @param goodstype_id
* @return
*/
public
GoodsTypeToGoodsTwo
queryGoodsTypeId
(
String
goodstype_id
)
{
return
tbCfGoodstwotypeDao
.
queryGoodsTypeId
(
goodstype_id
);
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfDescripitonDao.xml
0 → 100644
浏览文件 @
fc676668
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.platform.dao.TbCfDescripitonDao"
>
<resultMap
type=
"com.platform.entity.TbCfDescripitonEntity"
id=
"tbCfDescripitonMap"
>
<result
property=
"descripitionId"
column=
"descripition_id"
/>
<result
property=
"descripitionName"
column=
"descripition_name"
/>
<result
property=
"descripitionCode"
column=
"descripition_code"
/>
<result
property=
"goodstypeId"
column=
"goodstype_id"
/>
<result
property=
"goodstwotypeId"
column=
"goodstwotype_id"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfDescripitonEntity"
>
select
`descripition_id`,
`descripition_name`,
`descripition_code`,
`goodstype_id`,
`goodstwotype_id`
from tb_cf_descripiton
where descripition_id = #{id}
</select>
<select
id=
"queryList"
resultType=
"com.platform.entity.TbCfDescripitonEntity"
>
select
`descripition_id`,
`descripition_name`,
`descripition_code`,
`goodstype_id`,
`goodstwotype_id`
from tb_cf_descripiton
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by descripition_id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_descripiton
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
</select>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfDescripitonEntity"
>
insert into tb_cf_descripiton(
`descripition_id`,
`descripition_name`,
`descripition_code`,
`goodstype_id`,
`goodstwotype_id`)
values(
#{descripitionId},
#{descripitionName},
#{descripitionCode},
#{goodstypeId},
#{goodstwotypeId})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfDescripitonEntity"
>
update tb_cf_descripiton
<set>
<if
test=
"descripitionName != null"
>
`descripition_name` = #{descripitionName},
</if>
<if
test=
"descripitionCode != null"
>
`descripition_code` = #{descripitionCode},
</if>
<if
test=
"goodstypeId != null"
>
`goodstype_id` = #{goodstypeId},
</if>
<if
test=
"goodstwotypeId != null"
>
`goodstwotype_id` = #{goodstwotypeId}
</if>
</set>
where descripition_id = #{descripitionId}
</update>
<delete
id=
"delete"
>
delete from tb_cf_descripiton where descripition_id = #{value}
</delete>
<delete
id=
"deleteBatch"
>
delete from tb_cf_descripiton where descripition_id in
<foreach
item=
"descripitionId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{descripitionId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
platform-admin/src/main/resources/com/platform/dao/TbCfGoodstwotypeDao.xml
0 → 100644
浏览文件 @
fc676668
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.platform.dao.TbCfGoodstwotypeDao"
>
<resultMap
type=
"com.platform.entity.TbCfGoodstwotypeEntity"
id=
"tbCfGoodstwotypeMap"
>
<result
property=
"goodstwotypeId"
column=
"goodstwotype_id"
/>
<result
property=
"goodstwotypeTitle"
column=
"goodstwotype_title"
/>
<result
property=
"goodstypeId"
column=
"goodstype_id"
/>
</resultMap>
<resultMap
type=
"com.platform.entity.merge.GoodsTypeToGoodsTwo"
id=
"GoodsToTwo"
>
<result
property=
"goodstwotypeId"
column=
"goodstwotype_id"
/>
<result
property=
"goodstwotypeTitle"
column=
"goodstwotype_title"
/>
<result
property=
"goodstypeId"
column=
"goodstype_id"
/>
<result
property=
"goodstypeTitle"
column=
"goodstype_title"
/>
</resultMap>
<select
id=
"queryGoodsTypeId"
resultMap=
"GoodsToTwo"
>
SELECT
tw.`goodstwotype_id`,
tw.`goodstwotype_title`,
ds.`goodstype_id`,
ds.`goodstype_title`
FROM tb_cf_goodstwotype tw
INNER JOIN tb_cf_goodstype ds ON ds.goodstype_id = tw.goodstype_id
where tw.goodstwotype_id = #{id}
</select>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfGoodstwotypeEntity"
>
select
`goodstwotype_id`,
`goodstwotype_title`,
`goodstype_id`
from tb_cf_goodstwotype
where goodstwotype_id = #{id}
</select>
<select
id=
"queryList"
resultMap=
"GoodsToTwo"
>
SELECT
tw.`goodstwotype_id`,
tw.`goodstwotype_title`,
ds.`goodstype_id`,
ds.`goodstype_title`
FROM tb_cf_goodstwotype tw
INNER JOIN tb_cf_goodstype ds ON ds.goodstype_id = tw.goodstype_id
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by goodstwotype_id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from tb_cf_goodstwotype
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
AND name LIKE concat('%',#{name},'%')
</if>
</select>
<insert
id=
"save"
parameterType=
"com.platform.entity.TbCfGoodstwotypeEntity"
>
insert into tb_cf_goodstwotype(
`goodstwotype_id`,
`goodstwotype_title`,
`goodstype_id`)
values(
#{goodstwotypeId},
#{goodstwotypeTitle},
#{goodstypeId})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfGoodstwotypeEntity"
>
update tb_cf_goodstwotype
<set>
<if
test=
"goodstwotypeTitle != null"
>
`goodstwotype_title` = #{goodstwotypeTitle},
</if>
<if
test=
"goodstypeId != null"
>
`goodstype_id` = #{goodstypeId}
</if>
</set>
where goodstwotype_id = #{goodstwotypeId}
</update>
<delete
id=
"delete"
>
delete from tb_cf_goodstwotype where goodstwotype_id = #{value}
</delete>
<delete
id=
"deleteBatch"
>
delete from tb_cf_goodstwotype where goodstwotype_id in
<foreach
item=
"goodstwotypeId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{goodstwotypeId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
platform-admin/src/main/resources/com/platform/dao/TbCfItemDetailDao.xml
浏览文件 @
fc676668
...
...
@@ -130,7 +130,7 @@
<if
test=
"shopId != null"
>
`shop_id` = #{shopId},
</if>
<if
test=
"shopName != null"
>
`shop_name` = #{shopName},
</if>
<if
test=
"shopUrl != null"
>
`shop_url` = #{shopUrl},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime}
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime}
</if>
</set>
where item_id = #{itemId}
</update>
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfStationItemDao.xml
浏览文件 @
fc676668
...
...
@@ -15,6 +15,7 @@
<result
property=
"platformName"
column=
"platform_name"
/>
<result
property=
"enableFlag"
column=
"enable_flag"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"itemCategorytwo"
column=
"item_categorytwo"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfStationItemEntity"
>
...
...
@@ -29,7 +30,8 @@
`platform_code`,
`platform_name`,
`enable_flag`,
`create_time`
`create_time`,
`item_categorytwo`
from tb_cf_station_item
where item_id = #{id}
</select>
...
...
@@ -46,7 +48,8 @@
`platform_code`,
`platform_name`,
`enable_flag`,
`create_time`
`create_time`,
`item_categorytwo`
from tb_cf_station_item
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -85,7 +88,8 @@
`platform_code`,
`platform_name`,
`enable_flag`,
`create_time`)
`create_time`,
`item_categorytwo`)
values(
#{itemId},
#{itemCode},
...
...
@@ -97,7 +101,8 @@
#{platformCode},
#{platformName},
#{enableFlag},
#{createTime})
#{createTime},
#{itemCategorytwo})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfStationItemEntity"
>
...
...
@@ -112,7 +117,8 @@
<if
test=
"platformCode != null"
>
`platform_code` = #{platformCode},
</if>
<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=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"itemCategorytwo != null"
>
`item_categorytwo` = #{itemCategorytwo}
</if>
</set>
where item_id = #{itemId}
</update>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfdescripiton.html
0 → 100644
浏览文件 @
fc676668
<!DOCTYPE html>
<html>
<head>
<title></title>
#parse("sys/header.html")
</head>
<body>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
<div
v-show=
"showList"
style=
"height: 100%;"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
<i-input
v-model=
"q.name"
@
on-enter=
"query"
placeholder=
"名称"
/>
</i-col>
<i-button
@
click=
"query"
>
查询
</i-button>
<i-button
@
click=
"reloadSearch"
>
重置
</i-button>
</div>
<div
class=
"buttons-group"
>
#if($shiro.hasPermission("tbcfdescripiton:save"))
<i-button
type=
"info"
@
click=
"add"
><i
class=
"fa fa-plus"
></i>
新增
</i-button>
#end
#if($shiro.hasPermission("tbcfdescripiton:update"))
<i-button
type=
"warning"
@
click=
"update"
><i
class=
"fa fa-pencil-square-o"
></i>
修改
</i-button>
#end
#if($shiro.hasPermission("tbcfdescripiton:delete"))
<i-button
type=
"error"
@
click=
"del"
><i
class=
"fa fa-trash-o"
></i>
删除
</i-button>
#end
</div>
</Row>
<table
id=
"jqGrid"
></table>
</div>
<Card
v-show=
"!showList"
>
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"tbCfDescripiton"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"品名名字"
prop=
"descripitionName"
>
<i-input
v-model=
"tbCfDescripiton.descripitionName"
placeholder=
"品名名字"
/>
</Form-item>
<Form-item
label=
"海关编码"
prop=
"descripitionCode"
>
<i-input
v-model=
"tbCfDescripiton.descripitionCode"
placeholder=
"海关编码"
/>
</Form-item>
<Form-item
label=
"商品一级分类"
prop=
"goodstypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstypeId"
>
<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=
"goodstwotypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfDescripiton.goodstwotypeId"
>
<i-option
v-for=
"(el,i) in GoodstypeTwo"
:key =
'i'
:value=
"el.goodstwotypeId"
>
{{el.goodstwotypeTitle}}
</i-option>
</i-select>
</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>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
重置
</i-button>
</Form-item>
</i-form>
</Card>
</div>
<script
src=
"${rc.contextPath}/js/sys/tbcfdescripiton.js?_${date.systemTime}"
></script>
</body>
</html>
\ No newline at end of file
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfgoodstwotype.html
0 → 100644
浏览文件 @
fc676668
<!DOCTYPE html>
<html>
<head>
<title></title>
#parse("sys/header.html")
</head>
<body>
<div
id=
"rrapp"
v-cloak
style=
"height: calc(100% - 15px);"
>
<div
v-show=
"showList"
style=
"height: 100%;"
>
<Row
:gutter=
"16"
>
<div
class=
"search-group"
>
<i-col
span=
"4"
>
<i-input
v-model=
"q.name"
@
on-enter=
"query"
placeholder=
"名称"
/>
</i-col>
<i-button
@
click=
"query"
>
查询
</i-button>
<i-button
@
click=
"reloadSearch"
>
重置
</i-button>
</div>
<div
class=
"buttons-group"
>
#if($shiro.hasPermission("tbcfgoodstwotype:save"))
<i-button
type=
"info"
@
click=
"add"
><i
class=
"fa fa-plus"
></i>
新增
</i-button>
#end
#if($shiro.hasPermission("tbcfgoodstwotype:update"))
<i-button
type=
"warning"
@
click=
"update"
><i
class=
"fa fa-pencil-square-o"
></i>
修改
</i-button>
#end
#if($shiro.hasPermission("tbcfgoodstwotype:delete"))
<i-button
type=
"error"
@
click=
"del"
><i
class=
"fa fa-trash-o"
></i>
删除
</i-button>
#end
</div>
</Row>
<table
id=
"jqGrid"
></table>
</div>
<Card
v-show=
"!showList"
>
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"tbCfGoodstwotype"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"商品一级分类"
prop=
"goodstypeId"
>
<i-select
placeholder=
"请选择"
v-model=
"tbCfGoodstwotype.goodstypeId"
>
<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=
"goodstwotypeTitle"
>
<i-input
v-model=
"tbCfGoodstwotype.goodstwotypeTitle"
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>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
重置
</i-button>
</Form-item>
</i-form>
</Card>
</div>
<script
src=
"${rc.contextPath}/js/sys/tbcfgoodstwotype.js?_${date.systemTime}"
></script>
</body>
</html>
\ No newline at end of file
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitem.html
浏览文件 @
fc676668
...
...
@@ -47,9 +47,6 @@
<i-option
v-for=
"(el,i) in Goodstype"
:key =
'i'
:value=
"el.goodstypeId"
>
{{el.goodstypeTitle}}
</i-option>
<!-- <i-option value="beijing">北京市</i-option>-->
<!-- <i-option value="shanghai">上海市</i-option>-->
<!-- <i-option value="shenzhen">深圳市</i-option>-->
</i-select>
</Form-item>
...
...
platform-admin/src/main/webapp/js/sys/tbcfdescripiton.js
0 → 100644
浏览文件 @
fc676668
$
(
function
()
{
$
(
"#jqGrid"
).
Grid
({
url
:
'../tbcfdescripiton/list'
,
colModel
:
[
{
label
:
'descripitionId'
,
name
:
'descripitionId'
,
index
:
'descripition_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'品名名字'
,
name
:
'descripitionName'
,
index
:
'descripition_name'
,
width
:
80
},
{
label
:
'海关编码'
,
name
:
'descripitionCode'
,
index
:
'descripition_code'
,
width
:
80
},
{
label
:
'一级分类Id'
,
name
:
'goodstypeId'
,
index
:
'goodstype_id'
,
width
:
80
},
{
label
:
'二级分类Id'
,
name
:
'goodstwotypeId'
,
index
:
'goodstwotype_id'
,
width
:
80
}]
});
});
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
data
:
{
showList
:
true
,
title
:
null
,
tbCfDescripiton
:
{},
Goodstype
:
null
,
GoodstypeTwo
:
null
,
ruleValidate
:
{
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
]
},
q
:
{
name
:
''
}
},
methods
:
{
query
:
function
()
{
vm
.
reload
();
},
add
:
function
()
{
vm
.
showList
=
false
;
vm
.
title
=
"新增"
;
vm
.
tbCfDescripiton
=
{};
},
update
:
function
(
event
)
{
let
descripitionId
=
getSelectedRow
(
"#jqGrid"
);
if
(
descripitionId
==
null
)
{
return
;
}
vm
.
showList
=
false
;
vm
.
title
=
"修改"
;
vm
.
getInfo
(
descripitionId
);
},
saveOrUpdate
:
function
(
event
)
{
let
url
=
vm
.
tbCfDescripiton
.
descripitionId
==
null
?
"../tbcfdescripiton/save"
:
"../tbcfdescripiton/update"
;
Ajax
.
request
({
url
:
url
,
params
:
JSON
.
stringify
(
vm
.
tbCfDescripiton
),
type
:
"POST"
,
contentType
:
"application/json"
,
successCallback
:
function
(
r
)
{
alert
(
'操作成功'
,
function
(
index
)
{
vm
.
reload
();
});
}
});
},
del
:
function
(
event
)
{
let
descripitionIds
=
getSelectedRows
(
"#jqGrid"
);
if
(
descripitionIds
==
null
){
return
;
}
confirm
(
'确定要删除选中的记录?'
,
function
()
{
Ajax
.
request
({
url
:
"../tbcfdescripiton/delete"
,
params
:
JSON
.
stringify
(
descripitionIds
),
type
:
"POST"
,
contentType
:
"application/json"
,
successCallback
:
function
()
{
alert
(
'操作成功'
,
function
(
index
)
{
vm
.
reload
();
});
}
});
});
},
getInfo
:
function
(
descripitionId
){
Ajax
.
request
({
url
:
"../tbcfdescripiton/info/"
+
descripitionId
,
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
tbCfDescripiton
=
r
.
tbCfDescripiton
;
}
});
},
reload
:
function
(
event
)
{
vm
.
showList
=
true
;
let
page
=
$
(
"#jqGrid"
).
jqGrid
(
'getGridParam'
,
'page'
);
$
(
"#jqGrid"
).
jqGrid
(
'setGridParam'
,
{
postData
:
{
'name'
:
vm
.
q
.
name
},
page
:
page
}).
trigger
(
"reloadGrid"
);
vm
.
handleReset
(
'formValidate'
);
},
reloadSearch
:
function
()
{
vm
.
q
=
{
name
:
''
};
vm
.
reload
();
},
handleSubmit
:
function
(
name
)
{
handleSubmitValidate
(
this
,
name
,
function
()
{
vm
.
saveOrUpdate
()
});
},
handleReset
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
}
},
created
()
{
var
that
=
this
$
.
get
(
'../tbcfgoodstype/queryAll'
,
function
(
res
)
{
// console.log(that,"this");
that
.
Goodstype
=
JSON
.
parse
(
res
).
list
;
// console.log(that.Goodstype);
});
$
.
get
(
'../tbcfgoodstwotype/queryAll'
,
function
(
res
)
{
// console.log(that,"this");
that
.
GoodstypeTwo
=
JSON
.
parse
(
res
).
list
;
// console.log(that.Goodstype);
});
}
});
\ No newline at end of file
platform-admin/src/main/webapp/js/sys/tbcfgoodstwotype.js
0 → 100644
浏览文件 @
fc676668
$
(
function
()
{
$
(
"#jqGrid"
).
Grid
({
url
:
'../tbcfgoodstwotype/list'
,
colModel
:
[
{
label
:
'商品二级分类Id'
,
name
:
'goodstwotypeId'
,
index
:
'goodstwotype_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'商品一级分类标题'
,
name
:
'goodstypeTitle'
,
index
:
'goodstype_title'
,
width
:
80
},
{
label
:
'商品二级分类标题'
,
name
:
'goodstwotypeTitle'
,
index
:
'goodstwotype_title'
,
width
:
80
}]
});
});
let
vm
=
new
Vue
({
el
:
'#rrapp'
,
data
:
{
showList
:
true
,
title
:
null
,
tbCfGoodstwotype
:
{},
Goodstype
:
null
,
ruleValidate
:
{
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
,
trigger
:
'blur'
}
]
},
q
:
{
name
:
''
}
},
methods
:
{
query
:
function
()
{
vm
.
reload
();
},
add
:
function
()
{
vm
.
showList
=
false
;
vm
.
title
=
"新增"
;
vm
.
tbCfGoodstwotype
=
{};
},
update
:
function
(
event
)
{
let
goodstwotypeId
=
getSelectedRow
(
"#jqGrid"
);
if
(
goodstwotypeId
==
null
)
{
return
;
}
vm
.
showList
=
false
;
vm
.
title
=
"修改"
;
vm
.
getInfo
(
goodstwotypeId
);
},
saveOrUpdate
:
function
(
event
)
{
let
url
=
vm
.
tbCfGoodstwotype
.
goodstwotypeId
==
null
?
"../tbcfgoodstwotype/save"
:
"../tbcfgoodstwotype/update"
;
Ajax
.
request
({
url
:
url
,
params
:
JSON
.
stringify
(
vm
.
tbCfGoodstwotype
),
type
:
"POST"
,
contentType
:
"application/json"
,
successCallback
:
function
(
r
)
{
alert
(
'操作成功'
,
function
(
index
)
{
vm
.
reload
();
});
}
});
},
del
:
function
(
event
)
{
let
goodstwotypeIds
=
getSelectedRows
(
"#jqGrid"
);
if
(
goodstwotypeIds
==
null
){
return
;
}
confirm
(
'确定要删除选中的记录?'
,
function
()
{
Ajax
.
request
({
url
:
"../tbcfgoodstwotype/delete"
,
params
:
JSON
.
stringify
(
goodstwotypeIds
),
type
:
"POST"
,
contentType
:
"application/json"
,
successCallback
:
function
()
{
alert
(
'操作成功'
,
function
(
index
)
{
vm
.
reload
();
});
}
});
});
},
getInfo
:
function
(
goodstwotypeId
){
Ajax
.
request
({
url
:
"../tbcfgoodstwotype/info/"
+
goodstwotypeId
,
async
:
true
,
successCallback
:
function
(
r
)
{
vm
.
tbCfGoodstwotype
=
r
.
tbCfGoodstwotype
;
}
});
},
reload
:
function
(
event
)
{
vm
.
showList
=
true
;
let
page
=
$
(
"#jqGrid"
).
jqGrid
(
'getGridParam'
,
'page'
);
$
(
"#jqGrid"
).
jqGrid
(
'setGridParam'
,
{
postData
:
{
'name'
:
vm
.
q
.
name
},
page
:
page
}).
trigger
(
"reloadGrid"
);
vm
.
handleReset
(
'formValidate'
);
},
reloadSearch
:
function
()
{
vm
.
q
=
{
name
:
''
};
vm
.
reload
();
},
handleSubmit
:
function
(
name
)
{
handleSubmitValidate
(
this
,
name
,
function
()
{
vm
.
saveOrUpdate
()
});
},
handleReset
:
function
(
name
)
{
handleResetForm
(
this
,
name
);
}
},
created
(){
var
that
=
this
$
.
get
(
'../tbcfgoodstype/queryAll'
,
function
(
res
)
{
// console.log(that,"this");
that
.
Goodstype
=
JSON
.
parse
(
res
).
list
;
// console.log(that.Goodstype);
})
}
});
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论