/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.workflow.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.webcore.util.QueryPageUtil;
import com.codvision.workflow.entity.WorkFlowListener;
import com.codvision.workflow.mapper.WorkFlowListenerMapper;
import com.codvision.workflow.service.WorkFlowListenerService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author hxl
 */
@Service
public class WorkFlowListenerServiceImpl extends ServiceImpl<WorkFlowListenerMapper, WorkFlowListener> implements WorkFlowListenerService {

    @Override
    public IPage<WorkFlowListener> getPageResult(QueryPage<Map<String, Object>> queryPage) {
        return getBaseMapper().getPageResult(queryPage.getPage(), QueryPageUtil.queryMap(queryPage));
    }
}
