1.数组循环删除:
mapper接口:
int delete(@Param("cidList") Integer[] cidList);
XML:
<delete id="delete" >
delete from g_work_schedule_car where cid in(
<foreach collection="cidList" item="cid" separator=",">
#{cid}
</foreach>)
</delete>
2023-12-24 18:05:52
1.数组循环删除:
mapper接口:
int delete(@Param("cidList") Integer[] cidList);
XML:
<delete id="delete" >
delete from g_work_schedule_car where cid in(
<foreach collection="cidList" item="cid" separator=",">
#{cid}
</foreach>)
</delete>
下一篇:Xen虚拟机快照定时服务配置