标签:oda mono flag arc ted module select code index
int temp = monomerProductInfoList.size()/500;
for(int i=0;i<temp;i++){
monomerProductInfoDao.insertBatch(monomerProductInfoList.subList(i*500,i*500+500));
}
monomerProductInfoDao.insertBatch(monomerProductInfoList.subList(temp*500,monomerProductInfoList.size()));
<insert id="insertBatch" parameterType="java.util.ArrayList">
insert into monomer_product_info(pk_id,excel_id,monomer_num,monomer_barcode,module_included,monomer_model,monomer_standard,real_content,real_voltage,real_quality,production_date,create_user,create_date,del_flag,department_id)
<foreach collection="list" item="item" index="index" separator="union all">
select #{item.pkId},#{item.excelId},#{item.monomerNum},#{item.monomerBarcode},#{item.moduleIncluded},#{item.monomerModel},#{item.monomerStandard},#{item.realContent},#{item.realVoltage},#{item.realQuality},#{item.productionDate,jdbcType=DATE},#{item.createUser},#{item.createDate,jdbcType=DATE},#{item.delFlag},#{item.departmentId} from dual
</foreach>
</insert>
标签:oda mono flag arc ted module select code index
原文地址:https://www.cnblogs.com/chonghaojie/p/9567192.html