【feat】 Documnet 存量拉取更改文件名称
This commit is contained in:
parent
a6276d5d21
commit
6cb994c4f9
@ -863,8 +863,8 @@ public class CommonServiceImpl implements CommonService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attachment,插入更新时把Name中的/替换为-
|
// Document,Attachment,插入更新时把Name中的/替换为-
|
||||||
if ("Attachment".equals(one.getName()) && "Name".equals(key)){
|
if (("Document".equals(one.getName()) || "Attachment".equals(one.getName())) && "Name".equals(key)){
|
||||||
String name = StringUtils.replace(String.valueOf(jsonObject.get("Name")), "/", "-");
|
String name = StringUtils.replace(String.valueOf(jsonObject.get("Name")), "/", "-");
|
||||||
Map<String, Object> paramMap = Maps.newHashMap();
|
Map<String, Object> paramMap = Maps.newHashMap();
|
||||||
paramMap.put("key", "Name");
|
paramMap.put("key", "Name");
|
||||||
|
|||||||
@ -1064,7 +1064,7 @@ public class DataImportBatchServiceImpl implements DataImportBatchService {
|
|||||||
TimeUnit.MILLISECONDS.sleep(1);
|
TimeUnit.MILLISECONDS.sleep(1);
|
||||||
QueryWrapper<DataObject> obQw = new QueryWrapper<>();
|
QueryWrapper<DataObject> obQw = new QueryWrapper<>();
|
||||||
dbQw.eq("api", api);
|
dbQw.eq("api", api);
|
||||||
DataObject dataObject = dataObjectService.getOne(obQw);
|
DataObject dataObject = dataObjectService.list(obQw).get(0);
|
||||||
|
|
||||||
String beginDateStr = null;
|
String beginDateStr = null;
|
||||||
String endDateStr = null;
|
String endDateStr = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user