From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523
---
force-app/main/default/classes/OppLoseController.cls | 44 +++++++++++++++++++++++++++++++++++++++++---
1 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/OppLoseController.cls b/force-app/main/default/classes/OppLoseController.cls
index fb78bab..099091c 100644
--- a/force-app/main/default/classes/OppLoseController.cls
+++ b/force-app/main/default/classes/OppLoseController.cls
@@ -4,12 +4,13 @@
public static InitData init(String taskId){
InitData res = new initData();
try{
- task__c task = [SELECT id, OpportunityId__c
+ task__c task = [SELECT id, OpportunityId__c , taskStatus__c
FROM task__c
WHERE Id =: taskId
LIMIT 1];
res.task = task;
+ res.taskStatus = task.taskStatus__c;
res.OpportunityId = task.OpportunityId__c;
Opportunity opp = [SELECT Sales_owner_buchangID__c,Manager_name__c,Sales_owner_buchang__c,
@@ -43,13 +44,48 @@
public class ReturnData{
}
-
+ //OLY涓爣
+ @AuraEnabled
+ public static String taskOLYwinBid(String recordId) {
+ String messageText = '';
+ try {
+ Opportunity opp = [SELECT Id,ConfirmationofAward__c FROM Opportunity WHERE Id = :recordId LIMIT 1];
+ opp.Id = recordId;
+ opp.ConfirmationofAward__c = 'OLY涓爣';
+ messageText = '1';
+ update opp;
+ System.debug(LoggingLevel.INFO, '*** winBid: ' + opp);
+ return messageText;
+ } catch (Exception ex) {
+ System.debug(LoggingLevel.INFO, '*** winBidXu: ' + ex);
+ messageText = ex.getMessage();
+ return messageText;
+ }
+ }
+ //绔炰簤瀵规墜涓爣
+ @AuraEnabled
+ public static String taskLoseBid(String recordId) {
+ String messageText = '';
+ try {
+ Opportunity opp = [SELECT Id,ConfirmationofAward__c FROM Opportunity WHERE Id = :recordId LIMIT 1];
+ opp.Id = recordId;
+ opp.ConfirmationofAward__c = '绔炰簤瀵规墜涓爣';
+ messageText = '1';
+ update opp;
+ System.debug(LoggingLevel.INFO, '*** winBid: ' + opp);
+ return messageText;
+ } catch (Exception ex) {
+ System.debug(LoggingLevel.INFO, '*** winBidXu: ' + ex);
+ messageText = ex.getMessage();
+ return messageText;
+ }
+ }
public class InitData{
//璇环鏁版嵁
@AuraEnabled
public Opportunity opp;
@AuraEnabled
- public String stageName;
+ public String StageName;
@AuraEnabled
public Boolean SAP_Send_OK;
@AuraEnabled
@@ -73,6 +109,8 @@
@AuraEnabled
public String OpportunityId;
@AuraEnabled
+ public String taskStatus;
+ @AuraEnabled
public task__c task;
}
--
Gitblit v1.9.1