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
69c22679
Commit
69c22679
authored
Jan 07, 2020
by
走散在时光里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复文章类型无法保存空值。
修复无法进入文章编辑页面问题。
parent
ca13da45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
MCmsAction.java
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+6
-4
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+2
-2
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+1
-1
No files found.
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
69c22679
...
...
@@ -26,8 +26,10 @@ import cn.hutool.core.util.PageUtil;
import
freemarker.core.ParseException
;
import
freemarker.template.MalformedTemplateNameException
;
import
freemarker.template.TemplateNotFoundException
;
import
net.mingsoft.base.constant.Const
;
import
net.mingsoft.basic.util.BasicUtil
;
import
net.mingsoft.basic.util.SpringUtil
;
import
net.mingsoft.basic.util.StringUtil
;
import
net.mingsoft.cms.bean.ContentBean
;
import
net.mingsoft.cms.biz.ICategoryBiz
;
import
net.mingsoft.cms.biz.IContentBiz
;
...
...
@@ -39,19 +41,19 @@ import net.mingsoft.mdiy.biz.IContentModelBiz;
import
net.mingsoft.mdiy.biz.IModelBiz
;
import
net.mingsoft.mdiy.biz.IPageBiz
;
import
net.mingsoft.mdiy.entity.ContentModelEntity
;
import
net.mingsoft.mdiy.entity.ModelEntity
;
import
net.mingsoft.mdiy.entity.PageEntity
;
import
net.mingsoft.mdiy.parser.TagParser
;
import
net.mingsoft.mdiy.util.ParserUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.util.*
;
/**
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
69c22679
...
...
@@ -61,7 +61,7 @@
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"contentTitle != null and contentTitle != ''"
>
content_title,
</if>
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
content_category_id,
</if>
<if
test=
"contentType != null
and contentType != ''
"
>
content_type,
</if>
<if
test=
"contentType != null "
>
content_type,
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
content_display,
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
content_author,
</if>
<if
test=
"contentSource != null and contentSource != ''"
>
content_source,
</if>
...
...
@@ -110,7 +110,7 @@
<set>
<if
test=
"contentTitle != null and contentTitle != ''"
>
content_title=#{contentTitle},
</if>
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
content_category_id=#{contentCategoryId},
</if>
<if
test=
"contentType != null
and contentType != ''
"
>
content_type=#{contentType},
</if>
<if
test=
"contentType != null "
>
content_type=#{contentType},
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
content_display=#{contentDisplay},
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
content_author=#{contentAuthor},
</if>
<if
test=
"contentSource != null and contentSource != ''"
>
content_source=#{contentSource},
</if>
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
69c22679
...
...
@@ -397,7 +397,7 @@
ms
.
http
.
get
(
ms
.
manager
+
"/mdiy/model/get.do"
,{
id
:
this
.
currCategory
.
mdiyModelId
}).
then
(
function
(
data
)
{
if
(
data
.
data
.
id
){
if
(
data
.
data
&&
data
.
data
.
id
){
that
.
rederModel
(
data
.
data
,
JSON
.
parse
(
data
.
data
.
modelJson
))
}
})
...
...
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