package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.jwipc.finance.model.po.DeductionPO;

import com.jwipc.finance.model.query.DeductionQuery;

import com.jwipc.finance.entity.Deduction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-扣款管理表 Mapper 接口
 * </p>
 *
 * @author AL
 * @since 2024-02-20
 */
public interface DeductionMapper extends BaseMapper<Deduction> {
    List<DeductionPO> findPageByQuery(@Param("query") DeductionQuery query);

    List<DeductionPO> findPageByQuery(Page<Deduction> dbPage, @Param("query") DeductionQuery query);

    DeductionPO getDataById(@Param("id") Long id);

    List<DeductionPO> findDeductionNoticeList();
}
