yangzongzhuan / RuoYi-Vue

:tada: (RuoYi)官方仓库 基于SpringBoot,Spring Security,JWT,Vue & Element 的前后端分离权限管理系统,同时提供了 Vue3 的版本
http://ruoyi.vip
MIT License
2.32k stars 1.28k forks source link

修复mysql8.0.19版本代码生成无法识别数据类型的bug #12

Open GoRoad opened 4 years ago

GoRoad commented 4 years ago
  `month` int unsigned NOT NULL COMMENT '月'
    /** 月 */
    @Excel(name = "月")
    private $column.javaType month;

    /** 日期 */
    @Excel(name = "日期")
    private Long day;`

例如:被unsigned修饰的int类型无法被正常识别 从8.0.17版本开始,TINYINT, SMALLINT, MEDIUMINT, INT, and BIGINT类型的显示宽度失效,因此无法通过判断字段宽度区分int和Long