fix:解决 calibration 为空数组执行 sql 报错问题

This commit is contained in:
orgin 2023-11-22 15:34:59 +08:00
parent 65ef853af3
commit 3fb212a3ef

View File

@ -670,7 +670,9 @@ public class Sample_G_Analysis {
calibration.setModdate(new Date());
calibrations.add(calibration);
}
serviceQuotes.getGardsCalibrationService().createBatch(calibrations);
if (calibrations.size() > 0) {
serviceQuotes.getGardsCalibrationService().createBatch(calibrations);
}
}
public void savePeaks(GStoreMiddleProcessData middleData,Integer sampleId, Integer IdAnalysis){