| | |
| | | String query = 'select Sales_assistant_name_text__c,isProcessed__c,OCM_man_province_cus__c from eSignForm__c '; |
| | | if (changedWindowProvince != null && changedWindowProvince.size() > 0) { |
| | | if (!Test.isRunningTest()) { |
| | | query += ' where isProcessed__c = false and OCM_man_province_cus__c = :changedWindowProvince '; |
| | | query += ' where isProcessed__c = false and Group_purchase_PCL__c = false and OCM_man_province_cus__c = :changedWindowProvince '; |
| | | } |
| | | system.debug('SOQL:' + query); |
| | | return Database.getQueryLocator(query); |