Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
5a360c5a
Commit
5a360c5a
authored
Sep 22, 2020
by
sgjj
Browse files
搜索分页切换两次问题、文章管理父级栏目不显示子栏目文章问题
parent
6d5a3c25
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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