1 <!--批量插入-->
 2 
 3     <insert >
 4          insert into storage_logistic ( plant_name, location, change_time, num, ebeln, ebelp, zid_po, bwart, elikz, mblnr )
 5           VALUES
 6         <foreach collection="list"  item="itm" separator=",">
 7             (#{itm.plant_name},#{itm.location},#{itm.change_time},#{itm.num},#{itm.ebeln},#{itm.ebelp},#{itm.zid_po},#{itm.bwart},#{itm.elikz},#{itm.mblnr})
 8         </foreach>
 9         <selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="storage_id">
10             select LAST_INSERT_ID();
11         </selectKey>
12     </insert>



public int batchSave(List<StorageLogisticVo> storagelogisticvo) {
int num = storageLogisticMapper.batchSave(storagelogisticvo);
return num;
}

 

相关文章:

  • 2021-09-15
  • 2021-07-21
  • 2021-08-17
  • 2021-10-15
  • 2022-01-10
  • 2021-07-27
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-11-29
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案