mybatis 如何让前端实现多选的功能
1个回答
2018-07-23 · 国内最优秀java资源共享平台
关注
展开全部
需要用到mybatis的标签foreach
<delete id="batchDeletes" parameterType="java.util.Map">
DELETE FROM t_radar where id in
<foreach collection="delList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<delete id="batchDeletes" parameterType="java.util.Map">
DELETE FROM t_radar where id in
<foreach collection="delList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询