package com.artfess.cqxy.contract.dao;

import com.artfess.cqxy.contract.model.AdministrativePayment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (AdministrativePayment)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-28 10:07:39
 */
public interface AdministrativePaymentDao extends BaseMapper<AdministrativePayment> {

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities List<AdministrativePayment> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<AdministrativePayment> entities);

    /**
     * 批量新增或按主键更新数据（MyBatis原生foreach方法）
     *
     * @param entities List<AdministrativePayment> 实例对象列表
     * @return 影响行数
     * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常，请自行校验入参
     */
    int insertOrUpdateBatch(@Param("entities") List<AdministrativePayment> entities);

}

