From 3fb212a3ef18270cf6d98c777b2065bae8bd76b2 Mon Sep 17 00:00:00 2001 From: orgin Date: Wed, 22 Nov 2023 15:34:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=A7=A3=E5=86=B3=20calibration=20?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=95=B0=E7=BB=84=E6=89=A7=E8=A1=8C=20sql=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/modules/spectrum/Sample_G_Analysis.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_G_Analysis.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_G_Analysis.java index 459dc5b5..1a1381dd 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_G_Analysis.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_G_Analysis.java @@ -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){