mybatis 批量查询
来源:互联网 发布:php多域名共享session 编辑:程序博客网 时间:2024/06/07 03:14
<!-- 判断当前数据是否被预定 -->
<select id="isOrdered" parameterType="java.util.List" resultType="java.lang.Integer">
SELECT count(1)
FROM place WHERE
<foreach collection="list" item="item" index="index" separator="or">
(
<if test="item.shopId">shopId = #{item.shopId}</if>
<if test="item.sportId">AND sportId = #{item.sportId}</if>
<if test="item.exptCsTm">AND exptCsTm = #{item.exptCsTm}</if>
<if test="item.placeId">AND placeId = #{item.placeId}</if>
<if test="item.rowId">AND timeId = #{item.rowId}</if>
AND orderSt = '1'
)
</foreach>
</select>
Array
<!-- 批量获取文章信息 -->
<select id="getArticleBatch" resultType="IsForumArticleBean">
select id, articleTitle
from forum_article
where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</select>
- Mybatis-批量查询&&批量插入
- mybatis 批量查询
- Mybatis批量查询
- MyBatis批量查询用户信息
- mybatis批量查询
- mybatis批量查询
- Mybatis批量查询,批量添加,批量删除
- mybatis批量查询(oracle)
- mybatis根据批量id查询批量信息
- Mybatis批量查询和模糊查询
- mybatis 操作(批量插入,批量修改,批量删除, 分页查询)
- Mybatis批量增加、批量更新、批量删除和查询
- MyBatis批量新增、修改、删除、查询
- 根据List,mybatis批量查询List结果
- 根据List mybatis批量查询List结果
- 3中Mybatis批量查询方式
- MyBatis 实现消息页面,批量查询用户信息
- MyBatis 中 批量操作如查询
- C3P0和DBCP的区别
- 从节能角度看数据中心软硬件设计(二)
- OGNL表达式struts2标签“%,#,$”详解
- Oracle复合B*tree索引branch block内是否包含非先导列键值?
- yum 安装gcc
- mybatis 批量查询
- git 显示中文
- Fragment与FragmentActivity通信封装
- android中自己定义dialog
- Java抽象类和接口的区别
- Map中删除数据
- OpenGL: 曲线绘制-线段
- 明明的随机数
- 今天遇到的问题