From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

---
 force-app/main/default/classes/eSignHomePageController.cls |   36 +-----------------------------------
 1 files changed, 1 insertions(+), 35 deletions(-)

diff --git a/force-app/main/default/classes/eSignHomePageController.cls b/force-app/main/default/classes/eSignHomePageController.cls
index 59a3d68..b623a93 100644
--- a/force-app/main/default/classes/eSignHomePageController.cls
+++ b/force-app/main/default/classes/eSignHomePageController.cls
@@ -96,7 +96,7 @@
                    sql +='agencyAutoSignUpStatus__c,HPSignUpStatus__c,agencyConfirmDate__c,endUser__c,endUserName__c,HPConfirmDate__c,endConfirmDate__c,Hospital_Name_Text__c,CustomerNameContract__c,agencySignUpDate__c,skip_Hospital_Sign__c,skip_Distribution_Sign__c,skip_Distribution_Sign_Message__c, skip_Hospital_Sign_Message__c ';
                    sql +=' from  eSignForm__c ';
                    //褰搃sProcessed__c 涓簍rue鐨勬椂鍊欙紝宸ヤ綔娴佹洿鏂版棩鏈� 鎵�浠ヤ笉浼氭湁鏃ユ湡涓簄ull骞朵笖杩樻墦鍕剧殑鎯呭喌
-                   sql +=' where (isProcessed__c = false  or (isProcessed__c = true and  endConfirmDate__c >: todate)) ';
+                   sql +=' where (isProcessed__c = false  or (isProcessed__c = true and  endConfirmDate__c >=: todate)) ';
 
                    //閫�璐у垯涓嶈妫�绱�
                    //sql +=' and ReturnMark__c = false ';
@@ -154,28 +154,6 @@
         }
         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;
@@ -184,11 +162,6 @@
                 }
             }
             eWList.eSignFormList = tempEsignFormList;
-            //fy 20220727 start
-            if(AttachmentStringList.size()>0){
-                eWList.AttachmentStringList = AttachmentStringList;
-            }
-            //fy 20220727 end
         }else{
             eWList.eSignFormList = null;
         }
@@ -263,16 +236,9 @@
 
         @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