From c435158ed1ff587939314e84347ee6e38e8f25ec Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期一, 21 十一月 2022 13:49:59 +0800
Subject: [PATCH] 接口调整及文件上传接口

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

diff --git a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
index 1c30fe2..a2921bd 100644
--- a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
+++ b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
@@ -34,7 +34,19 @@
     <insert id="insertOneInformation" keyProperty="id" useGeneratedKeys="true">
         insert into news_website.news_information(title, content, publish_time, is_sign, create_time, send_to, image_url)
         values (#{entity.title}, #{entity.content}, #{entity.publishTime}, #{entity.isSign}, #{entity.createTime}, #{entity.sendTo}, #{entity.imageUrl})
-
     </insert>
+
+    <select id="selectInformationById" resultType="com.ycl.entity.NewsInformation" parameterType="int">
+        select * from  news_information where id=#{InformationId}
+    </select>
+
+    <select id="selectAllInformation" resultType="com.ycl.entity.NewsInformation">
+        select * from  news_information
+    </select>
+
+    <update id="updateInformationById" parameterType="com.ycl.entity.NewsInformation">
+        update news_information set title=#{entity.title},content=#{entity.content},publish_time=#{entity.publishTime}, is_sign=#{entity.isSign}, create_time=#{entity.createTime}, send_to=#{entity.sendTo}, image_url=#{entity.imageUrl}
+        where id=#{entity.id}
+    </update>
 </mapper>
 

--
Gitblit v1.8.0