Commit 9cc6528eba87cfe7539da4a61a69eb3fc31ef10c
Committed by
GitHub
1 parent
64aab9ea
fix:上传文件测试时pg数据库字段类型不一致报错
错误详情:Caused by: org.postgresql.util.PSQLException: ERROR: column "id" is of type bigint but expression is of type character varying
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/file/FileContentDO.java
| @@ -28,8 +28,8 @@ public class FileContentDO extends BaseDO { | @@ -28,8 +28,8 @@ public class FileContentDO extends BaseDO { | ||
| 28 | /** | 28 | /** |
| 29 | * 编号,数据库自增 | 29 | * 编号,数据库自增 |
| 30 | */ | 30 | */ |
| 31 | - @TableId(type = IdType.INPUT) | ||
| 32 | - private String id; | 31 | + @TableId |
| 32 | + private Long id; | ||
| 33 | /** | 33 | /** |
| 34 | * 配置编号 | 34 | * 配置编号 |
| 35 | * | 35 | * |