From 71b93327e8f3fb3bffffc7c033c1f782e7b6ab32 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 22 五月 2023 17:37:16 +0800
Subject: [PATCH] test

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

diff --git a/force-app/main/default/classes/EquipmentRepairBatch.cls b/force-app/main/default/classes/EquipmentRepairBatch.cls
index a818596..3e1104e 100644
--- a/force-app/main/default/classes/EquipmentRepairBatch.cls
+++ b/force-app/main/default/classes/EquipmentRepairBatch.cls
@@ -7,7 +7,9 @@
 *****************************************************************************************************/
 global class EquipmentRepairBatch implements Database.Batchable<sObject>,Database.Stateful {
     public String query;
-    public List < String > accountIdList;
+    // public List < String > accountIdList;
+    public Set < String > accountIdList;
+
     private BatchIF_Log__c iflog;
     public Date td = Date.today();  //濡�2022.10.15
     public String OCSM_Period_half;
@@ -22,7 +24,7 @@
         // OCSM_Period = 'FY'+(td.year()+1);
     }
 
-    global EquipmentRepairBatch(List <String> accountIdList) {
+    global EquipmentRepairBatch(Set <String> accountIdList) {
         this.query = query;
         this.accountIdList = accountIdList;
         // OCSM_Period = 'FY'+(td.year()+1);
@@ -91,9 +93,13 @@
         //淇濇湁璁惧 1.鏈夋棤缁翠慨鍚堝悓锛堝瓧娈碉級2.
 
         //淇濇湁璁惧Id
-        List<Id> mids = new List<Id>();
+        // List<Id> mids = new List<Id>();
+        Set<Id> mids = new Set<Id>();
+
         //鍖婚櫌Id
-        List<Id> assetHos = new List<Id>();
+        // List<Id> assetHos = new List<Id>();
+        Set<Id> assetHos = new Set<Id>();
+
         // for (Asset ass: resultList) {
         //     mids.add(ass.Id);
         //     assetHos.add(ass.Hospital__c);

--
Gitblit v1.9.1