mybatis in条件查询(foreach)
来源:互联网 发布:超图软件 福州软件园 编辑:程序博客网 时间:2024/06/11 05:09
mybatis查询sql中in条件使用(foreach)
xml
<!-- 查询订单 --> <select id="selectBankDayAlreadyPaidAmountByBankId" resultType="AlleywayBankDayAmountDto" parameterType="java.util.Set"> select alleyway_id,sum(order_amount) as order_amount from tb_order where pay_status in ( 2, 3) and DATE_FORMAT(resp_time, '%y-%m-%d') = DATE_FORMAT(NOW(), '%y-%m-%d') and bank_id in <foreach collection="bankIds" index="index" item="item" open="(" separator="," close=")"> #{item} </foreach> group by alleyway_id </select>
java
List<AlleywayBankDayAmountDto> selectBankDayAlreadyPaidAmountByBankId(@Param("bankIds") Set<String> bankIds);
阅读全文
1 0
- mybatis in条件查询(foreach)
- mybatis查询sql中in条件使用(foreach)
- mybatis查询sql中in条件使用(foreach)
- MyBatis in foreach查询
- mybatis错误之-----in查询 <foreach>循环
- mybatis使用foreach语句实现IN查询
- Mybatis 多条件查询(模糊查询 使用in查询)
- Mybatis 多条件查询(模糊查询 使用in查询)
- Mybatis 多条件查询(模糊查询 使用in查询)
- mybatis查询配置文件中关于 in 的条件查询
- MyBatis中的in条件查询的用法代码示例
- mybatis 查询多个条件IN的使用方法
- Mybatis查询实例,sql中的in在Mybatis中怎么写--以list为查询条件
- Mybatis查询实例,sql中的in在Mybatis中怎么写--以list为查询条件
- mybatis拼接条件查询
- MyBatis动态条件查询
- Mybatis实现条件查询
- MyBatis多条件查询
- AFNetWorking下载网络音乐视频或者图片
- Android TextView关于android:ellipsize=end的一个bug
- 最新的Angular 5 入门与提高
- 51nod 1836 战忽局的手段(期望+矩阵快速幂)
- nodeJS 在sublime显示乱码问题
- mybatis in条件查询(foreach)
- ecplise安装jrebel 及激活
- ideal+maven+scala配置spark的pom.xml文件内容,直接写spark代码
- Retrofit基础(get/post请求,上传图片,注册)
- STM32三种启动模式
- C++内存管理
- Spring(1)概述
- Linux Socket编程详解
- Idea