Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
6060a59f
Commit
6060a59f
authored
Nov 19, 2022
by
msgroup
Committed by
mingsoft
Nov 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 5.2.10 sqlwhere
Signed-off-by:
mingsoft
<
killfen@126.com
>
parent
d35b140a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CategoryAction.java
...main/java/net/mingsoft/cms/action/web/CategoryAction.java
+2
-0
ContentAction.java
src/main/java/net/mingsoft/cms/action/web/ContentAction.java
+2
-0
No files found.
src/main/java/net/mingsoft/cms/action/web/CategoryAction.java
View file @
6060a59f
...
...
@@ -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
()));
}
...
...
@@ -84,6 +85,7 @@ public class CategoryAction extends net.mingsoft.cms.action.BaseAction{
if
(
category
.
getId
()==
null
)
{
return
ResultData
.
build
().
error
();
}
category
.
setSqlWhere
(
""
);
CategoryEntity
_category
=
(
CategoryEntity
)
categoryBiz
.
getById
(
category
.
getId
());
return
ResultData
.
build
().
success
(
_category
);
}
...
...
src/main/java/net/mingsoft/cms/action/web/ContentAction.java
View file @
6060a59f
...
...
@@ -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
()));
}
...
...
@@ -101,6 +102,7 @@ public class ContentAction extends net.mingsoft.cms.action.BaseAction{
if
(
content
.
getId
()==
null
)
{
return
ResultData
.
build
().
error
();
}
content
.
setSqlWhere
(
""
);
ContentEntity
_content
=
(
ContentEntity
)
contentBiz
.
getById
(
content
.
getId
());;
return
ResultData
.
build
().
success
(
_content
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment