【feat】 Documnet 存量拉取更改文件名称
This commit is contained in:
parent
a6276d5d21
commit
6cb994c4f9
@ -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");
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user