fix: 判断主键集合是否为空

master
WenYongbin 6 hours ago
parent 1778c4e0ef
commit 05fc82b8f0

@ -52,6 +52,9 @@ public class ReportCollectServiceImpl implements ReportCollectService {
@Override
public void collectPacs(List<String> patientIds) {
if(Func.isEmpty(patientIds)){
return;
}
List<TBasic> basicList = tBasicMapper.getTbasicByPatientIds(patientIds);
for (TBasic basic : basicList) {
collectPacs(basic);
@ -60,6 +63,9 @@ public class ReportCollectServiceImpl implements ReportCollectService {
@Override
public void collectLis(List<String> patientIds) {
if(Func.isEmpty(patientIds)){
return;
}
List<TBasic> basicList = tBasicMapper.getTbasicByPatientIds(patientIds);
for (TBasic basic : basicList) {
collectLis(basic);
@ -68,6 +74,9 @@ public class ReportCollectServiceImpl implements ReportCollectService {
@Override
public void collectEcg(List<String> patientIds) {
if(Func.isEmpty(patientIds)){
return;
}
List<TBasic> basicList = tBasicMapper.getTbasicByPatientIds(patientIds);
for (TBasic basic : basicList) {
collectEcg(basic);
@ -76,6 +85,9 @@ public class ReportCollectServiceImpl implements ReportCollectService {
@Override
public void collectShouMa(List<String> patientIds) {
if(Func.isEmpty(patientIds)){
return;
}
List<TBasic> basicList = tBasicMapper.getTbasicByPatientIds(patientIds);
for (TBasic basic : basicList) {
collectShouMa(basic);
@ -84,6 +96,9 @@ public class ReportCollectServiceImpl implements ReportCollectService {
@Override
public void collectIcu(List<String> patientIds) {
if(Func.isEmpty(patientIds)){
return;
}
List<TBasic> basicList = tBasicMapper.getTbasicByPatientIds(patientIds);
for (TBasic basic : basicList) {
collectIcu(basic);

Loading…
Cancel
Save