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