package common.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ContractDao {

    @Autowired
    JdbcTemplate jdbcTemplate;

    public void batchSaveContract(String sql, List<Object[]> args) {
        jdbcTemplate.batchUpdate(sql, args);
    }
}
