From ead4df22dca33a867279471821ca675f91dec760 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期六, 14 五月 2022 18:44:54 +0800
Subject: [PATCH] FixIssue0514

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

diff --git a/force-app/main/default/classes/SBG200Rest.cls b/force-app/main/default/classes/SBG200Rest.cls
index 0398cd6..75b17eb 100644
--- a/force-app/main/default/classes/SBG200Rest.cls
+++ b/force-app/main/default/classes/SBG200Rest.cls
@@ -390,8 +390,8 @@
 	public static void deleteAccountLicenseInformation(Map<String, Account> accountMap) {
 
 		System.debug('deleteAccountLicenseInformation--->Start');
-		List<License_Information__c> existList = [select id, Name, AccountManagementCode__c
-		        from License_Information__c where AccountManagementCode__c In :accountMap.keySet()];
+		List<License_Information__c> existList = [select id, Name, AccountManagementCode__c,Is_Active_Formula__c 
+		        from License_Information__c where AccountManagementCode__c In :accountMap.keySet() and Is_Active_Formula__c = true];
 
 		if (existList.size() > 0) {
 			delete existList;

--
Gitblit v1.9.1