From 4f33a6133b54d873dc794bdebcfd783597ea0595 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期四, 17 十一月 2022 11:43:31 +0800
Subject: [PATCH] 表结构更新

---
 ycl-platform/src/main/resources/mapper/NewsInformationDao.xml |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
index a82123f..a82c74d 100644
--- a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
+++ b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
@@ -11,26 +11,25 @@
         <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
         <result property="sendTo" column="send_to" jdbcType="VARCHAR"/>
         <result property="imageUrl" column="image_url" jdbcType="VARCHAR"/>
-        <result property="newsDepartmentId" column="news_department_id" jdbcType="VARCHAR"/>
     </resultMap>
 
     <!-- 鎵归噺鎻掑叆 -->
     <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url, news_department_id)
+        insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url)
         values
         <foreach collection="entities" item="entity" separator=",">
-        (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}, #{entity.newsDepartmentId})
+        (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl})
         </foreach>
     </insert>
     <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 -->
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url, news_department_id)
+        insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl}, #{entity.newsDepartmentId})
+            (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl})
         </foreach>
         on duplicate key update
-         title = values(title) , content = values(content) , publish_time = values(publish_time) , is_sign = values(is_sign) , create_time = values(create_time) , send_to = values(send_to) , image_url = values(image_url) , news_department_id = values(news_department_id)     </insert>
+         title = values(title) , content = values(content) , publish_time = values(publish_time) , is_sign = values(is_sign) , create_time = values(create_time) , send_to = values(send_to) , image_url = values(image_url)     </insert>
 
 </mapper>
 

--
Gitblit v1.8.0