From f7dffb669b42852e90ff91b6362a07e3a88945b0 Mon Sep 17 00:00:00 2001
From: fuyu <fuyu@prec-tech.com>
Date: 星期四, 05 一月 2023 14:37:17 +0800
Subject: [PATCH] 进口单证补充
---
force-app/main/default/classes/eSignHomePageController.cls | 39 ++++++++++++++++++++++++++++++++++++---
1 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/eSignHomePageController.cls b/force-app/main/default/classes/eSignHomePageController.cls
index 5e7760d..59a3d68 100644
--- a/force-app/main/default/classes/eSignHomePageController.cls
+++ b/force-app/main/default/classes/eSignHomePageController.cls
@@ -137,7 +137,6 @@
} catch (Exception ex) {
return null;
}
-
//new
eSignWrapperList eWList = new eSignWrapperList();
//鍏堝垽鏂湁娌℃湁涓棿琛� 娌℃湁鍒欒祴鍊间负绌�
@@ -153,8 +152,30 @@
}else{
eWList.eSignFormEntryList = null;
}
-
+ system.debug('ceshi4+++'+tempEsignFormList);
if(tempEsignFormList.size() > 0){
+ //fy 20220727 start
+ List<Id> eSignFormId = new List<Id>();
+ for(eSignForm__c es:tempEsignFormList){
+ eSignFormId.add(es.Id);
+ }
+ List<Attachment> AttachmentList= new List<Attachment>();
+ AttachmentList =[select Id,name,ParentId from Attachment where ParentId in:eSignFormId];
+ Map<String,String> AttachmentMap = new Map<String,String>();
+ List<String> AttachmentStringList = new List<String>();
+ if(AttachmentList.size() > 0){
+ for(Attachment Att:AttachmentList){
+ AttachmentMap.put(Att.ParentId, Att.ParentId+'_'+Att.name);
+ }
+ for (String value : AttachmentMap.values()) {
+ AttachmentStringList.add(value);
+ }
+ }
+
+ system.debug('ceshi1+++'+AttachmentList);
+ system.debug('ceshi2+++'+AttachmentStringList);
+ system.debug('ceshi3+++'+eSignFormId);
+ //fy 20220727 end
for(eSignForm__c esf:tempEsignFormList){
if(esf.endUser__c =='濂戠磩'){
esf.Hospital_Name_Text__c = esf.CustomerNameContract__c;
@@ -163,6 +184,11 @@
}
}
eWList.eSignFormList = tempEsignFormList;
+ //fy 20220727 start
+ if(AttachmentStringList.size()>0){
+ eWList.AttachmentStringList = AttachmentStringList;
+ }
+ //fy 20220727 end
}else{
eWList.eSignFormList = null;
}
@@ -219,6 +245,7 @@
//鍒ゆ柇浼犲叆鐨勭被鍨�
@AuraEnabled
public String entryType;
+
public eSignWrapper(Boolean isAgencySubmit,Boolean isHPSubmit,String entryType){
eSignFormEntry = new eSignFormEntry__c();
eSignForm = new eSignForm__c();
@@ -236,10 +263,16 @@
@AuraEnabled
public List<eSignForm__c> eSignFormList;
-
+ //fy 20220727 start
+ @AuraEnabled
+ public List<String> AttachmentStringList;
+ //fy 20220727 end
public eSignWrapperList(){
eSignFormEntryList = new List<eSignFormEntry__c>();
eSignFormList = new List<eSignForm__c>();
+ //fy 20220727 start
+ List<String> AttachmentStringList = new List<String>();
+ //fy 20220727 end
}
}
--
Gitblit v1.9.1