【fix】 修复Attachment存量数据下载后的Name中的名称问题
This commit is contained in:
parent
cdbb419290
commit
735cc9ebbf
@ -881,6 +881,15 @@ public class CommonServiceImpl implements CommonService {
|
|||||||
maps.add(paramMap);
|
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)) {
|
if (existsIds.contains(id)) {
|
||||||
customMapper.updateById(api, maps, id);
|
customMapper.updateById(api, maps, id);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user