1.内审预算单上传合同附件
This commit is contained in:
ljw 2024-10-28 15:15:12 +08:00
parent 96a8138473
commit 5e53a39e68

View File

@ -58,13 +58,9 @@ public class IntAuditBuSaAttachmentsContractOp extends AbstractOperationServiceP
{
List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachmentsByExport(purInBill.getDataEntityType().getName(),
purInBill.getLong("id"));
try {
for (Map<String, Object> map : attachments) {
map.put("lastModified", null);
map.put("url", getPathfromDownloadUrl(URLDecoder.decode(String.valueOf(map.get("url")), "UTF-8")));
}
} catch (IOException e) {
e.printStackTrace();
for (Map<String, Object> map : attachments) {
map.put("lastModified", null);
map.put("url", map.get("url"));
}
AttachmentServiceHelper.upload(to.getDataEntityType().getName(), to.getLong("id"), "attachmentpanel",
attachments);