【feat】 Documnet 存量拉取更改文件名称

This commit is contained in:
Kris 2025-07-31 11:38:47 +08:00
parent a6276d5d21
commit 6cb994c4f9
2 changed files with 3 additions and 3 deletions

View File

@ -863,8 +863,8 @@ public class CommonServiceImpl implements CommonService {
continue;
}
// Attachment插入更新时把Name中的/替换为-
if ("Attachment".equals(one.getName()) && "Name".equals(key)){
// Document,Attachment插入更新时把Name中的/替换为-
if (("Document".equals(one.getName()) || "Attachment".equals(one.getName())) && "Name".equals(key)){
String name = StringUtils.replace(String.valueOf(jsonObject.get("Name")), "/", "-");
Map<String, Object> paramMap = Maps.newHashMap();
paramMap.put("key", "Name");

View File

@ -1064,7 +1064,7 @@ public class DataImportBatchServiceImpl implements DataImportBatchService {
TimeUnit.MILLISECONDS.sleep(1);
QueryWrapper<DataObject> obQw = new QueryWrapper<>();
dbQw.eq("api", api);
DataObject dataObject = dataObjectService.getOne(obQw);
DataObject dataObject = dataObjectService.list(obQw).get(0);
String beginDateStr = null;
String endDateStr = null;