From 1b1347f2e6d40aa75bbfdfb4789d60efeff13ea8 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期五, 15 四月 2022 09:41:12 +0800
Subject: [PATCH] LS内贸未发货和以后的不显示二级经营证(临时)
---
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