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
4e03ca33
Commit
4e03ca33
authored
Aug 03, 2020
by
panpp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设计器
parent
82f7af69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
ms-mcms.iml
ms-mcms.iml
+0
-0
MCmsAction.java
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+2
-2
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+0
-1
application-dev.yml
src/main/resources/application-dev.yml
+3
-3
application.yml
src/main/resources/application.yml
+0
-1
No files found.
ms-mcms.iml
0 → 100644
View file @
4e03ca33
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
4e03ca33
...
...
@@ -193,13 +193,13 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
//参数文章编号
ContentEntity
article
=
(
ContentEntity
)
contentBiz
.
getEntity
(
BasicUtil
.
getInt
(
ParserUtil
.
ID
));
if
(
ObjectUtil
.
isNull
(
article
)){
this
.
outJson
(
resp
,
null
,
false
,
getResString
(
"err.empty"
,
this
.
getResString
(
"id"
)));
this
.
outJson
(
resp
,
false
,
getResString
(
"err.empty"
,
this
.
getResString
(
"id"
)));
return
;
}
if
(
StringUtils
.
isNotBlank
(
order
)){
//防注入
if
(!
order
.
toLowerCase
().
equals
(
"asc"
)&&!
order
.
toLowerCase
().
equals
(
"desc"
)){
this
.
outJson
(
resp
,
null
,
false
,
getResString
(
"err.error"
,
this
.
getResString
(
"order"
)));
this
.
outJson
(
resp
,
false
,
getResString
(
"err.error"
,
this
.
getResString
(
"order"
)));
return
;
}
}
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
4e03ca33
...
...
@@ -207,7 +207,6 @@
<if
test=
"updateBy > 0"
>
and ct.update_by=#{updateBy}
</if>
<if
test=
"updateDate != null"
>
and update_date=#{updateDate}
</if>
<if
test=
"del != null"
>
and ct.del=#{del}
</if>
<include
refid=
"net.mingsoft.base.dao.IBaseDao.sqlWhere"
></include>
</where>
order by id desc
</select>
...
...
src/main/resources/application-dev.yml
View file @
4e03ca33
spring
:
datasource
:
url
:
jdbc:mysql://
192.168.0.8:3316/mcms-5.1-3000
?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username
:
mcms
password
:
mcms
url
:
jdbc:mysql://
localhost:3306/wx-5.1
?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username
:
root
password
:
root
filters
:
wall,mergeStat
type
:
com.alibaba.druid.pool.DruidDataSource
src/main/resources/application.yml
View file @
4e03ca33
server
:
port
:
8080
servlet.context-path
:
/ms-mcms
servlet.session.timeout
:
P0DT60M0S
#D天H小时M分钟S秒,字符T是紧跟在时分秒之前的,每个单位都必须由数字开始,且时分秒顺序不能乱
logging
:
...
...
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