package com.ruoyi.approve.service.impl;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.springframework.stereotype.Service;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ruoyi.approve.mapper.NotificationManagementMapper;
|
import com.ruoyi.approve.pojo.NotificationManagement;
|
import com.ruoyi.approve.service.NotificationManagementService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
@Service
|
public class NotificationManagementServiceImpl extends ServiceImpl<NotificationManagementMapper, NotificationManagement> implements NotificationManagementService {
|
@Autowired
|
private NotificationManagementMapper notificationManagementMapper;
|
|
@Override
|
public IPage<NotificationManagement> listpage(Page page, NotificationManagement notificationManagement) {
|
// // 1. 创建 Page 实例(IPage 实现类),指定页码和每页条数
|
// IPage<NotificationManagement> page1 = new Page<>(page.getCurrent(), page.getSize());
|
return notificationManagementMapper.listpage(page,notificationManagement);
|
}
|
}
|