package com.zjrs.zwnw.dbgl.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.dbgl.blo.XbbmglPLO;
import com.zjrs.zwnw.dbgl.dto.DbrwglDbrwQueryDTO;
import com.zjrs.zwnw.dbgl.entity.DbxmMapper;
import com.zjrs.zwnw.dbgl.entity.XbbmglMapper;
import com.zjrs.zwnw.portal.blo.CommonBLO;
import com.zjrs.zwnw.portal.entity.VSSgOrgMapper;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.Map;


/**
 * @Author chenzhibiao
 * @create 2022/6/30 8:43
 */
@Service
public class XbbmglimplPLO extends BLOImpl implements XbbmglPLO {
    @Resource
    private XbbmglMapper xbbmglMapper;
    @Resource
    private CommonBLO commonBLO;

    @Resource
    private VSSgOrgMapper vSSgOrgMapper;
    @Resource
    private DbxmMapper dbxmMapper;




    @Override
    public PageResult getDbrwList(DbrwglDbrwQueryDTO dto, Integer pagenum, Integer pagesize){
        Page<Map<String, Object>> page = new Page<>(dto.getPagenum(), dto.getPagesize());
        Page<Map<String, Object>> pageResult = (Page) xbbmglMapper.getDbrwList(page,dto);
        PageResult result = PageUtil.PageResult(pageResult);
        return result;
    }

}
