Commit 6060a59f authored by msgroup's avatar msgroup Committed by mingsoft

fix: 5.2.10 sqlwhere

Signed-off-by: 's avatarmingsoft <killfen@126.com>
parent d35b140a
...@@ -67,6 +67,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{ ...@@ -67,6 +67,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
@ResponseBody @ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore CategoryEntity category) { public ResultData list(@ModelAttribute @ApiIgnore CategoryEntity category) {
BasicUtil.startPage(); BasicUtil.startPage();
category.setSqlWhere("");
List categoryList = categoryBiz.query(category); List categoryList = categoryBiz.query(category);
return ResultData.build().success(new EUListBean(categoryList,(int)BasicUtil.endPage(categoryList).getTotal())); return ResultData.build().success(new EUListBean(categoryList,(int)BasicUtil.endPage(categoryList).getTotal()));
} }
...@@ -84,6 +85,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{ ...@@ -84,6 +85,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
if(category.getId()==null) { if(category.getId()==null) {
return ResultData.build().error(); return ResultData.build().error();
} }
category.setSqlWhere("");
CategoryEntity _category = (CategoryEntity)categoryBiz.getById(category.getId()); CategoryEntity _category = (CategoryEntity)categoryBiz.getById(category.getId());
return ResultData.build().success(_category); return ResultData.build().success(_category);
} }
......
...@@ -83,6 +83,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{ ...@@ -83,6 +83,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
@ResponseBody @ResponseBody
public ResultData list(@ModelAttribute @ApiIgnore ContentBean content) { public ResultData list(@ModelAttribute @ApiIgnore ContentBean content) {
BasicUtil.startPage(); BasicUtil.startPage();
content.setSqlWhere("");
List contentList = contentBiz.query(content); List contentList = contentBiz.query(content);
return ResultData.build().success(new EUListBean(contentList,(int)BasicUtil.endPage(contentList).getTotal())); return ResultData.build().success(new EUListBean(contentList,(int)BasicUtil.endPage(contentList).getTotal()));
} }
...@@ -101,6 +102,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{ ...@@ -101,6 +102,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
if(content.getId()==null) { if(content.getId()==null) {
return ResultData.build().error(); return ResultData.build().error();
} }
content.setSqlWhere("");
ContentEntity _content = (ContentEntity)contentBiz.getById(content.getId());; ContentEntity _content = (ContentEntity)contentBiz.getById(content.getId());;
return ResultData.build().success(_content); return ResultData.build().success(_content);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment