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
87c920ac
Commit
87c920ac
authored
Aug 06, 2020
by
vip
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://imingsoft.cn:3000/mingsoft/ms-mcms
parents
fc5020ed
78a8b4c4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
9 deletions
+7
-9
ms-mcms.iml
ms-mcms.iml
+0
-0
CategoryAction.java
src/main/java/net/mingsoft/cms/action/CategoryAction.java
+2
-2
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 @
87c920ac
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/CategoryAction.java
View file @
87c920ac
...
...
@@ -249,10 +249,10 @@ public class CategoryAction extends BaseAction{
CategoryEntity
categoryEntity
=
new
CategoryEntity
();
categoryEntity
.
setCategoryPinyin
(
pingYin
);
categoryEntity
.
setAppId
(
BasicUtil
.
getAppId
());
Object
categoryBizEntity
=
categoryBiz
.
getEntity
(
categoryEntity
);
CategoryEntity
categoryBizEntity
=
(
CategoryEntity
)
categoryBiz
.
getEntity
(
categoryEntity
);
category
.
setCategoryPinyin
(
pingYin
);
//如果存在此拼音栏目则拼接上id
if
(
categoryBizEntity
!=
null
){
if
(
categoryBizEntity
!=
null
&&!
categoryBizEntity
.
getId
().
equals
(
category
.
getId
())
){
category
.
setCategoryPinyin
(
pingYin
+
category
.
getId
());
}
//判断是否选择子级为所属栏目
...
...
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
87c920ac
...
...
@@ -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 @
87c920ac
...
...
@@ -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 @
87c920ac
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 @
87c920ac
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