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
42c9e189
Commit
42c9e189
authored
Jan 09, 2020
by
走散在时光里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复文章管理编辑页面无法保存空值
parent
b170311e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+6
-6
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+3
-0
No files found.
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
42c9e189
...
...
@@ -83,7 +83,7 @@
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"contentTitle != null and contentTitle != ''"
>
#{contentTitle},
</if>
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
#{contentCategoryId},
</if>
<if
test=
"contentType != null
and contentType != ''
"
>
#{contentType},
</if>
<if
test=
"contentType != null "
>
#{contentType},
</if>
<if
test=
"contentDisplay != null and contentDisplay != ''"
>
#{contentDisplay},
</if>
<if
test=
"contentAuthor != null and contentAuthor != ''"
>
#{contentAuthor},
</if>
<if
test=
"contentSource != null and contentSource != ''"
>
#{contentSource},
</if>
...
...
@@ -112,14 +112,14 @@
<if
test=
"contentCategoryId != null and contentCategoryId != ''"
>
content_category_id=#{contentCategoryId},
</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>
<if
test=
"contentAuthor != null "
>
content_author=#{contentAuthor},
</if>
<if
test=
"contentSource != null "
>
content_source=#{contentSource},
</if>
<if
test=
"contentDatetime != null"
>
content_datetime=#{contentDatetime},
</if>
<if
test=
"contentSort != null"
>
content_sort=#{contentSort},
</if>
<if
test=
"contentImg != null and contentImg != ''"
>
content_img=#{contentImg},
</if>
<if
test=
"contentDescription != null
and contentDescription != ''
"
>
content_description=#{contentDescription},
</if>
<if
test=
"contentKeyword != null
and contentKeyword != ''
"
>
content_keyword=#{contentKeyword},
</if>
<if
test=
"contentDetails != null
and contentDetails != ''
"
>
content_details=#{contentDetails},
</if>
<if
test=
"contentDescription != null "
>
content_description=#{contentDescription},
</if>
<if
test=
"contentKeyword != null "
>
content_keyword=#{contentKeyword},
</if>
<if
test=
"contentDetails != null "
>
content_details=#{contentDetails},
</if>
<if
test=
"contentUrl != null and contentUrl != ''"
>
content_url=#{contentUrl},
</if>
<if
test=
"contentHit != null"
>
content_hit=#{contentHit},
</if>
<if
test=
"appId != null"
>
app_id=#{appId},
</if>
...
...
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
42c9e189
...
...
@@ -448,6 +448,9 @@
if
(
res
.
data
.
contentType
)
{
res
.
data
.
contentType
=
res
.
data
.
contentType
.
split
(
','
);
}
else
{
res
.
data
.
contentType
=
[];
}
if
(
res
.
data
.
contentImg
)
{
res
.
data
.
contentImg
=
JSON
.
parse
(
res
.
data
.
contentImg
);
res
.
data
.
contentImg
.
forEach
(
function
(
value
)
{
...
...
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