package cn.ezhizao.project.business.deduction.mapper;

import cn.ezhizao.project.business.deduction.domain.BizDeduction;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @author 王建
 */
@Mapper
public interface BizDeductionMapper extends BaseMapper<BizDeduction> {

    /**
     * 带条件的查询
     *
     * @param conditions 条件
     * @return List 集合
     */
    List<BizDeduction> getList(Map<String, Object> conditions);

    /**
     * 根据Bean查询 列表
     *
     * @param deduction 实体类对象
     * @return List 集合
     */
    List<BizDeduction> getList(BizDeduction deduction);

    /**
     * 带条件的查询总数
     *
     * @param conditions 条件
     * @return int 查询总数量
     */
    int getTotal(Map<String, Object> conditions);

}


