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/NewsPoliceDao.xml |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml b/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml
index ea8b6d9..dcfda73 100644
--- a/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml
+++ b/ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml
@@ -7,26 +7,27 @@
         <result property="rname" column="rname" jdbcType="VARCHAR"/>
         <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
         <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
-        <result property="organizationName" column="organization_name" jdbcType="VARCHAR"/>
+        <result property="newsDepartmentId" column="news_department_id" jdbcType="VARCHAR"/>
+        <result property="phone" column="phone" jdbcType="VARCHAR"/>
     </resultMap>
 
     <!-- 鎵归噺鎻掑叆 -->
     <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into news_website.news_police(rname, create_time, update_time, organization_name)
+        insert into news_website.news_police(rname, create_time, update_time, news_department_id, phone)
         values
         <foreach collection="entities" item="entity" separator=",">
-        (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName})
+        (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.newsDepartmentId}, #{entity.phone})
         </foreach>
     </insert>
     <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 -->
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into news_website.news_police(rname, create_time, update_time, organization_name)
+        insert into news_website.news_police(rname, create_time, update_time, news_department_id, phone)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.organizationName})
+            (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.newsDepartmentId}, #{entity.phone})
         </foreach>
         on duplicate key update
-         rname = values(rname) , create_time = values(create_time) , update_time = values(update_time) , organization_name = values(organization_name)     </insert>
+         rname = values(rname) , create_time = values(create_time) , update_time = values(update_time) , news_department_id = values(news_department_id) , phone = values(phone)     </insert>
 
 </mapper>
 

--
Gitblit v1.8.0