Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
763c9f66
Commit
763c9f66
authored
Sep 25, 2019
by
xub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品分组
parent
4383af65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
GoodsCordController.java
...om/gic/plug/web/controller/goods/GoodsCordController.java
+6
-0
GoodsCordVO.java
src/main/java/com/gic/plug/web/vo/goods/GoodsCordVO.java
+17
-5
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsCordController.java
View file @
763c9f66
...
...
@@ -37,6 +37,9 @@ public class GoodsCordController {
return
RestResponse
.
success
();
}
List
<
GoodsCordVO
>
list
=
EntityUtil
.
changeEntityListByOrika
(
GoodsCordVO
.
class
,
result
);
for
(
GoodsCordVO
goodsCordVO
:
list
)
{
goodsCordVO
.
setNextChild
(
false
);
}
return
RestResponse
.
success
(
list
);
}
...
...
@@ -52,6 +55,9 @@ public class GoodsCordController {
return
RestResponse
.
success
();
}
List
<
GoodsCordVO
>
list
=
EntityUtil
.
changeEntityListByOrika
(
GoodsCordVO
.
class
,
result
);
for
(
GoodsCordVO
goodsCordVO
:
list
)
{
goodsCordVO
.
setNextChild
(
true
);
}
return
RestResponse
.
success
(
list
);
}
}
src/main/java/com/gic/plug/web/vo/goods/GoodsCordVO.java
View file @
763c9f66
...
...
@@ -3,11 +3,11 @@ package com.gic.plug.web.vo.goods;
import
com.fasterxml.jackson.annotation.JsonFormat
;
/**
* @ClassName: GoodsCordVO
* @Description: 商品分组表
* @author xub
* @date 2019/8/29 上午10:16
*/
* @author xub
* @ClassName: GoodsCordVO
* @Description: 商品分组表
* @date 2019/8/29 上午10:16
*/
public
class
GoodsCordVO
{
/**
* 主键ID
...
...
@@ -53,6 +53,10 @@ public class GoodsCordVO {
* 排序
*/
private
Integer
sort
;
/**
* 是否有子类
*/
private
Boolean
nextChild
;
public
Long
getSpecCordId
()
{
return
specCordId
;
...
...
@@ -134,4 +138,11 @@ public class GoodsCordVO {
this
.
sort
=
sort
;
}
public
Boolean
getNextChild
()
{
return
nextChild
;
}
public
void
setNextChild
(
Boolean
nextChild
)
{
this
.
nextChild
=
nextChild
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment