Commit 3496f212 by fengshuonan

更改主键类型

parent f15bf0b7
...@@ -22,7 +22,7 @@ public class CodeDbinfo implements Serializable { ...@@ -22,7 +22,7 @@ public class CodeDbinfo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@TableId(value = "DB_ID", type = IdType.AUTO) @TableId(value = "DB_ID", type = IdType.ID_WORKER)
private Long dbId; private Long dbId;
/** /**
* 别名 * 别名
......
...@@ -25,7 +25,7 @@ public class Dept implements Serializable { ...@@ -25,7 +25,7 @@ public class Dept implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId(value = "DEPT_ID", type = IdType.AUTO) @TableId(value = "DEPT_ID", type = IdType.ID_WORKER)
private Long deptId; private Long deptId;
/** /**
* 父部门id * 父部门id
......
...@@ -25,7 +25,7 @@ public class Dict implements Serializable { ...@@ -25,7 +25,7 @@ public class Dict implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId(value = "DICT_ID", type = IdType.AUTO) @TableId(value = "DICT_ID", type = IdType.ID_WORKER)
private Long dictId; private Long dictId;
/** /**
* 父级字典id * 父级字典id
......
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotations.TableField; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill; import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
...@@ -11,7 +12,7 @@ import java.util.Date; ...@@ -11,7 +12,7 @@ import java.util.Date;
/** /**
* <p> * <p>
* 文件信息表 * 文件信息表
*
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
...@@ -25,7 +26,7 @@ public class FileInfo implements Serializable { ...@@ -25,7 +26,7 @@ public class FileInfo implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId("FILE_ID") @TableId(value = "FILE_ID", type = IdType.ID_WORKER_STR)
private String fileId; private String fileId;
/** /**
* base64编码的文件 * base64编码的文件
...@@ -105,12 +106,12 @@ public class FileInfo implements Serializable { ...@@ -105,12 +106,12 @@ public class FileInfo implements Serializable {
@Override @Override
public String toString() { public String toString() {
return "FileInfo{" + return "FileInfo{" +
", fileId=" + fileId + ", fileId=" + fileId +
", fileData=" + fileData + ", fileData=" + fileData +
", createTime=" + createTime + ", createTime=" + createTime +
", updateTime=" + updateTime + ", updateTime=" + updateTime +
", createUser=" + createUser + ", createUser=" + createUser +
", updateUser=" + updateUser + ", updateUser=" + updateUser +
"}"; "}";
} }
} }
...@@ -25,7 +25,7 @@ public class LoginLog implements Serializable { ...@@ -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; private Long loginLogId;
/** /**
* 日志名称 * 日志名称
......
...@@ -25,7 +25,7 @@ public class Menu implements Serializable { ...@@ -25,7 +25,7 @@ public class Menu implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId(value = "MENU_ID", type = IdType.AUTO) @TableId(value = "MENU_ID", type = IdType.ID_WORKER)
private Long menuId; private Long menuId;
/** /**
* 菜单编号 * 菜单编号
......
...@@ -25,7 +25,7 @@ public class Notice implements Serializable { ...@@ -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; private Long noticeId;
/** /**
* 标题 * 标题
......
...@@ -25,7 +25,7 @@ public class OperationLog implements Serializable { ...@@ -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; private Long operationLogId;
/** /**
* 日志类型(字典) * 日志类型(字典)
......
...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotations.TableName; ...@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable; import java.io.Serializable;
import static com.baomidou.mybatisplus.enums.IdType.ID_WORKER;
/** /**
* <p> * <p>
* 角色和菜单关联表 * 角色和菜单关联表
...@@ -22,7 +24,7 @@ public class Relation implements Serializable { ...@@ -22,7 +24,7 @@ public class Relation implements Serializable {
/** /**
* 主键 * 主键
*/ */
@TableId("RELATION_ID") @TableId(value = "RELATION_ID", type = ID_WORKER)
private Long relationId; private Long relationId;
/** /**
* 菜单id * 菜单id
...@@ -63,9 +65,9 @@ public class Relation implements Serializable { ...@@ -63,9 +65,9 @@ public class Relation implements Serializable {
@Override @Override
public String toString() { public String toString() {
return "Relation{" + return "Relation{" +
", relationId=" + relationId + ", relationId=" + relationId +
", menuId=" + menuId + ", menuId=" + menuId +
", roleId=" + roleId + ", roleId=" + roleId +
"}"; "}";
} }
} }
...@@ -25,7 +25,7 @@ public class Role implements Serializable { ...@@ -25,7 +25,7 @@ public class Role implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId(value = "ROLE_ID", type = IdType.AUTO) @TableId(value = "ROLE_ID", type = IdType.ID_WORKER)
private Long roleId; private Long roleId;
/** /**
* 父角色id * 父角色id
......
...@@ -27,7 +27,7 @@ public class User implements Serializable { ...@@ -27,7 +27,7 @@ public class User implements Serializable {
/** /**
* 主键id * 主键id
*/ */
@TableId(value = "USER_ID", type = IdType.AUTO) @TableId(value = "USER_ID", type = IdType.ID_WORKER)
private Long userId; 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