buli
2022-05-13 2f4492ee18f90274582fcc2bb06f5e9bf64136e8
force-app/main/default/classes/NewDiagnosisPartController.cls
@@ -79,8 +79,7 @@
        if (diagnosisPart.DELIVERED__c == false  && String.isBlank(diagnosisPart.Id)) {
            Boolean isUpdateSwo = false;
            List<SWO__c> swoList = [select Id,Diagnose_part_not_delievered_1__c,Diagnose_part_not_delievered_2__c,Diagnose_part_not_delievered_3__c from SWO__c where Id=:diagnosisPart.SWO__c];
            System.debug('swoList.size():'+swoList.size());
            List<SWO__c> swoList = [select Diagnose_part_not_delievered_1__c,Diagnose_part_not_delievered_2__c,Diagnose_part_not_delievered_3__c from SWO__c where Id=:diagnosisPart.SWO__c];
            if (swoList!=null && swoList.size()!=0) {
                SWO__c swo = swoList[0];
                if(String.isBlank(swo.Diagnose_part_not_delievered_1__c)){
@@ -93,7 +92,6 @@
                    isUpdateSwo = true;
                    swo.Diagnose_part_not_delievered_3__c = diagnosisPart.PART_NUMBER__c;
                }
                System.debug('swo.Id:'+swo.Id);
                if(isUpdateSwo) update swo;
            }
        }