Commit 906ed512ff1741fc59e34237a53f8de396d515af
1 parent
d11ffb14
chore: mybatis-plus from 3.5.12 to 3.5.14
fix:BaseDO 移除 jdbcType = JdbcType.VARCHAR 避免被转义
Showing
2 changed files
with
3 additions
and
4 deletions
yudao-dependencies/pom.xml
| ... | ... | @@ -24,7 +24,7 @@ |
| 24 | 24 | <!-- DB 相关 --> |
| 25 | 25 | <druid.version>1.2.27</druid.version> |
| 26 | 26 | <mybatis.version>3.5.19</mybatis.version> |
| 27 | - <mybatis-plus.version>3.5.12</mybatis-plus.version> | |
| 27 | + <mybatis-plus.version>3.5.14</mybatis-plus.version> | |
| 28 | 28 | <mybatis-plus-join.version>1.5.4</mybatis-plus-join.version> |
| 29 | 29 | <dynamic-datasource.version>4.3.1</dynamic-datasource.version> |
| 30 | 30 | <easy-trans.version>3.0.6</easy-trans.version> | ... | ... |
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/dataobject/BaseDO.java
| ... | ... | @@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.annotation.TableLogic; |
| 6 | 6 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 7 | 7 | import com.fhs.core.trans.vo.TransPojo; |
| 8 | 8 | import lombok.Data; |
| 9 | -import org.apache.ibatis.type.JdbcType; | |
| 10 | 9 | |
| 11 | 10 | import java.io.Serializable; |
| 12 | 11 | import java.time.LocalDateTime; |
| ... | ... | @@ -38,14 +37,14 @@ public abstract class BaseDO implements Serializable, TransPojo { |
| 38 | 37 | * |
| 39 | 38 | * 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。 |
| 40 | 39 | */ |
| 41 | - @TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.VARCHAR) | |
| 40 | + @TableField(fill = FieldFill.INSERT) | |
| 42 | 41 | private String creator; |
| 43 | 42 | /** |
| 44 | 43 | * 更新者,目前使用 SysUser 的 id 编号 |
| 45 | 44 | * |
| 46 | 45 | * 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。 |
| 47 | 46 | */ |
| 48 | - @TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.VARCHAR) | |
| 47 | + @TableField(fill = FieldFill.INSERT_UPDATE) | |
| 49 | 48 | private String updater; |
| 50 | 49 | /** |
| 51 | 50 | * 是否删除 | ... | ... |