高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/NFM503InfoFileBatch.cls
@@ -30,6 +30,9 @@
    global Database.QueryLocator start(Database.BatchableContext bc) {
        String query = 'select Id, Tender_information__c, infoAddress__c, ' +
                        // SWAG-C9S9P6 新增字段 2022-05-25 ssm start
                        'Tender_information__r.InfoId__c, Tender_information__r.subInfoType__c, ' +
                        // SWAG-C9S9P6 新增字段 2022-05-25 ssm end
                        'Tender_information__r.InfoType__c, isProcessed__c, ' +
                        ' ErrorMessage__c from bidInfoFile__c where isProcessed__c = false ';
        if (String.isNotBlank(TenId)) {
@@ -179,6 +182,12 @@
            file.DownloadLink__c =pi.undeleteUrl+(String)fileVO.get('key')+'&fileName='+file.FileName__c;
            file.ViewLink__c = pi.queryUrl+(String)fileVO.get('key');
            file.AWS_File_Key__c =(String)fileVO.get('key');
            // SWAG-C9S9P6 新增字段 start
            file.InfoId__c = bidInfoFile.Tender_information__r.InfoId__c;
            file.InfoType__c = bidInfoFile.Tender_information__r.InfoType__c;
            file.subInfoType__c = bidInfoFile.Tender_information__r.subInfoType__c;
            file.UpdateDate__c = Date.today();
            // SWAG-C9S9P6 新增字段 end
            fileList.add(file);
            sp = Database.setSavepoint();