Skip to content

Commit

Permalink
fix: 5.2.10 sqlwhere
Browse files Browse the repository at this point in the history
Signed-off-by: mingsoft <killfen@126.com>
  • Loading branch information
msgroup authored and killfen committed Nov 19, 2022
1 parent d35b140 commit 6060a59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/mingsoft/cms/action/web/CategoryAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore CategoryEntity category) {
BasicUtil.startPage();
category.setSqlWhere("");
List categoryList = categoryBiz.query(category);
return ResultData.build().success(new EUListBean(categoryList,(int)BasicUtil.endPage(categoryList).getTotal()));
}
Expand All @@ -84,6 +85,7 @@ public ResultData get(@ModelAttribute @ApiIgnore CategoryEntity category){
if(category.getId()==null) {
return ResultData.build().error();
}
category.setSqlWhere("");
CategoryEntity _category = (CategoryEntity)categoryBiz.getById(category.getId());
return ResultData.build().success(_category);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/mingsoft/cms/action/web/ContentAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
@ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore ContentBean content) {
BasicUtil.startPage();
content.setSqlWhere("");
List contentList = contentBiz.query(content);
return ResultData.build().success(new EUListBean(contentList,(int)BasicUtil.endPage(contentList).getTotal()));
}
Expand All @@ -101,6 +102,7 @@ public ResultData get(@ModelAttribute @ApiIgnore ContentEntity content){
if(content.getId()==null) {
return ResultData.build().error();
}
content.setSqlWhere("");
ContentEntity _content = (ContentEntity)contentBiz.getById(content.getId());;
return ResultData.build().success(_content);
}
Expand Down

0 comments on commit 6060a59

Please sign in to comment.