沙世明
2022-09-13 bfca7a84bec815da594f1d12558535ed06d2490b
force-app/main/default/classes/AssetUpdateContractBatch.cls
@@ -85,7 +85,10 @@
            ' previousTotalContractAmount__c , currentTotalContractAmountVM__c , currentTotalGuaranteePrice__c '+
            ' , RecordType_DeveloperName__c  ' +
            '  from Maintenance_Contract__c '
            + ' where Status__c in (\'契約\',\'契約満了\') ';
            + ' where Status__c in (\'契約\',\'契約満了\') '
            //URF限次合同2期 LY 20220811 start
            + 'and  URF_Contract__c = false';
            //URF限次合同2期 LY 20220811 end
        if (string.isNotBlank(TestID) ) {
            query += ' and id =: TestID';
        } else if (TestIDList != null && TestIDList.size() > 0) {
@@ -98,7 +101,7 @@
           query += ' and Contract_End_Date__c = ' + 
                    testDate.addDays(-1).format().replace('/', '-'); 
        }
        system.debug('query:'+query);
        //system.debug('query:'+query);
        testDate = Datecheck(testDate);
        return Database.getQueryLocator(query);