🐛 Fixing a bug. 修复变更主键策略为ASSIGN_ID后用户创建失败以及无法Excel导出的问题

This commit is contained in:
lishangbu committed 2021-12-24 09:24:06 +08:00
1 parent 1b0685a4d2
commit 7d0e1ddfed
2 files changed
+2 -2

No files matched your search

@@ -45,7 +45,7 @@ public class SysUser implements Serializable {
/**
* 主键ID
*/
@TableId(value = "user_id", type = IdType.AUTO)
@TableId(value = "user_id", type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键id")
private Long userId;
@@ -24,7 +24,7 @@ public class UserExcelVO implements Serializable {
* 主键ID
*/
@ExcelProperty("用户编号")
private Integer userId;
private Long userId;
/**
* 用户名