diff --git a/src/main/java/com/docus/server/gdszyzh/service/impl/ReportCollectServiceImpl.java b/src/main/java/com/docus/server/gdszyzh/service/impl/ReportCollectServiceImpl.java index 76002a7..be72991 100644 --- a/src/main/java/com/docus/server/gdszyzh/service/impl/ReportCollectServiceImpl.java +++ b/src/main/java/com/docus/server/gdszyzh/service/impl/ReportCollectServiceImpl.java @@ -52,6 +52,9 @@ public class ReportCollectServiceImpl implements ReportCollectService { @Override public void collectPacs(List patientIds) { + if(Func.isEmpty(patientIds)){ + return; + } List basicList = tBasicMapper.getTbasicByPatientIds(patientIds); for (TBasic basic : basicList) { collectPacs(basic); @@ -60,6 +63,9 @@ public class ReportCollectServiceImpl implements ReportCollectService { @Override public void collectLis(List patientIds) { + if(Func.isEmpty(patientIds)){ + return; + } List basicList = tBasicMapper.getTbasicByPatientIds(patientIds); for (TBasic basic : basicList) { collectLis(basic); @@ -68,6 +74,9 @@ public class ReportCollectServiceImpl implements ReportCollectService { @Override public void collectEcg(List patientIds) { + if(Func.isEmpty(patientIds)){ + return; + } List basicList = tBasicMapper.getTbasicByPatientIds(patientIds); for (TBasic basic : basicList) { collectEcg(basic); @@ -76,6 +85,9 @@ public class ReportCollectServiceImpl implements ReportCollectService { @Override public void collectShouMa(List patientIds) { + if(Func.isEmpty(patientIds)){ + return; + } List basicList = tBasicMapper.getTbasicByPatientIds(patientIds); for (TBasic basic : basicList) { collectShouMa(basic); @@ -84,6 +96,9 @@ public class ReportCollectServiceImpl implements ReportCollectService { @Override public void collectIcu(List patientIds) { + if(Func.isEmpty(patientIds)){ + return; + } List basicList = tBasicMapper.getTbasicByPatientIds(patientIds); for (TBasic basic : basicList) { collectIcu(basic);