From daa20198a21128fc13cfbf95307836e284deece0 Mon Sep 17 00:00:00 2001
From: 翟兴坤 <zxk991212@163.com>
Date: 星期五, 11 三月 2022 18:04:32 +0800
Subject: [PATCH] 追溯周报的Controller
---
force-app/main/default/classes/RetrospectiveWeeklyReportController.cls | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/force-app/main/default/classes/RetrospectiveWeeklyReportController.cls b/force-app/main/default/classes/RetrospectiveWeeklyReportController.cls
index 2a4ae4a..4eb57ee 100644
--- a/force-app/main/default/classes/RetrospectiveWeeklyReportController.cls
+++ b/force-app/main/default/classes/RetrospectiveWeeklyReportController.cls
@@ -214,6 +214,7 @@
agency_report_header = LightningUtil.upsertAgencyReportHeader(agency_report_header);
return agency_report_header.Id;
}
+ //鏂板缓鍛ㄦ姤涓�瑙�
public static Agency_Report_Header__c makeReportHeader(String name, String s_date, String s_agency, String head_key){
User login_user_id = LightningUtil.loginUserId();
Date week = Date.valueOf(s_date);
@@ -903,19 +904,19 @@
}
}
if(EffectProgressMap.containsKey(lineList[12])){
- agencyReport.EffectProgress__c = EffectProgressMap.get(lineList[12]).Id;
+ agencyReport.EffectProgress__c = EffectProgressMap.get(lineList[12]).EffectProgress__c;
}
if(lineList[13] != null){
agencyReport.ConsumptionOfConsumables__c = Decimal.valueOf(lineList[13]);
}
if(OtherBrandConsumablesMap.containsKey(lineList[14])){
- agencyReport.WarlockClassification__c = OtherBrandConsumablesMap.get(lineList[14]).Id;
+ agencyReport.WarlockClassification__c = OtherBrandConsumablesMap.get(lineList[14]).WarlockClassification__c;
}
if(ProductCcategorynMap.containsKey(lineList[15])){
- agencyReport.ProductCcategory__c = ProductCcategorynMap.get(lineList[15]).Id;
+ agencyReport.ProductCcategory__c = ProductCcategorynMap.get(lineList[15]).ProductCcategory__c;
}
if(productCategoriesMap.containsKey(lineList[16])){
- agencyReport.productCategories__c = productCategoriesMap.get(lineList[16]).Id;
+ agencyReport.productCategories__c = productCategoriesMap.get(lineList[16]).productCategories__c;
}
if(lineList[17] != null){
agencyReport.warlocksNumber__c = Decimal.valueOf(lineList[17]);
@@ -1096,7 +1097,7 @@
for(FieldClassification__c efptc : eftpcList){
Map<String,String> efptcMap = new Map<String,String>();
efptcMap.put('label', efptc.EffectProgress__c);
- efptcMap.put('value', efptc.Id);
+ efptcMap.put('value', efptc.EffectProgress__c);
options.add(efptcMap);
}
system.debug('options===============>'+options);
@@ -1119,7 +1120,7 @@
for(FieldClassification__c WarlockClassification : WarlockClassificationList){
Map<String,String> WarlockClassificationMap = new Map<String,String>();
WarlockClassificationMap.put('label', WarlockClassification.WarlockClassification__c);
- WarlockClassificationMap.put('value', WarlockClassification.Id);
+ WarlockClassificationMap.put('value', WarlockClassification.WarlockClassification__c);
options.add(WarlockClassificationMap);
}
return options;
@@ -1142,7 +1143,7 @@
for(FieldClassification__c ProductCcategory : ProductCcategoryList){
Map<String,String> ProductCcategorynMap = new Map<String,String>();
ProductCcategorynMap.put('label', ProductCcategory.ProductCcategory__c);
- ProductCcategorynMap.put('value', ProductCcategory.Id);
+ ProductCcategorynMap.put('value', ProductCcategory.ProductCcategory__c);
options.add(ProductCcategorynMap);
}
return options;
@@ -1167,7 +1168,7 @@
for(FieldClassification__c productCategories : productCategoriesList){
Map<String,String> productCategoriesMap = new Map<String,String>();
productCategoriesMap.put('label', productCategories.productCategories__c);
- productCategoriesMap.put('value', productCategories.Id);
+ productCategoriesMap.put('value', productCategories.productCategories__c);
options.add(productCategoriesMap);
}
System.debug('options=============>'+options);
--
Gitblit v1.9.1