李金换
2023-04-21 cc7487a59bd4b0fa5bed1dd59f6d0565ace81b8b
opd计划Cl3
1个文件已修改
21 ■■■■■ 已修改文件
force-app/main/default/classes/OPDPlanHandler.cls 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/OPDPlanHandler.cls
@@ -457,15 +457,20 @@
                    if (uList[0].ZongjianApprovalManager__r.IsActive == true || String.isNotBlank(uList[0].ZongjianApprovalManager__c)) {
                        n.ZongjianApprovalManager__c = uList[0].ZongjianApprovalManager__c;
                    }
                    if (uList[0].Salesdepartment__c == '1.华北' || uList[0].Salesdepartment__c == '2.东北') {
                        if (uList[0].TongkuoZongjianHD__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjianHD__c)) {
                            n.TongkuoZongjian__c = uList[0].TongkuoZongjianHD__c;
                        }
                    }else{
                        if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
                            n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
                        }
                    // 20230420 ljh DB202304312550 start
                    // if (uList[0].Salesdepartment__c == '1.华北' || uList[0].Salesdepartment__c == '2.东北') {
                    //     if (uList[0].TongkuoZongjianHD__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjianHD__c)) {
                    //         n.TongkuoZongjian__c = uList[0].TongkuoZongjianHD__c;
                    //     }
                    // }else{
                    //     if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
                    //         n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
                    //     }
                    // }
                    if (uList[0].TongkuoZongjian__r.IsActive == true || String.isNotBlank(uList[0].TongkuoZongjian__c)) {
                        n.TongkuoZongjian__c = uList[0].TongkuoZongjian__c;
                    }
                    // 20230420 ljh DB202304312550 end
                }
                /*if (uList.size() > 0) {
                    String MId = uList[0].SalesManager__c;