From 560847b0b610cfe48d6c82a6850245d7eaefd97b Mon Sep 17 00:00:00 2001 From: liquanyu Date: Thu, 22 Apr 2021 19:25:48 +0800 Subject: [PATCH] update --- .../resources/mainOrm/master/MasterMysqlAntexc.xml | 379 ++++++++++++--------- 1 file changed, 214 insertions(+), 165 deletions(-) diff --git a/platform-biz-service/src/main/resources/mainOrm/master/MasterMysqlAntexc.xml b/platform-biz-service/src/main/resources/mainOrm/master/MasterMysqlAntexc.xml index 32f63a9..eabd17f 100644 --- a/platform-biz-service/src/main/resources/mainOrm/master/MasterMysqlAntexc.xml +++ b/platform-biz-service/src/main/resources/mainOrm/master/MasterMysqlAntexc.xml @@ -1479,7 +1479,7 @@ report_antexchu l on tp.patientId=l.sourceId INNER JOIN report_risk_level r on r.foreignId = l.cid INNER JOIN organization o on l.hospitalId=o.id - where r.type = 2 and c.type=1 and riskLevel > 1 + where r.type = 2 and l.type=1 and riskLevel > 1 GROUP BY o.name @@ -1501,7 +1501,7 @@ report_antexchu l on tp.patientId=l.sourceId INNER JOIN report_risk_level r on r.foreignId = l.cid INNER JOIN organization o on l.hospitalId=o.id - where r.type = 2 and c.type=1 and riskLevel = 2 + where r.type = 2 and l.type=1 and riskLevel = 2 GROUP BY o.name @@ -1547,7 +1547,7 @@ report_antexchu l on tp.patientId=l.sourceId INNER JOIN report_risk_level r on r.foreignId = l.cid INNER JOIN organization o on l.hospitalId=o.id - where r.type = 2 and c.type=1 and riskLevel = 4 + where r.type = 2 and l.type=1 and riskLevel = 4 GROUP BY o.name @@ -1574,7 +1574,7 @@ report_antexchu l on tp.patientId=l.sourceId INNER JOIN report_risk_level r on r.foreignId = l.cid INNER JOIN organization o on l.hospitalId=o.id - where r.type = 2 and c.type=1 and riskLevel = 5 + where r.type = 2 and l.type=1 and riskLevel = 5 GROUP BY o.name @@ -1599,7 +1599,7 @@ report_antexchu l on tp.patientId=l.sourceId INNER JOIN report_risk_level r on r.foreignId = l.cid INNER JOIN organization o on l.hospitalId=o.id - where r.type = 2 and c.type=1 and riskLevel = 1 + where r.type = 2 and l.type=1 and riskLevel = 1 GROUP BY o.name @@ -1733,205 +1733,233 @@ GROUP BY o.name @@ -1954,6 +1982,7 @@ -- 1.8.3.1