mybatis 记录
程序员文章站
2022-03-29 11:25:54
删除list集合 **Mapper.xml **Mapper ......
删除list集合
**Mapper.xml
<delete id="deleteBackstageRecommend" parameterType="java.util.List"> delete from backPersonConfig where (agentCode,guaranteeType) in <foreach collection="list" item="item" index="index" separator="," open="(" close=")"> (#{item.agentCode},#{item.guaranteeType}) </foreach> </delete>
**Mapper
/** * 删除推荐产品 * @param backPersonConfig */ public void deleteBackstageRecommend(List<BackPersonConfig> backPersonConfig);
上一篇: Flash cs6怎么创建XML文档?
下一篇: mysql中USING的用法