From caa90edd0fcd0e4f4e920bcc744eef12fee82ae6 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 25 May 2020 11:07:34 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/chonggaoxiao/new_excoin.git

---
 src/main/java/com/xcong/excoin/common/system/base/BaseEntity.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/common/system/base/BaseEntity.java b/src/main/java/com/xcong/excoin/common/system/base/BaseEntity.java
index bb0c3ea..79c0ff1 100644
--- a/src/main/java/com/xcong/excoin/common/system/base/BaseEntity.java
+++ b/src/main/java/com/xcong/excoin/common/system/base/BaseEntity.java
@@ -1,5 +1,7 @@
 package com.xcong.excoin.common.system.base;
 
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
 
@@ -14,6 +16,9 @@
 public class BaseEntity implements Serializable {
     private static final long serialVersionUID = 1L;
 
+    @TableId(value = "id",type = IdType.AUTO)
+    private Long id;
+
     private String createBy;
 
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@@ -23,4 +28,6 @@
 
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date updateTime;
+
+    private Integer version;
 }

--
Gitblit v1.9.1