摘要:
解决 //Integer类型入参,动态sql判断只需要判null即可 <if test="status != null "> and status = #{status}</if> 原因 mybatis源码在预编译sql时,使用OGNL表达式来解析if标签,对于Integer类型属性,(status 阅读全文
posted @ 2023-08-17 09:58
白玉神驹
阅读(88)
评论(0)
推荐(0)
摘要:
背景 实体类多添加了几个字段用于查询,如果项目中使用了mybatis或mybatisplus会导致找不到表中字段的错误 Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'create_start_time' in 'field 阅读全文
posted @ 2023-08-17 09:28
白玉神驹
阅读(1153)
评论(0)
推荐(0)

浙公网安备 33010602011771号