package com.zjrs.zwnw.rlzysc.blo.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mohrss.leaf.core.framework.domain.blo.impl.BLOImpl;
import org.mohrss.leaf.core.framework.persistens.PageResult;
import org.mohrss.leaf.core.framework.persistens.PageUtil;
import com.zjrs.zwnw.rlzysc.blo.JllrBLO;
import com.zjrs.zwnw.rlzysc.dto.JlluQDTO;
import com.zjrs.zwnw.rlzysc.entity.JllrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class JllrBLOimpl  extends BLOImpl implements JllrBLO {

    @Autowired
    private JllrMapper jllrMapper;

    @Override
    public PageResult getJllrList(JlluQDTO dto) {
        Page<Map<String, Object>> page = new Page<>(dto.getPagenum(), dto.getPagesize());
        Page<Map<String, Object>> pageResult = (Page) jllrMapper.getJllrList(page, dto);
        PageResult result = PageUtil.PageResult(pageResult);
        return result;
    }
}
