From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新

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

diff --git a/force-app/main/default/classes/OpportunityWebService.cls b/force-app/main/default/classes/OpportunityWebService.cls
index 7aef092..ca1b75c 100644
--- a/force-app/main/default/classes/OpportunityWebService.cls
+++ b/force-app/main/default/classes/OpportunityWebService.cls
@@ -1,5 +1,5 @@
 global class OpportunityWebService {
-    
+    @AuraEnabled
     WebService static String changeTrade(String oppId){
 
         List<Quote> quoList = [select id from Quote where OpportunityId = :oppId];
@@ -405,4 +405,15 @@
         if (updList.size() > 0)  update updList;
         return 'OK';
     }
+    //SWAG-CG88AG銆愬鎵樸�戞彁鍑轰环鏍肩敵璇锋槸鍦ㄥ崗璁湁鏁堟湡鍐咃紝鍏佽WIN fy start 
+    WebService static Boolean judgeIsAssistantAppliedOutTime(String  Quoteid) {
+        List<PromotionSales__c> PromotionSalesList = [select id,IsAssistantAppliedOutTime__c from PromotionSales__c where Quote__r.Quote_No__c =:Quoteid];
+        for(PromotionSales__c pro : PromotionSalesList){
+            if(pro.IsAssistantAppliedOutTime__c){
+                return false;
+            }
+        }
+        return true;
+    }
+    //SWAG-CG88AG銆愬鎵樸�戞彁鍑轰环鏍肩敵璇锋槸鍦ㄥ崗璁湁鏁堟湡鍐咃紝鍏佽WIN fy end 
 }
\ No newline at end of file

--
Gitblit v1.9.1