Commit 3496f212 by fengshuonan

更改主键类型

parent f15bf0b7
......@@ -22,7 +22,7 @@ public class CodeDbinfo implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "DB_ID", type = IdType.AUTO)
@TableId(value = "DB_ID", type = IdType.ID_WORKER)
private Long dbId;
/**
* 别名
......
......@@ -25,7 +25,7 @@ public class Dept implements Serializable {
/**
* 主键id
*/
@TableId(value = "DEPT_ID", type = IdType.AUTO)
@TableId(value = "DEPT_ID", type = IdType.ID_WORKER)
private Long deptId;
/**
* 父部门id
......
......@@ -25,7 +25,7 @@ public class Dict implements Serializable {
/**
* 主键id
*/
@TableId(value = "DICT_ID", type = IdType.AUTO)
@TableId(value = "DICT_ID", type = IdType.ID_WORKER)
private Long dictId;
/**
* 父级字典id
......
......@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
......@@ -11,7 +12,7 @@ import java.util.Date;
/**
* <p>
* 文件信息表
*
* </p>
*
* @author stylefeng
......@@ -25,7 +26,7 @@ public class FileInfo implements Serializable {
/**
* 主键id
*/
@TableId("FILE_ID")
@TableId(value = "FILE_ID", type = IdType.ID_WORKER_STR)
private String fileId;
/**
* base64编码的文件
......
......@@ -25,7 +25,7 @@ public class LoginLog implements Serializable {
/**
* 主键
*/
@TableId(value = "LOGIN_LOG_ID", type = IdType.AUTO)
@TableId(value = "LOGIN_LOG_ID", type = IdType.ID_WORKER)
private Long loginLogId;
/**
* 日志名称
......
......@@ -25,7 +25,7 @@ public class Menu implements Serializable {
/**
* 主键id
*/
@TableId(value = "MENU_ID", type = IdType.AUTO)
@TableId(value = "MENU_ID", type = IdType.ID_WORKER)
private Long menuId;
/**
* 菜单编号
......
......@@ -25,7 +25,7 @@ public class Notice implements Serializable {
/**
* 主键
*/
@TableId(value = "NOTICE_ID", type = IdType.AUTO)
@TableId(value = "NOTICE_ID", type = IdType.ID_WORKER)
private Long noticeId;
/**
* 标题
......
......@@ -25,7 +25,7 @@ public class OperationLog implements Serializable {
/**
* 主键
*/
@TableId(value = "OPERATION_LOG_ID", type = IdType.AUTO)
@TableId(value = "OPERATION_LOG_ID", type = IdType.ID_WORKER)
private Long operationLogId;
/**
* 日志类型(字典)
......
......@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import static com.baomidou.mybatisplus.enums.IdType.ID_WORKER;
/**
* <p>
* 角色和菜单关联表
......@@ -22,7 +24,7 @@ public class Relation implements Serializable {
/**
* 主键
*/
@TableId("RELATION_ID")
@TableId(value = "RELATION_ID", type = ID_WORKER)
private Long relationId;
/**
* 菜单id
......
......@@ -25,7 +25,7 @@ public class Role implements Serializable {
/**
* 主键id
*/
@TableId(value = "ROLE_ID", type = IdType.AUTO)
@TableId(value = "ROLE_ID", type = IdType.ID_WORKER)
private Long roleId;
/**
* 父角色id
......
......@@ -27,7 +27,7 @@ public class User implements Serializable {
/**
* 主键id
*/
@TableId(value = "USER_ID", type = IdType.AUTO)
@TableId(value = "USER_ID", type = IdType.ID_WORKER)
private Long userId;
/**
* 头像
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment