【fix】 修复Attachment存量数据下载后的Name中的名称问题

This commit is contained in:
Kris 2025-07-30 10:34:35 +08:00
parent cdbb419290
commit 735cc9ebbf

View File

@ -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 {