【fix】 修复Attachment存量数据下载后的Name中的名称问题
(cherry picked from commit 735cc9ebbf)
This commit is contained in:
parent
968c1dd8d6
commit
f9fc4f2d59
@ -881,6 +881,15 @@ public class CommonServiceImpl implements CommonService {
|
||||
maps.add(paramMap);
|
||||
}
|
||||
|
||||
// Attachment,插入更新时把Name中的/替换为-
|
||||
if ("Attachment".equals(one.getName())){
|
||||
String name = StringUtils.replace(String.valueOf(jsonObject.get("Name")), "/", "-");
|
||||
Map<String, Object> paramMap = Maps.newHashMap();
|
||||
paramMap.put("key", "Name");
|
||||
paramMap.put("value", name);
|
||||
maps.add(paramMap);
|
||||
}
|
||||
|
||||
if (existsIds.contains(id)) {
|
||||
customMapper.updateById(api, maps, id);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user