【fix sonar】SysCategoryController文件

This commit is contained in:
梁琦涛
2023-03-10 15:24:49 +08:00
parent 29762a0222
commit c7158efa5f
@@ -311,7 +311,7 @@ public class SysCategoryController {
Result<List<TreeSelectModel>> result = new Result<>(); Result<List<TreeSelectModel>> result = new Result<>();
try { try {
List<TreeSelectModel> ls = this.sysCategoryService.queryListByCode(pcode); List<TreeSelectModel> ls = this.sysCategoryService.queryListByCode(pcode);
if(!async) { if(Boolean.FALSE.equals(async)) {
loadAllCategoryChildren(ls); loadAllCategoryChildren(ls);
} }
result.setResult(ls); result.setResult(ls);