From 962519811b7c4be07f30d09e791798b0ea79d3ae Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:54:02 +0800
Subject: [PATCH] 同步代码
---
force-app/main/default/classes/XinDailyReportController.cls | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/classes/XinDailyReportController.cls b/force-app/main/default/classes/XinDailyReportController.cls
index 0ed1b1e..f43dcf9 100644
--- a/force-app/main/default/classes/XinDailyReportController.cls
+++ b/force-app/main/default/classes/XinDailyReportController.cls
@@ -4024,21 +4024,23 @@
if (month < 4) {
year -= 1;
}
+
Date dateFinalStartDate = Date.newInstance(year, 4, 1);
+ system.debug('===DepIDList=='+DepIDList+'==dateFinalStartDate==='+dateFinalStartDate);
string yearP = year - 1868 + 'P';
Map<ID,Account> DepartMap =
New Map<ID,Account> ([select id, ParentId
from Account
where id in: DepIDList
and Parent.CreateDate__c <: dateFinalStartDate
- and Hospital__r.OCM_Category__c like 'H%'
+ and Hospital__r.OCM_Category__c like '%H%'
and Parent.RecordType.DeveloperName in
('Department_Class_GI','Department_Class_BF',
'Department_Class_GS','Department_Class_URO',
'Department_Class_GYN')]);
Map<Id, AggregateResult> ANCLMap = new Map<Id, AggregateResult> ();
-
+ system.debug('===DepartMap=='+DepartMap);
if(DepartMap != null && DepartMap.size() > 0 ){
List<ID> DCIDList = new List<ID>();
for(Account temDep: DepartMap.values()){
@@ -4057,11 +4059,11 @@
or URO_KPI_input__c ='鐧诲綍瀹屾瘯')
group by Account__c
]);
-
+ system.debug('===activities=='+activities+'==DepartMap=='+DepartMap+'====='+ANCLMap);
for (Integer i = 0; i < activities.size(); i++) {
Activity a = activities[i];
if (a.act.whatid__c != null && a.act.whatid__c.startsWith('001')) {
-
+ system.debug('杩涙潵浜�'+a.act.whatid__c);
if(DepartMap.get(a.act.whatid__c)!=null &&
ANCLMap.get(DepartMap.get(a.act.whatid__c).ParentId) ==null){
IsAlertInputDep = true;
--
Gitblit v1.9.1