From 69ee7c605579c009ee3c087fa265619ba55155f6 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期五, 18 十一月 2022 10:57:33 +0800 Subject: [PATCH] 资讯相关接口,栏目相关接口 --- ycl-platform/src/main/resources/mapper/NewsInformationDao.xml | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml index d3e7112..1c30fe2 100644 --- a/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml +++ b/ycl-platform/src/main/resources/mapper/NewsInformationDao.xml @@ -31,5 +31,10 @@ 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) </insert> + <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> </mapper> -- Gitblit v1.8.0