fix:() 优化任务调动方法

master
Yueng 2024-09-10 21:03:14 +08:00
parent c48c56a1cc
commit 9ef5f6043f
3 changed files with 19 additions and 16 deletions

View File

@ -37,11 +37,11 @@ public class DataLinkController {
}
/**
* count
*
* @param databaseName
* @param tableName sql
* @param listList sql
* @return
* @param tableName
* @param listList
* @return
*/
@PostMapping("/addProduct")
public Result addProduct(@RequestParam("databaseName") String databaseName,

View File

@ -23,7 +23,7 @@ public interface DataLinkService {
* count
* @param dataName
* @param sql sql
* @return
* @return
*/
public Long findCount(String dataName, String sql);
@ -34,37 +34,37 @@ public interface DataLinkService {
* @param sql sql
* @param one
* @param two
* @return
* @return
*/
DataValue[][] findSelectDataList(String databaseName, String sql, String tableName, Long one, Integer two);
/**
*
* @para
* @return
* @return
*/
List<DataName> findSelectDataShow();
/**
* dashuju
* @param id
* @return
* @return
*/
List<TableNames> findSelectTableShow(Integer id);
/**
* dashuju
* @param dataTableName
* @return
* @return
*/
List<TableFie> findSelectTableFieShow(String dataTableName);
/**
* count
*
* @param databaseName
* @param tableName sql
* @param listList sql
* @return
* @param tableName
* @param listList
* @return
*/
int addProduct(String databaseName, String tableName, DataValue[]... listList);
}

View File

@ -134,9 +134,9 @@ public class DataLinkServiceImpl implements DataLinkService {
/**
*
* @param databaseName
* @param tableName sql
* @param listList sql
* @return
* @param tableName
* @param listList
* @return
*/
@Override
@Log(title = "添加产品数据库", businessType = BusinessType.INSERT)
@ -242,6 +242,9 @@ public class DataLinkServiceImpl implements DataLinkService {
// 构建字段名
for (DataValue dataValue : batch[0]) {
if (dataValue == null) {
throw new IllegalArgumentException("dataValue cannot be null");
}
String key = dataValue.getKey();
columns.append(key).append(", ");
}