【fix】 修复文件下载名称
This commit is contained in:
parent
514fb41a37
commit
54c07fca38
@ -872,6 +872,15 @@ public class CommonServiceImpl implements CommonService {
|
||||
maps.add(paramMap2);
|
||||
}
|
||||
|
||||
// ContentVersion表,插入更新时把title中的/替换为-
|
||||
if ("ContentVersion".equals(one.getName())){
|
||||
String title = StringUtils.replace(String.valueOf(jsonObject.get("Title")), "/", "-");
|
||||
Map<String, Object> paramMap = Maps.newHashMap();
|
||||
paramMap.put("key", "Title");
|
||||
paramMap.put("value", title);
|
||||
maps.add(paramMap);
|
||||
}
|
||||
|
||||
if (existsIds.contains(id)) {
|
||||
customMapper.updateById(api, maps, id);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user