liyong
10 天以前 6b908076f80a2c2933058caf5311ae2dc9048409
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.ruoyi.approve.service.impl;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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 lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
 
@Service
@RequiredArgsConstructor
public class NotificationManagementServiceImpl extends ServiceImpl<NotificationManagementMapper, NotificationManagement> implements NotificationManagementService {
    private final 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);
    }
}