| | |
| | | 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 '; |
| | | //当isProcessed__c 为true的时候,工作流更新日期 所以不会有日期为null并且还打勾的情况 |
| | | 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 '; |
| | |
| | | } catch (Exception ex) { |
| | | return null; |
| | | } |
| | | |
| | | //new |
| | | eSignWrapperList eWList = new eSignWrapperList(); |
| | | //先判断有没有中间表 没有则赋值为空 |
| | |
| | | }else{ |
| | | eWList.eSignFormEntryList = null; |
| | | } |
| | | |
| | | system.debug('ceshi4+++'+tempEsignFormList); |
| | | if(tempEsignFormList.size() > 0){ |
| | | for(eSignForm__c esf:tempEsignFormList){ |
| | | if(esf.endUser__c =='契約'){ |
| | |
| | | //判断传入的类型 |
| | | @AuraEnabled |
| | | public String entryType; |
| | | |
| | | public eSignWrapper(Boolean isAgencySubmit,Boolean isHPSubmit,String entryType){ |
| | | eSignFormEntry = new eSignFormEntry__c(); |
| | | eSignForm = new eSignForm__c(); |
| | |
| | | |
| | | @AuraEnabled |
| | | public List<eSignForm__c> eSignFormList; |
| | | |
| | | public eSignWrapperList(){ |
| | | eSignFormEntryList = new List<eSignFormEntry__c>(); |
| | | eSignFormList = new List<eSignForm__c>(); |