From e29f3cedec32280b3abea5965cd89e2205b0c4d6 Mon Sep 17 00:00:00 2001 From: mingsoft Date: Thu, 21 Oct 2021 11:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=8F=E7=9B=AE=E4=BF=AE=E6=94=B9=E5=AD=90?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/mingsoft/cms/action/CategoryAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/mingsoft/cms/action/CategoryAction.java b/src/main/java/net/mingsoft/cms/action/CategoryAction.java index 8a9fd7a2..81ec0b4f 100755 --- a/src/main/java/net/mingsoft/cms/action/CategoryAction.java +++ b/src/main/java/net/mingsoft/cms/action/CategoryAction.java @@ -290,7 +290,7 @@ public class CategoryAction extends BaseAction { CategoryEntity _category = new CategoryEntity(); _category.setId(category.getId()); List 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"));