From ecad870fe1896c8c3e48506d50bb5818974253bf Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期一, 16 一月 2023 11:33:58 +0800 Subject: [PATCH] 机场公安前后端联调内容 --- ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java index b001ac9..51931a7 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java @@ -1,19 +1,34 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.dao.NewsChannelDao; +import com.ycl.mapper.NewsChannelDao; import com.ycl.entity.NewsChannel; import com.ycl.service.NewsChannelService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; + +import java.util.List; /** * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔″疄鐜扮被 * * @author makejava - * @since 2022-11-17 11:12:41 + * @since 2022-11-17 11:38:27 */ @Service("newsChannelService") public class NewsChannelServiceImpl extends ServiceImpl<NewsChannelDao, NewsChannel> implements NewsChannelService { + @Autowired + NewsChannelDao newsChannelDao; + + @Override + public int insertOneChannel(NewsChannel entity) { + return newsChannelDao.insertOneChannel(entity); + } + + @Override + public List<NewsChannel> selectAllChannel() { + return newsChannelDao.selectAllChannel(); + } } -- Gitblit v1.8.0