From 42c9e189c8e1eb28d876c6fb4561fd9df6ac1b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B0=E6=95=A3=E5=9C=A8=E6=97=B6=E5=85=89=E9=87=8C?= <954441582@qq.com> Date: Thu, 9 Jan 2020 15:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E7=AB=A0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=A9=BA=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/mingsoft/cms/dao/IContentDao.xml | 12 ++++++------ src/main/webapp/WEB-INF/manager/cms/content/form.ftl | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml index d0fd41b5..25fef61f 100644 --- a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml @@ -83,7 +83,7 @@ #{contentTitle}, #{contentCategoryId}, - #{contentType}, + #{contentType}, #{contentDisplay}, #{contentAuthor}, #{contentSource}, @@ -112,14 +112,14 @@ content_category_id=#{contentCategoryId}, content_type=#{contentType}, content_display=#{contentDisplay}, - content_author=#{contentAuthor}, - content_source=#{contentSource}, + content_author=#{contentAuthor}, + content_source=#{contentSource}, content_datetime=#{contentDatetime}, content_sort=#{contentSort}, content_img=#{contentImg}, - content_description=#{contentDescription}, - content_keyword=#{contentKeyword}, - content_details=#{contentDetails}, + content_description=#{contentDescription}, + content_keyword=#{contentKeyword}, + content_details=#{contentDetails}, content_url=#{contentUrl}, content_hit=#{contentHit}, app_id=#{appId}, diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index d5be65e5..e8335c22 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -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) {