MyBatis
write less,do more
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MyBatis中in使用
SELECT HardwareID FROM HardwarePurchase WHERE WorkSheetCode=#{workSheetCode} AND HardwareProperty='五金包' AND PlateName in <foreach collection="plateNameArr" open="("...原创 2019-03-07 10:23:38 · 741 阅读 · 0 评论 -
mybatis查询条件包含list
<if test="nodeInfo!=null and nodeInfo.size()>0"> and ProblemClass in <foreach collection="nodeInfo" index="index" item="item" open="(" separator="原创 2019-01-30 15:11:16 · 605 阅读 · 0 评论 -
Mybatis-Generator逆向工程自动生成entity实体类,mapper文件,
新建xml文件generatorConfig.xml generatorConfig.xml代码 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1...原创 2019-02-15 17:18:11 · 631 阅读 · 0 评论 -
mybatis中toString()
<if test="readState != null and readState.toString() == '0'.toString()"> and m.readState = '0' </if>原创 2019-05-16 18:22:07 · 8661 阅读 · 0 评论 -
mybatis返回主键自增的值方式
1、使用 JDBC 方式返回主键自增的值 2、使用selectKey返回返回主键的值 mybatis从入门到精通PDF电子书下载: 链接:https://pan.baidu.com/s/1fl3tcQdHCAz43GdhT6CUog 提取码:bp0u ...原创 2019-07-19 10:10:34 · 150 阅读 · 0 评论
分享