修改createBatch使用自带函数saveBatch保存信息

This commit is contained in:
duwenyuan 2025-06-30 10:52:49 +08:00
parent a25e7e91ac
commit 743da3b207
2 changed files with 1 additions and 27 deletions

View File

@ -31,32 +31,6 @@
#{calibration.moddate})
</insert>
<insert id="createBatch" parameterType="org.jeecg.modules.base.entity.rnauto.GardsCalibration">
insert into RNAUTO.GARDS_CALIBRATION(
SAMPLE_ID,
IDANALYSIS,
SAMPLE_TYPE,
CALTYPE,
FUNCTION,
FUNCTIONDEF,
STARTOFRANGE,
ENDOFRANGE,
COEFF_STRING,
moddate)
values
<foreach collection="calibrations" separator="," item="calibration">
(#{calibration.sampleId},
#{calibration.idAnalysis},
#{calibration.sampleType},
#{calibration.calType},
#{calibration.function},
#{calibration.functionDef},
#{calibration.startOfRange},
#{calibration.endOfRange},
#{calibration.coeffString},
#{calibration.moddate})
</foreach>
</insert>
</mapper>

View File

@ -40,7 +40,7 @@ public class GardsCalibrationServiceImpl extends ServiceImpl<GardsCalibrationMap
@Override
public void createBatch(List<GardsCalibration> calibrations) {
this.baseMapper.createBatch(calibrations);
this.saveBatch(calibrations);
}
/**