master
ck 5 years ago
parent d16705c528
commit bd3bb75a8d

@ -127,7 +127,7 @@ public class ArticleSerivceImpl implements ArticleSerive {
Long firstCategory = jsonObject.getLong("firstCategory");
Long secondCategory = jsonObject.getLong("secondCategory");
Integer fileType = jsonObject.getInteger("fileType");
Integer state = jsonObject.getInteger("state");
Integer state = jsonObject.getInteger("state") == null ? 1 : jsonObject.getInteger("state");
List<ArticleVo> CategoryList = articleMapper.getArticleListByCondition(title,firstCategory,secondCategory,fileType,state);
JSONObject pageJson = PageUtils.page(CategoryList,pageNum,pageSize);
return pageJson;

Loading…
Cancel
Save