From cd730d0b1a775abacfba06003bb58327d5d1fb3c Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 02 二月 2023 12:23:31 +0800
Subject: [PATCH] 同步数据
---
force-app/main/default/classes/RollupToHPBatch.cls | 71 ++++++++++++++++++++++++++++++-----
1 files changed, 60 insertions(+), 11 deletions(-)
diff --git a/force-app/main/default/classes/RollupToHPBatch.cls b/force-app/main/default/classes/RollupToHPBatch.cls
index 504a438..a7098d6 100644
--- a/force-app/main/default/classes/RollupToHPBatch.cls
+++ b/force-app/main/default/classes/RollupToHPBatch.cls
@@ -765,8 +765,12 @@
convertCurrency(RANK_D_inc_tax__c), convertCurrency(RANK_E_inc_tax__c),
Today_Rate__c, Trade__c, convertCurrency(Forecast_Amount_All_F__c), convertCurrency(ShippedAmount__c),
Opp_Actual_ThousandY__c, BO_Forecast_ThousandY__c,
- OP_ThousandY__c, Opp_Forecast_ThousandY__c,
- Opportunity_ThousandY__c, Amount_Without_Tax_Thousand_F__c,
+ // 20220722 ljh SWAG-CE6A58 update start
+ // OP_ThousandY__c, Opp_Forecast_ThousandY__c,
+ // Opportunity_ThousandY__c, Amount_Without_Tax_Thousand_F__c,
+ OP_ThousandY_Target__c, Opp_Forecast_ThousandY__c,
+ Opportunity_ThousandY_Target__c, Amount_Without_Tax_Thousand_F__c,
+ // 20220722 ljh SWAG-CE6A58 update end
Hospital__c, Department_Class__c
, OCSM_RMB_Without_Tax_1000TR__c//20220111 SWAG-C8MBB6 鍔�7.璇环 lt
from Opportunity
@@ -790,9 +794,15 @@
Decimal o1 = opp.Opp_Actual_ThousandY__c == null ? 0 : opp.Opp_Actual_ThousandY__c;
Decimal o2 = opp.BO_Forecast_ThousandY__c == null ? 0 : opp.BO_Forecast_ThousandY__c;
- Decimal o3 = opp.OP_ThousandY__c == null ? 0 : opp.OP_ThousandY__c;
+ // 20220722 ljh SWAG-CE6A58 update start
+ // Decimal o3 = opp.OP_ThousandY__c == null ? 0 : opp.OP_ThousandY__c;
+ Decimal o3 = opp.OP_ThousandY_Target__c == null ? 0 : opp.OP_ThousandY_Target__c;
+ // 20220722 ljh SWAG-CE6A58 update end
Decimal o4 = opp.Opp_Forecast_ThousandY__c == null ? 0 : opp.Opp_Forecast_ThousandY__c;
- Decimal o5 = opp.Opportunity_ThousandY__c == null ? 0 : opp.Opportunity_ThousandY__c;
+ // 20220722 ljh SWAG-CE6A58 update start
+ // Decimal o5 = opp.Opportunity_ThousandY__c == null ? 0 : opp.Opportunity_ThousandY__c;
+ Decimal o5 = opp.Opportunity_ThousandY_Target__c == null ? 0 : opp.Opportunity_ThousandY_Target__c;
+ // 20220722 ljh SWAG-CE6A58 update end
Decimal o6 = opp.Amount_Without_Tax_Thousand_F__c == null ? 0 : opp.Amount_Without_Tax_Thousand_F__c;
//20220111 SWAG-C8MBB6 鍔�7.璇环 lt start
Decimal o7 = opp.OCSM_RMB_Without_Tax_1000TR__c == null ? 0 : opp.OCSM_RMB_Without_Tax_1000TR__c;
@@ -1338,6 +1348,10 @@
acc.Asset_Cnt_TB__c = 0;
acc.Asset_Cnt_USG400__c = 0;
//SWAG-BSC5WP you-20201021 end
+ //20220601 WLIG-CEWDWS you start
+ acc.Asset_Cnt_TB_0520__c = 0;
+ acc.Asset_Cnt_TB_0535__c = 0;
+ //20220601 WLIG-CEWDWS you end
//20200825 ljh SWAG-BRY6PF add start
for (Integer columnNameInt = targetmonth + intMonth; columnNameInt <= targetmonth; columnNameInt++) {
@@ -1370,7 +1384,6 @@
acc.Opp_Actual_ThousandY__c = 0;
acc.BO_Forecast_ThousandY__c = 0;
acc.OP_ThousandY__c = 0;
-
acc.Opp_Forecast_ThousandY__c = 0;
acc.Opportunity_ThousandY__c = 0;
acc.Amount_Without_Tax_Thousand__c = 0;
@@ -1566,7 +1579,11 @@
acc.Opp_cnt_OTVS300__c = 0;
acc.Opp_cnt_ESG400__c = 0;
acc.Opp_cnt_TB__c = 0;
-
+ //20220601 WLIG-CEWDWS you start
+ acc.Opp_cnt_TB_0520__c = 0;
+ acc.Opp_cnt_TB_0535__c = 0;
+ //20220601 WLIG-CEWDWS you end
+
acc.Delivery_cnt_290MiroBF__c = 0;
acc.Delivery_cnt_290MiroGI__c = 0;
acc.Delivery_cnt_290MiroGI_Plus__c = 0;
@@ -1575,6 +1592,10 @@
acc.Delivery_cnt_OTVS300__c = 0;
acc.Delivery_cnt_ESG400__c = 0;
acc.Delivery_cnt_TB__c = 0;
+ //20220601 WLIG-CEWDWS you start
+ acc.Delivery_cnt_TB_0520__c = 0;
+ acc.Delivery_cnt_TB_0535__c = 0;
+ //20220601 WLIG-CEWDWS you end
acc.Order_cnt_290MiroBF__c = 0;
acc.Order_cnt_290MiroGI__c = 0;
@@ -1584,6 +1605,10 @@
acc.Order_cnt_OTVS300__c = 0;
acc.Order_cnt_ESG400__c = 0;
acc.Order_cnt_TB__c = 0;
+ //20220601 WLIG-CEWDWS you start
+ acc.Order_cnt_TB_0520__c = 0;
+ acc.Order_cnt_TB_0535__c = 0;
+ //20220601 WLIG-CEWDWS you end
acc.OPD_USG400__c = 0;
acc.OPD_OTV_S400__c = 0;
@@ -1596,6 +1621,10 @@
acc.OPD_ESG400__c = 0;
acc.OPD_TB__c = 0;
// SWAG-BQ75WE 20200609 End
+ //20220601 WLIG-CEWDWS you start
+ acc.OPD_TB_0520__c = 0;
+ acc.OPD_TB_0535__c = 0;
+ //20220601 WLIG-CEWDWS you end
}
@@ -2047,7 +2076,11 @@
when '18' {acc.Asset_Cnt_OTVS190__c += tmpCnt;}
when '28' {acc.Asset_Cnt_ESG400__c += tmpCnt;}
when '29' {acc.Asset_Cnt_USG400__c += tmpCnt;}
- when '30' {acc.Asset_Cnt_TB__c += tmpCnt;}
+ //20220601 WLIG-CEWDWS you start
+ //when '30' {acc.Asset_Cnt_TB__c += tmpCnt;}
+ when '20' {acc.Asset_Cnt_TB_0535__c += tmpCnt;}
+ when '21' {acc.Asset_Cnt_TB_0520__c += tmpCnt;}
+ //20220601 WLIG-CEWDWS you end
when else {
system.debug('=====setAssetCount else:' + tmpKey + '_x_' + tmpCnt);
}
@@ -2152,14 +2185,21 @@
filedNameMap.put('9', '290Miro_BF__c');
filedNameMap.put('14', 'OTV_S400__c');
filedNameMap.put('15', 'OTV_S300__c');
+
filedNameMap.put('16', 'CV_170__c');
filedNameMap.put('17', 'CV_190__c');
+
// 20210602 SWAG-C3K6L7 Start
//filedNameMap.put('18', 'OTV_S190__c');
// 20210602 SWAG-C3K6L7 End
filedNameMap.put('28', 'ESG400__c');
- filedNameMap.put('29', 'USG400__c');
- filedNameMap.put('30', 'TB__c');
+ filedNameMap.put('29', 'USG400__c'); //璁板綍you 涓婅储骞存病鏈�29 锛屽彧涓嶈繃娌℃湁娉ㄩ噴锛屼粖骞存湁锛屾墍浠ヤ笉鐢ㄥ姩
+ //20220601 WLIG-CEWDWS you start
+ //filedNameMap.put('30', 'TB__c');
+ filedNameMap.put('20', 'TB_0535__c');
+ filedNameMap.put('21', 'TB_0520__c');
+ //20220601 WLIG-CEWDWS you end
+
} else {
filedNameMap = new Map<String,String>();
filedNameMap.put('1', 'CV290__c');
@@ -2173,14 +2213,20 @@
filedNameMap.put('9', '290MiroBF__c');
filedNameMap.put('14', 'OTVS400__c');
filedNameMap.put('15', 'OTVS300__c');
+
filedNameMap.put('16', 'CV170__c');
filedNameMap.put('17', 'CV190__c');
+
// 20210602 SWAG-C3K6L7 Start
//filedNameMap.put('18', 'OTVS190__c');
// 20210602 SWAG-C3K6L7 End
filedNameMap.put('28', 'ESG400__c');
filedNameMap.put('29', 'USG400__c');
- filedNameMap.put('30', 'TB__c');
+ //20220601 WLIG-CEWDWS you start
+ //filedNameMap.put('30', 'TB__c');
+ filedNameMap.put('20', 'TB_0535__c');
+ filedNameMap.put('21', 'TB_0520__c');
+ //20220601 WLIG-CEWDWS you end
// }
}
@@ -2258,8 +2304,11 @@
allList.add(onlyCountDepList);
// 20210602 SWAG-C3K6L7 Start
//}else if(i == '14' || i == '15' || i == '17' || i == '18' || i == '29' || i == '28' || i == '30'){
- } else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '30'){
+ //} else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '30'){
// 20210602 SWAG-C3K6L7 End
+ //20220601 WLIG-CEWDWS you start
+ } else if(i == '14' || i == '15' || i == '17' || i == '29' || i == '28' || i == '20' || i == '21'){
+ //20220601 WLIG-CEWDWS you end
// 杩欓噷鏄渶瑕佷慨鏀圭殑 start
allCountDepList.add(departmentGS); // 閮借绠楀湪鏅绉戦噷
// noCountDepList.add() 杩欓噷娌℃湁涓嶉渶瑕佽绠楃殑绉戝
--
Gitblit v1.9.1