Commit f9f41412 authored by youc's avatar youc
Browse files

fix

parent 4fc62cd2
...@@ -183,7 +183,7 @@ public class WxGoodsController { ...@@ -183,7 +183,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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment