From 552f32c93251191103a633ca292c06a445e2551f Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期二, 15 三月 2022 18:25:31 +0800
Subject: [PATCH] OBPM备品相关修改 & 【委托】【phase5上线课题131】-增加明细的时长字段“提交申请到备品出库时长”
---
force-app/main/default/classes/RentalApplyTriggerHandler.cls | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/RentalApplyTriggerHandler.cls b/force-app/main/default/classes/RentalApplyTriggerHandler.cls
index d0edbd7..871a874 100644
--- a/force-app/main/default/classes/RentalApplyTriggerHandler.cls
+++ b/force-app/main/default/classes/RentalApplyTriggerHandler.cls
@@ -695,7 +695,16 @@
}
//鎷疯礉鍖婚櫌鐨勫競瀛楁
Map<Id, Account> accMap = new Map<Id, Account>();
+ // Set<Id> hpIdSetCopy = new Set<Id>();
+ // Integer count = 0;
if (hpIdSet.size() > 0) {
+ // for (Id a : hpIdSet) {
+ // hpIdSetCopy.add(a);
+ // count++;
+ // if (count>=99) {
+ // break;
+ // }
+ // }
accMap.putAll([SELECT Id, City_Master__r.Name, State_Text__c FROM Account WHERE Id IN: hpIdSet]);
for (Rental_Apply__c nObj : newList) {
if (accMap.containsKey(nObj.Hospital__c)) {
--
Gitblit v1.9.1