mybatis问题整理
2024-10-07 12:54:29
// List<String> findBuildByProject(String prjName);
//单参数时使用<if></if>标签判断采用“_parameter”
<select id="findBuildByProject" parameterType="string" resultType="string">
select b.build_name
FROM
tb_project p inner join tb_build b on p.id = b.prj_id
<where>
<if test="_parameter != null and _parameter !=''">
and p.prj_name = #{_parameter}
</if>
</where>
order by b.id desc
</select>
最新文章
- IE、FF、Safari、OP不同浏览器兼容报告
- Java hour5
- JAVA学习方法
- CoHTMLDocument
- Protocol Buffer基本介绍
- ArcGIS Engine中的8种数据访问
- IOS中设置cell的背景view和选中时的背景view 、设置cell最右边的指示器(比如箭头\文本标签)
- cannot find module &#39;cordova-common&#39;
- iOS开发——Swift篇&;Swift关键字详细介绍
- SQL 2008存储图片和读取图片
- scheme一页纸教程
- Redis 开发规范
- Android 架构 -- Room
- 阿里云ubuntu 16.04搭建odoo11服务器
- win10 关闭屏幕自动亮度
- Jave Web阿里云短信服务发送验证码
- Luogu P4322 [JSOI2016]最佳团体
- docker存储volume
- 通过R语言统计考研英语(二)单词出现频率
- 004 爬虫(最初的爬虫方式,以及urllib2)