|
|
|
|
@ -354,13 +354,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 确保大数值ID以字符串形式传递
|
|
|
|
|
const attId = file.id || file.fileId || ''
|
|
|
|
|
const fileId = file.id || file.fileId || ''
|
|
|
|
|
const attId = file.attId || '';
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
// 兼容SystemAttachment的字段名称
|
|
|
|
|
attId: attId.toString(), // 确保转换为字符串
|
|
|
|
|
fileId: fileId.toString(), // 确保转换为字符串
|
|
|
|
|
attId: attId, // 确保转换为字符串
|
|
|
|
|
name: file.name || file.fileName || '',
|
|
|
|
|
oldName: file.name || file.fileName || '',
|
|
|
|
|
attachFileUrl: attachFileUrl,
|
|
|
|
|
@ -398,13 +396,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 确保大数值ID以字符串形式传递,避免Integer溢出问题
|
|
|
|
|
const attId = file.id || file.fileId || ''
|
|
|
|
|
const fileId = file.id || file.fileId || ''
|
|
|
|
|
const attId = file.id || file.attId || ''
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
// 严格按照SystemAttachment的字段要求设置
|
|
|
|
|
attId: attId.toString(), // 确保转换为字符串
|
|
|
|
|
fileId: fileId.toString(), // 附件id,确保转换为字符串
|
|
|
|
|
attId: attId, // 确保转换为字符串
|
|
|
|
|
name: file.name || file.oldName || '', // 附件名称
|
|
|
|
|
attDir: attDir, // 附件路径
|
|
|
|
|
attSize: file.attSize || '', // 附件大小
|
|
|
|
|
|