diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java index a2de62f..e5f5181 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/ExpertDictionary.java @@ -1,5 +1,7 @@ package com.ningdatech.pmapi.dictionary.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; @@ -22,6 +24,7 @@ public class ExpertDictionary implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java index f643b5b..7bf2183 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dictionary/entity/MetaDictionary.java @@ -1,5 +1,7 @@ package com.ningdatech.pmapi.dictionary.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import lombok.Data; @@ -22,6 +24,7 @@ public class MetaDictionary implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertIntentionWorkRegion.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertIntentionWorkRegion.java index 502773d..a001dca 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertIntentionWorkRegion.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertIntentionWorkRegion.java @@ -1,15 +1,17 @@ package com.ningdatech.pmapi.expert.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; -import java.io.Serializable; -import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.io.Serializable; +import java.time.LocalDateTime; + /** *

- * + * *

* * @author Liuxinxin @@ -22,6 +24,7 @@ public class ExpertIntentionWorkRegion implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertUserFullInfo.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertUserFullInfo.java index 76f024a..a6af778 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertUserFullInfo.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/entity/ExpertUserFullInfo.java @@ -1,12 +1,14 @@ package com.ningdatech.pmapi.expert.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; -import java.io.Serializable; -import java.time.LocalDateTime; import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.io.Serializable; +import java.time.LocalDateTime; + /** *

* @@ -22,6 +24,7 @@ public class ExpertUserFullInfo implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java index 8b24ad8..d409abf 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/ExpertTag.java @@ -1,5 +1,7 @@ package com.ningdatech.pmapi.tag.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; @@ -22,6 +24,7 @@ public class ExpertTag implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java index 261d81b..cc4b52a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/tag/entity/MetaTag.java @@ -1,5 +1,7 @@ package com.ningdatech.pmapi.tag.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; @@ -22,6 +24,7 @@ public class MetaTag implements Serializable { private static final long serialVersionUID = 1L; + @TableId(type = IdType.AUTO) private Long id; private LocalDateTime createOn;