栏目修改子节点修复

This commit is contained in:
mingsoft 2021-10-21 11:38:35 +08:00
parent 40f637d677
commit e29f3cedec
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ public class CategoryAction extends BaseAction {
CategoryEntity _category = new CategoryEntity();
_category.setId(category.getId());
List<CategoryEntity> categoryList = categoryBiz.queryChildren(_category);
if(categoryList.size()>0) {
if(categoryList.size()>1) {
for(CategoryEntity item:categoryList){
if(item.getId().equals(category.getCategoryId())){
return ResultData.build().error(getResString("cannot.select.child"));