From 4420517bbbffea48cabe7a7dcdf2e1c4b440fc85 Mon Sep 17 00:00:00 2001
From: GWY <guweiyi@prec-tech.com>
Date: 星期一, 30 五月 2022 16:15:26 +0800
Subject: [PATCH] 两个LS特殊条件在说明的增减
---
force-app/main/default/classes/NewHighProductsOppController.cls | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/NewHighProductsOppController.cls b/force-app/main/default/classes/NewHighProductsOppController.cls
index 722d92c..a5b53a2 100644
--- a/force-app/main/default/classes/NewHighProductsOppController.cls
+++ b/force-app/main/default/classes/NewHighProductsOppController.cls
@@ -14,6 +14,10 @@
public String ProductSegment { get; set; }
+ public String staticResource {get; set;}
+
+ public String oppid {get; set;}
+
public NewHighProductsOppController() {
baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
String path = URL.getCurrentRequestUrl().getPath();
@@ -33,6 +37,7 @@
accId = System.currentPageReference().getParameters().get('accid');
conId = System.currentPageReference().getParameters().get('conId');
+ staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity'));
List<Account> accList = [select Id, Name, ProductSegment__c,OwnerID__c from Account where Id = :accId];
if (accList.size() > 0) {
@@ -103,9 +108,10 @@
insert ocr;
hasError = false;
-
- String url = baseUrl + '\\' + opp.Id;
- return new Pagereference(url);
+ oppid = opp.id;
+ // String url = baseUrl + '\\' + opp.Id;
+ // return new Pagereference(url);
+ return null;
} catch (Exception e) {
Database.rollback(sp);
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, e.getMessage()));
--
Gitblit v1.9.1