From 95118bcc8e4b1d3aa0c5acacb76f8d11418cd8bc Mon Sep 17 00:00:00 2001 From: duwenyuan <15600000461@163.com> Date: Tue, 3 Jun 2025 18:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E6=95=B0=E6=8D=AE=E6=97=B6=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?mybatis=20=E8=87=AA=E5=B8=A6=E7=9A=84saveBatch=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/entity/rnauto/GardsCalibration.java | 2 +- .../mapper/GardsCalibrationMapper.java | 3 +-- .../mapper/xml/GardsCalibrationMapper.xml | 26 ------------------- .../impl/GardsCalibrationServiceImpl.java | 2 +- 4 files changed, 3 insertions(+), 30 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsCalibration.java b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsCalibration.java index b2b47ec8..c3040602 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsCalibration.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/modules/base/entity/rnauto/GardsCalibration.java @@ -41,7 +41,7 @@ public class GardsCalibration implements Serializable { /** * 拟合方程ID号(统一定义) */ - @TableField(value = "FUNCTION") + @TableField(value = "\"FUNCTION\"") private Integer function; /** * 拟合方程描述 diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/GardsCalibrationMapper.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/GardsCalibrationMapper.java index 0707374e..d9a756c4 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/GardsCalibrationMapper.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/GardsCalibrationMapper.java @@ -2,6 +2,7 @@ package org.jeecg.modules.mapper; import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.base.entity.rnauto.GardsCalibration; @@ -11,6 +12,4 @@ public interface GardsCalibrationMapper extends BaseMapper { @InterceptorIgnore(tenantLine = "true") public int create(@Param("calibration") GardsCalibration calibration); - @InterceptorIgnore(tenantLine = "true") - public int createBatch(@Param("calibrations") List calibration); } diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml index 3919453d..4923887a 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/mapper/xml/GardsCalibrationMapper.xml @@ -31,32 +31,6 @@ #{calibration.moddate}) - - insert into RNAUTO.GARDS_CALIBRATION( - SAMPLE_ID, - IDANALYSIS, - SAMPLE_TYPE, - CALTYPE, - FUNCTION, - FUNCTIONDEF, - STARTOFRANGE, - ENDOFRANGE, - COEFF_STRING, - moddate) - values - - (#{calibration.sampleId}, - #{calibration.idAnalysis}, - #{calibration.sampleType}, - #{calibration.calType}, - #{calibration.function}, - #{calibration.functionDef}, - #{calibration.startOfRange}, - #{calibration.endOfRange}, - #{calibration.coeffString}, - #{calibration.moddate}) - - \ No newline at end of file diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/service/impl/GardsCalibrationServiceImpl.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/service/impl/GardsCalibrationServiceImpl.java index afbb4a64..59d463f2 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/service/impl/GardsCalibrationServiceImpl.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/service/impl/GardsCalibrationServiceImpl.java @@ -48,7 +48,7 @@ public class GardsCalibrationServiceImpl extends ServiceImpl calibrations) { - this.baseMapper.createBatch(calibrations); + this.saveBatch(calibrations); } /**