mybatis_批量插入参数List<Map<String,Object>>
Dao
int insertCoachMessageInfo(@Param("listInsert")List<Map<String,Object>> listInsert);
xml
insert into coach_message_info(company_id,coach_info_id,title,content,is_checked,create_time)
values
<foreach collection="listInsert" separator="," item="map">
(#{map.companyId},#{map.coachInfo},#{map.title},#{map.content},#{map.is_checked},#{map.create_time})
</foreach>