高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
global class EnquiryDetailsWebService {
 
    WebService static Boolean change(String oppId){
        List<InquiryPredictsDateChange__c> ipdList = Database.query('Select Id,Name,Opportunity__c,Predicted_Date_Status__c From InquiryPredictsDateChange__c Where Opportunity__c = : oppId order by CreatedDate desc');
 
        if(ipdList.size() > 0){
            for(InquiryPredictsDateChange__c ipd : ipdList){
                if(ipd.Predicted_Date_Status__c == '审批中'){
                    return true;
                }
            }
        }
        return false;
    }
}