Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
ee7afaae
Commit
ee7afaae
authored
Aug 20, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整字段名
parent
9711b374
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
AppletWechatMenuDTO.java
...main/java/com/gic/enterprise/dto/AppletWechatMenuDTO.java
+5
-5
WechatMenuController.java
...m/gic/enterprise/web/controller/WechatMenuController.java
+3
-3
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/AppletWechatMenuDTO.java
View file @
ee7afaae
...
...
@@ -85,7 +85,7 @@ public class AppletWechatMenuDTO implements Serializable{
/***********************/
private
List
<
AppletWechatMenuDTO
>
secondMenuList
;
private
List
<
AppletWechatMenuDTO
>
child
;
private
boolean
isFirstLevel
;
public
Integer
getMenuId
()
{
...
...
@@ -200,12 +200,12 @@ public class AppletWechatMenuDTO implements Serializable{
this
.
updateTime
=
updateTime
;
}
public
List
<
AppletWechatMenuDTO
>
get
SecondMenuList
()
{
return
secondMenuList
;
public
List
<
AppletWechatMenuDTO
>
get
Child
()
{
return
child
;
}
public
AppletWechatMenuDTO
set
SecondMenuList
(
List
<
AppletWechatMenuDTO
>
secondMenuList
)
{
this
.
secondMenuList
=
secondMenuList
;
public
AppletWechatMenuDTO
set
Child
(
List
<
AppletWechatMenuDTO
>
child
)
{
this
.
child
=
child
;
return
this
;
}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/WechatMenuController.java
View file @
ee7afaae
...
...
@@ -81,7 +81,7 @@ public class WechatMenuController {
//校验填充后可以保存的实体类
AppletWechatMenuDTO
hasValidOfFirst
=
(
AppletWechatMenuDTO
)
response
.
getResult
();
List
<
AppletWechatMenuDTO
>
secondList
=
first
.
get
SecondMenuList
();
List
<
AppletWechatMenuDTO
>
secondList
=
first
.
get
Child
();
if
(
CollectionUtils
.
isNotEmpty
(
secondList
))
{
saveItemCount
+=
secondList
.
size
();
...
...
@@ -104,7 +104,7 @@ public class WechatMenuController {
//校验填充后可以保存的实体类
listSecondOfHasValid
.
add
((
AppletWechatMenuDTO
)
responseOfSecond
.
getResult
());
}
hasValidOfFirst
.
set
SecondMenuList
(
listSecondOfHasValid
);
hasValidOfFirst
.
set
Child
(
listSecondOfHasValid
);
}
listOfHasValid
.
add
(
hasValidOfFirst
);
}
...
...
@@ -122,7 +122,7 @@ public class WechatMenuController {
temp
.
setSort
(
i
+
1
);
ServiceResponse
<
Integer
>
response
=
appletWechatMenuApiService
.
saveOfHasValid
(
temp
);
Integer
parentId
=
response
.
getResult
();
List
<
AppletWechatMenuDTO
>
tempSecond
=
temp
.
get
SecondMenuList
();
List
<
AppletWechatMenuDTO
>
tempSecond
=
temp
.
get
Child
();
if
(
CollectionUtils
.
isNotEmpty
(
tempSecond
))
{
for
(
int
j
=
0
,
length
=
tempSecond
.
size
();
j
<
length
;
j
++)
{
AppletWechatMenuDTO
tempOfSecond
=
tempSecond
.
get
(
j
);
...
...
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