Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
ac24031e
Commit
ac24031e
authored
Aug 10, 2018
by
youc3576
Committed by
linlinjava
Aug 10, 2018
Browse files
!4 修复一级类目无二级类目时 后台报数组越界异常
Merge pull request !4 from youc3576/master
parents
86b01d7e
a34a95f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxGoodsController.java
View file @
ac24031e
...
@@ -189,7 +189,7 @@ public class WxGoodsController {
...
@@ -189,7 +189,7 @@ public class WxGoodsController {
if
(
cur
.
getPid
()
==
0
)
{
if
(
cur
.
getPid
()
==
0
)
{
parent
=
cur
;
parent
=
cur
;
children
=
categoryService
.
queryByPid
(
cur
.
getId
());
children
=
categoryService
.
queryByPid
(
cur
.
getId
());
cur
=
children
.
get
(
0
);
cur
=
children
.
size
()>
0
?
children
.
get
(
0
)
:
cur
;
}
else
{
}
else
{
parent
=
categoryService
.
findById
(
cur
.
getPid
());
parent
=
categoryService
.
findById
(
cur
.
getPid
());
children
=
categoryService
.
queryByPid
(
cur
.
getPid
());
children
=
categoryService
.
queryByPid
(
cur
.
getPid
());
...
...
Write
Preview
Supports
Markdown
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