修改createBatch使用自带函数saveBatch保存信息
This commit is contained in:
parent
a25e7e91ac
commit
743da3b207
|
@ -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>
|
|
@ -40,7 +40,7 @@ public class GardsCalibrationServiceImpl extends ServiceImpl<GardsCalibrationMap
|
|||
|
||||
@Override
|
||||
public void createBatch(List<GardsCalibration> calibrations) {
|
||||
this.baseMapper.createBatch(calibrations);
|
||||
this.saveBatch(calibrations);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user