1.mybatis的多参数使用

mapper 使用

通过@param注解,传递到xml中的参数名称指定

public interface RedisInstanceTypesMapper extends BaseMapper<RedisInstanceType> { ;

    List<RedisInstanceType> queryInstanceTypes(@Param("pinAlias") String pin, @Param("az") String az);

}

2.xml使用

<select id="queryInstanceTypes" resultType="fama.cost.dao.entity.RedisInstanceType">
select s.*
from fama_redis_instance_types s
where s.pin_alias = #{pinAlias}
and az = #{az}
</select>

最新文章

  1. enote笔记语言(1)
  2. 2015 Multi-University Training Contest 1 - 1009 Annoying problem
  3. python 异常类型
  4. Elasticsearch template configuration
  5. dblink 的源数据表结构修改后在存储过程里执行报错
  6. linux Tomcat restart脚本简单版
  7. ASP.NET 查询客户端请求IP地址
  8. JS对undefined,null,NaN判断
  9. 正则语言(转的 大额_skylar )
  10. resharper 设置代码颜色
  11. .net软件反编译笔记
  12. linux 3.10 串口注册
  13. Ionic APP-Web SPA开发进阶(二)Ionic进阶之路由去哪了
  14. pyinstaller
  15. openstack-KVM安装与使用
  16. weex 开发踩坑日记--环境配置、安卓运行、adb、开发
  17. android: 使用本地广播
  18. 【洛谷P3884 [JLOI2009]】二叉树问题
  19. 转 DataTorrent 1.0每秒处理超过10亿个实时事件
  20. Jsp程序要在Tomcat下运行

热门文章

  1. Mysql下可能存在注入的点。
  2. 12- Jmeter逻辑控制器
  3. 常用head标签
  4. 【SpringBoot】SpringBoot2.x整合定时任务和异步任务处理
  5. hdu4179 限制最短路
  6. Nmap 扫描器的使用技巧
  7. android The content of the adapter has changed but ListView did not receive a notification 错误的解决方案
  8. Win10安装MySQL5和MySQL8
  9. 逆向工程初步160个crackme-------1
  10. IOC随笔小记录