From 2f4492ee18f90274582fcc2bb06f5e9bf64136e8 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期五, 13 五月 2022 17:32:14 +0800
Subject: [PATCH] ProdBackup0513

---
 force-app/main/default/classes/NewCrossHighOpportunityController.cls |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/force-app/main/default/classes/NewCrossHighOpportunityController.cls b/force-app/main/default/classes/NewCrossHighOpportunityController.cls
index 815d013..dd4c0b5 100644
--- a/force-app/main/default/classes/NewCrossHighOpportunityController.cls
+++ b/force-app/main/default/classes/NewCrossHighOpportunityController.cls
@@ -14,10 +14,6 @@
 
 	public String ProductSegment { get; set; }
 
-	public String staticResource {get; set;}
-
-	public String oppid {get; set;}
-
 	public NewCrossHighOpportunityController() {
 		baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
 		String path = URL.getCurrentRequestUrl().getPath();
@@ -37,8 +33,6 @@
 
 		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) {
@@ -114,10 +108,8 @@
 
 			hasError = false;
 
-			oppid = opp.id;
-			// String url = baseUrl + '\\' + opp.Id;
-			// return new Pagereference(url);
-			return null;
+			String url = baseUrl + '\\' + opp.Id;
+			return new Pagereference(url);
 		} catch (Exception e) {
 			Database.rollback(sp);
 			ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, e.getMessage()));

--
Gitblit v1.9.1