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;
    }
}