变量判空

This commit is contained in:
wujj 2020-11-06 11:00:54 +08:00
parent d16a5ceac5
commit 28269bbfd2
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ public class GeneraterAction extends BaseAction {
map.put(ParserUtil.HTML, ParserUtil.HTML);
map.put(ParserUtil.URL, BasicUtil.getUrl());
map.put(ParserUtil.PAGE, page);
if(Integer.parseInt(columnId) == 0){
if(StringUtils.isNotEmpty(columnId)){
CategoryEntity categoryEntity = new CategoryEntity();
categoryList = categoryBiz.query(categoryEntity);
for(CategoryEntity category : categoryList){