yangjieke
2022-04-02 5c31207724abdf323a9c0c37ecc3eb0b72d1ac4b
force-app/main/default/classes/TenderInformationHandler.cls
@@ -46,6 +46,7 @@
        if (!StaticParameter.EscapeOtherUpdateTenOwner) {
            updateTenOwner();
        }
    }
    protected override void afterInsert() {
@@ -58,6 +59,26 @@
        addShare();
        sednMessage();
        updateWin();
        //2022-3-29 yjk SWAG-CCL6R7
        updateOpportunity();
    }
    //2022-3-29 yjk SWAG-CCL6R7
    private void updateOpportunity(){
        for(Tender_information__c newOne : newList){
            Tender_information__c oldOne = oldMap.get(newOne.id);
            if(oldOne.ResultDate__c == null && newOne.ResultDate__c != null){
                List<Opportunity> oppList = [select id,Closing_Bid_Date__c  from Opportunity where Bidding_Project_Name_Bid__c = :newOne.id];
                if(oppList.size() > 0){
                    for(Opportunity opp : oppList){
                        opp.Closing_Bid_Date__c = newOne.ResultDate__c;
                    }
                    update oppList;
                }
            }
        }
    }
    public void sednMessage() {