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

import cn.ezhizao.project.business.deduction.domain.BizDeduction;
import com.baomidou.mybatisplus.extension.service.IService;

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

/**
 * @author 王建
 */
public interface IBizDeductionService extends IService<BizDeduction> {

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


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

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

}
