From a2f7f78e8b02e3613c9ff9cf584de2ec0bda075d Mon Sep 17 00:00:00 2001 From: 李彤 <litong@prec-tech.com> Date: 星期四, 12 五月 2022 09:34:08 +0800 Subject: [PATCH] 替换字段 --- force-app/main/default/classes/NFM705Rest.cls | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/force-app/main/default/classes/NFM705Rest.cls b/force-app/main/default/classes/NFM705Rest.cls index 2396957..3b39cf6 100644 --- a/force-app/main/default/classes/NFM705Rest.cls +++ b/force-app/main/default/classes/NFM705Rest.cls @@ -25,7 +25,7 @@ public String Num; //浼氳缂栫爜 == Num__c public String StartDate; //寮�濮嬫棩鏈� == StartDate public String EndDate; //缁撴潫鏃ユ湡 == EndDate - public String BudgetType; //棰勭畻绫诲瀷 == Budget_Type__c + public String BudgetType; //棰勭畻绫诲瀷 == Implementation_Purpose__c public String OfficeCategory; //绉戝鍒嗙被 == OfficeCategory__c public String MeetingType; //浼氳绫诲瀷 == Meeting_Type__c public String StateMaster; //鐪� == State_Master__c @@ -188,7 +188,9 @@ aca.Id = oldacfcMap.get(ged.MeetingApprovedNo).Id; aca.Num__c = String.isBlank(aca.Num__c) ? oldacfcMap.get(ged.MeetingApprovedNo).Num__c : aca.Num__c; } - NumList.add(aca.Num__c); + if (String.isNotBlank(aca.Num__c)) { + NumList.add(aca.Num__c); + } system.debug('NumList------------->'+NumList); // 纭鐢宠浜� System.debug('aca.Id: ' + aca.Id); @@ -214,7 +216,8 @@ ] : new List<Campaign>(); // 鏌ユ壘鎵�鏈変汉 if (user_nos != null && user_nos.size() > 0) { - users = [select Id, Employee_No__c from User where Employee_No__c in :user_nos]; + // 2022-03-23 绱ф�ヤ慨澶� 鏈惎鐢ㄧ殑鐢ㄦ埛鏃犳硶璁剧疆鍏变韩 + users = [select Id, Employee_No__c from User where Employee_No__c in :user_nos and IsActive = true]; if (users != null && users.size() > 0) { String owner = ''; for (Application_for_Conference_Adjudication__c app : acaList) { @@ -266,7 +269,7 @@ if (app.MeetingType__c != '璧炲姪浼�') { cam.StartDate = app.StartDate__c; cam.EndDate = app.EndDate__c; - cam.Budget_Type__c = app.BudgetType__c; + cam.Implementation_Purpose__c = app.BudgetType__c; cam.OfficeCategory__c = app.OfficeCategory__c; cam.Meeting_Type__c = app.MeetingType__c; @@ -428,7 +431,7 @@ // cam.Meeting_Approved_No__c = app.Id; // cam.StartDate = app.StartDate__c; // cam.EndDate = app.EndDate__c; - // cam.Budget_Type__c = app.BudgetType__c; + // cam.Implementation_Purpose__c = app.BudgetType__c; // cam.OfficeCategory__c = app.OfficeCategory__c; // cam.Meeting_Type__c = app.MeetingType__c; // cam.Activity_Type_Name__c = app.ActivityTypeName__c; @@ -509,6 +512,8 @@ } // 鍐嶆柊澧� if (insert_list != null && insert_list.size() > 0) { + System.debug('insert_list is: '); + System.debug(insert_list); insert insert_list; } } -- Gitblit v1.9.1