package com.ruoyi.system.service.impl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ruoyi.common.basic.PageInfo;
|
import com.ruoyi.system.mapper.TSystemBulletinMapper;
|
import com.ruoyi.system.model.TSystemBulletin;
|
import com.ruoyi.system.query.SystemBulletinQuery;
|
import com.ruoyi.system.service.TSystemBulletinService;
|
import com.ruoyi.system.vo.system.SystemBulletinListVO;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 系统公告 服务实现类
|
* </p>
|
*
|
* @author xiaochen
|
* @since 2025-05-28
|
*/
|
@Service
|
public class TSystemBulletinServiceImpl extends ServiceImpl<TSystemBulletinMapper, TSystemBulletin> implements TSystemBulletinService {
|
|
@Override
|
public PageInfo<SystemBulletinListVO> pageList(SystemBulletinQuery query) {
|
PageInfo<SystemBulletinListVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize());
|
List<SystemBulletinListVO> list = this.baseMapper.pageList(query,pageInfo);
|
pageInfo.setRecords(list);
|
return pageInfo;
|
}
|
}
|