|
@@ -1849,7 +1849,8 @@ public class InformationWriteQueryController extends BladeController {
|
|
|
if (resultFileData.size() > 0) {
|
|
|
//先删除,在入库
|
|
|
List<String> tabIds = resultFileData.stream().map(TableFile::getTabId).distinct().collect(Collectors.toList());
|
|
|
- jdbcTemplate.execute("delete from m_table_file WHERE tab_id in(" + StringUtils.join(tabIds, ",") + ")");
|
|
|
+ String tabIdsString = tabIds.stream().map(id -> "'" + id + "'").collect(Collectors.joining(", "));
|
|
|
+ jdbcTemplate.execute("delete from m_table_file WHERE tab_id in(" + tabIdsString + ")");
|
|
|
if (tableFileClient.saveBatch(resultFileData) && updatePKeyIds.size() > 0) {
|
|
|
//修改表的文件按钮状态
|
|
|
wbsTreeContractClient.updateTabFileTypeByPkeyIds(new ArrayList<>(updatePKeyIds));
|