修改查询语句
parent
c17788ab20
commit
1d4b30336e
|
@ -487,18 +487,19 @@ public int addProduct(Long basicId, Long tableId, DataValue[][] listList) {
|
||||||
TableInfo tableInfo = tableInfoService.getById(tableId);
|
TableInfo tableInfo = tableInfoService.getById(tableId);
|
||||||
String tableName = tableInfo.getTableName();
|
String tableName = tableInfo.getTableName();
|
||||||
|
|
||||||
|
// HikariConfig hikariConfig = new HikariConfig();
|
||||||
|
// hikariConfig.setPoolName("HikariCP 连接池");
|
||||||
|
// hikariConfig.setDriverClassName(dataSources.getDriverName());
|
||||||
|
// // hikariConfig.setJdbcUrl(dataSources.getUrl(dataSources) + "&maxAllowedPacket=1G");
|
||||||
|
// hikariConfig.setJdbcUrl(dataSources.getUrl());
|
||||||
|
// hikariConfig.setUsername(dataSources.getUsername());
|
||||||
|
// hikariConfig.setPassword(dataSources.getPassword());
|
||||||
|
// hikariConfig.setMinimumIdle(2);
|
||||||
|
// hikariConfig.setMaximumPoolSize(10);
|
||||||
|
//
|
||||||
|
|
||||||
HikariConfig hikariConfig = new HikariConfig();
|
HikariConfig hikariConfig = new HikariConfig();
|
||||||
hikariConfig.setPoolName("HikariCP 连接池");
|
|
||||||
hikariConfig.setDriverClassName(dataSources.getDriverName());
|
|
||||||
// hikariConfig.setJdbcUrl(dataSources.getUrl(dataSources) + "&maxAllowedPacket=1G");
|
|
||||||
hikariConfig.setJdbcUrl(dataSources.getUrl());
|
|
||||||
hikariConfig.setUsername(dataSources.getUsername());
|
|
||||||
hikariConfig.setPassword(dataSources.getPassword());
|
|
||||||
hikariConfig.setMinimumIdle(2);
|
|
||||||
hikariConfig.setMaximumPoolSize(10);
|
|
||||||
|
|
||||||
HikariDataSource hikariDataSource = new HikariDataSource(hikariConfig);
|
HikariDataSource hikariDataSource = new HikariDataSource(hikariConfig);
|
||||||
|
|
||||||
ExecutorService executorService = Executors.newFixedThreadPool(8);
|
ExecutorService executorService = Executors.newFixedThreadPool(8);
|
||||||
AtomicInteger addCount = new AtomicInteger();
|
AtomicInteger addCount = new AtomicInteger();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue