fix:
1.内审预算单上传合同附件
This commit is contained in:
parent
96a8138473
commit
5e53a39e68
@ -58,13 +58,9 @@ public class IntAuditBuSaAttachmentsContractOp extends AbstractOperationServiceP
|
|||||||
{
|
{
|
||||||
List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachmentsByExport(purInBill.getDataEntityType().getName(),
|
List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachmentsByExport(purInBill.getDataEntityType().getName(),
|
||||||
purInBill.getLong("id"));
|
purInBill.getLong("id"));
|
||||||
try {
|
|
||||||
for (Map<String, Object> map : attachments) {
|
for (Map<String, Object> map : attachments) {
|
||||||
map.put("lastModified", null);
|
map.put("lastModified", null);
|
||||||
map.put("url", getPathfromDownloadUrl(URLDecoder.decode(String.valueOf(map.get("url")), "UTF-8")));
|
map.put("url", map.get("url"));
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
AttachmentServiceHelper.upload(to.getDataEntityType().getName(), to.getLong("id"), "attachmentpanel",
|
AttachmentServiceHelper.upload(to.getDataEntityType().getName(), to.getLong("id"), "attachmentpanel",
|
||||||
attachments);
|
attachments);
|
||||||
|
Loading…
Reference in New Issue
Block a user