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
5a360c5a
Commit
5a360c5a
authored
Sep 22, 2020
by
sgjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索分页切换两次问题、文章管理父级栏目不显示子栏目文章问题
parent
6d5a3c25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
MCmsAction.java
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+3
-3
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+2
-1
No files found.
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
5a360c5a
...
...
@@ -385,7 +385,9 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
//sql注入过滤
searchMap
.
put
(
k
,
v
.
toString
().
replaceAll
(
"('|\"|\\\\)"
,
"\\\\$1"
));
searchMap
.
put
(
k
,
clearXss
(
searchMap
.
get
(
k
).
toString
()));
urlParams
.
append
(
k
).
append
(
"="
).
append
(
searchMap
.
get
(
k
)).
append
(
"&"
);
if
(!
ParserUtil
.
SIZE
.
equals
(
k
)&&!
ParserUtil
.
PAGE_NO
.
equals
(
k
)){
urlParams
.
append
(
k
).
append
(
"="
).
append
(
searchMap
.
get
(
k
)).
append
(
"&"
);
}
});
//查询数量
...
...
@@ -429,8 +431,6 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
page
.
setPreUrl
(
preUrl
);
page
.
setLastUrl
(
lastUrl
);
searchMap
.
put
(
ParserUtil
.
PAGE_NO
,
pageNo
);
//解析后的内容
String
content
=
""
;
try
{
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
5a360c5a
...
...
@@ -225,7 +225,8 @@
<where>
ct.del=0
<if
test=
"contentTitle != null and contentTitle != ''"
>
and content_title like CONCAT('%',#{contentTitle},'%')
</if>
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
and content_category_id=#{contentCategoryId}
</if>
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
and (content_category_id=#{contentCategoryId} or content_category_id in
(select id FROM cms_category where
<include
refid=
"queryWhereCategoryId"
></include>
))
</if>
<if
test=
"contentType != null and contentType != ''"
>
and content_type LIKE CONCAT('%',#{contentType},'%')
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
and content_display=#{contentDisplay}
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
and content_author=#{contentAuthor}
</if>
...
...
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