![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 57
NmzI怼怼怼
= = 努力==>收获
展开
-
PgSQL常用语句
查询Json类型数组内实体某元素的值bank_accounts ------> [{"name": "永隆银行", "cardno": "555555555555", "status": "正常"}]mybatis:select * from xxxwhere bank_accounts @> '[{"cardno":"${item.baAccount}"}]'pgsql:select * from xxxwhere bank_accounts @> '[{"c..原创 2021-05-14 14:19:13 · 368 阅读 · 0 评论 -
MyBatis-Plus 字段类型处理器TypeHandler
字段类型处理器类型处理器,用于 JavaType 与 JdbcType 之间的转换,用于 PreparedStatement 设置参数值和从 ResultSet 或 CallableStatement 中取出一个值,本文讲解mybaits-plus内置常用类型处理器如何通过TableField注解快速注入到mybatis容器中。JSON 字段类型@Data@Accessors(chain = true)@TableName(autoResultMap = true)public...转载 2021-01-14 16:08:24 · 10502 阅读 · 4 评论 -
Mybatis模糊查询无法确定参数$1的数据类型: ERROR: could not determine data type of parameter $1
Mybatis模糊查询无法确定参数$1的数据类型: 报错ERROR: could not determine data type of parameter $1修改前:SELECT count(0) FROM "bank_21" WHERE my_name LIKE CONCAT('%', ?, '%')修改后:SELECT count(0) FROM "bank_21" WHERE my_name like '%${myName}%'...原创 2020-12-22 11:44:30 · 12977 阅读 · 6 评论