yulichang / mybatis-plus-join

支持连表查询的mybatis-plus,mybatis-plus风格的连表操作提供wrapper.leftJoin(),wrapper.rightJoin()等操作
https://yulichang.github.io/mybatis-plus-join-doc/
Apache License 2.0
971 stars 113 forks source link

UpdateJoinWrapper的setUpdateEntity更新操作时,实体类属性上的@TableField注解的typeHandler类型处理器会失效 #127

Open Rakbow opened 1 month ago

Rakbow commented 1 month ago

当前使用版本(必填,否则不予处理)

1.4.12

该问题是如何引起的?(确定最新版也有问题再提!!!)

UpdateJoinWrapper的setUpdateEntity更新操作时,实体类属性上的@TableField注解的typeHandler类型处理器会失效,不会将插入字段的数据转为json数据,从而报错

重现步骤(如果有就写完整)

报错信息

Resolved [org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.