1、List类型
dao层:int batchAddCarNoticeLog(List<MealCarNoticeLog> noticeList);
mapper文件:(批量插入)
<insert id="batchAddCarNoticeLog" parameterType="java.util.List">
insert into biz_car_notice_log
(notice_id, car_id, update_user_no,
need_notice_user_no, goods_id, goods_name,
number, add_flag, notice_flag,
create_time, update_time, delete_flag
)
values
<foreach collection="list" item="item" index="index" separator=",">
(#{item.noticeId,jdbcType=VA