package com.chinaweal.aiccs.crgs.punish.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaweal.aiccs.aiccs.punishment.entity.PunishmentUnionDto;
import com.chinaweal.aiccs.crgs.punish.entity.TbIlcPunInfoQuery;
import com.chinaweal.aiccs.crgs.punish.mapper.TbIlcPunInfoQueryMapper;
import com.chinaweal.aiccs.crgs.punish.service.TbIlcPunInfoQueryService;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.BaseServiceImpl;
import org.springframework.stereotype.Service;

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

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sh
 * @since 2022-05-26
 */
@Service
public class TbIlcPunInfoQueryServiceImpl extends BaseServiceImpl<TbIlcPunInfoQueryMapper, TbIlcPunInfoQuery> implements TbIlcPunInfoQueryService {

    @Resource
    private TbIlcPunInfoQueryMapper tbIlcPunInfoQueryMapper;

    @Override
    public IPage<TbIlcPunInfoQuery> searchByPage(Page<TbIlcPunInfoQuery> page, Map<String, Object> params) {
        return tbIlcPunInfoQueryMapper.searchByPage(page, params);
    }

    @Override
    public TbIlcPunInfoQuery findById(String id) {
        return tbIlcPunInfoQueryMapper.findById(id);
    }

    @Override
    public IPage<PunishmentUnionDto> searchUnionByPage(Page<?> page, Map<String, Object> params) {
        return tbIlcPunInfoQueryMapper.searchUnionByPage(page, params);
    }
}
