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/java/com/ycl/service/impl/NewsInformationServiceImpl.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java
index d08da85..bffdf7b 100644
--- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java
+++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java
@@ -4,6 +4,8 @@
 import com.ycl.mapper.NewsInformationDao;
 import com.ycl.entity.NewsInformation;
 import com.ycl.service.NewsInformationService;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 /**
@@ -15,5 +17,12 @@
 @Service("newsInformationService")
 public class NewsInformationServiceImpl extends ServiceImpl<NewsInformationDao, NewsInformation> implements NewsInformationService {
 
+    @Autowired
+    NewsInformationDao newsInformationDao;
+
+    @Override
+    public int insertOneInformation(NewsInformation entity) {
+        return newsInformationDao.insertOneInformation(entity);
+    }
 }
 

--
Gitblit v1.8.0