diff --git a/luoo_user/src/main/java/com/luoo/user/UserApplication.java b/luoo_user/src/main/java/com/luoo/user/UserApplication.java index 8283c7c..4aaa3a4 100644 --- a/luoo_user/src/main/java/com/luoo/user/UserApplication.java +++ b/luoo_user/src/main/java/com/luoo/user/UserApplication.java @@ -1,6 +1,7 @@ package com.luoo.user; import com.spring4all.mongodb.EnableMongoPlus; +import org.mybatis.spring.annotation.MapperScan; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; @@ -26,6 +27,7 @@ import java.net.UnknownHostException; @EnableJpaAuditing @EnableAsync @EnableScheduling +@MapperScan("com.luoo.user.mapper") public class UserApplication { static Logger logger= LoggerFactory.getLogger(UserApplication.class); public static void main(String[] args) throws UnknownHostException { diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Admin.java b/luoo_user/src/main/java/com/luoo/user/pojo/Admin.java index f69c9e9..fe5823c 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Admin.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Admin.java @@ -13,6 +13,7 @@ import java.io.Serializable; @Table(name="tb_admin") public class Admin implements Serializable{ + private static final long serialVersionUID = -8216629985740378841L; @Id private String id;//ID diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistInfo.java b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistInfo.java index e6791f4..f7fff9f 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistInfo.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistInfo.java @@ -25,6 +25,7 @@ import java.io.Serializable; @Table(name="tb_artist_info") public class ArtistInfo implements Serializable { + private static final long serialVersionUID = 6136934719384823885L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistRegister.java b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistRegister.java index 89e3638..3e5dbd1 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistRegister.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistRegister.java @@ -35,6 +35,7 @@ import java.time.LocalDateTime; @Table(name="tb_artist_register") @EntityListeners(AuditingEntityListener.class) public class ArtistRegister implements Serializable { + private static final long serialVersionUID = 4725885363604430067L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistResponsible.java b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistResponsible.java index 7113ab6..d626613 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistResponsible.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistResponsible.java @@ -25,6 +25,7 @@ import java.io.Serializable; @Table(name="tb_artist_responsible") public class ArtistResponsible implements Serializable { + private static final long serialVersionUID = -1074378102639084669L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistUser.java b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistUser.java index 895b19c..f89911b 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/ArtistUser.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/ArtistUser.java @@ -25,6 +25,7 @@ import java.io.Serializable; @Table(name="tb_artist_user") public class ArtistUser implements Serializable { + private static final long serialVersionUID = 8633568684567153421L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java b/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java index 039bbea..7e2f856 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/BandInfo.java @@ -25,6 +25,7 @@ import java.io.Serializable; @Table(name="tb_band_info") public class BandInfo implements Serializable { + private static final long serialVersionUID = 2262920533012381305L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java b/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java index 20b7902..c350971 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/BandOperator.java @@ -6,6 +6,7 @@ import lombok.*; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; +import java.io.Serializable; /** * @Author: yawei.huang @@ -22,8 +23,9 @@ import javax.persistence.Table; @Builder @Entity @Table(name = "tb_band_operator") -public class BandOperator { +public class BandOperator implements Serializable { + private static final long serialVersionUID = -7680069722771770686L; /** * */ diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Bank.java b/luoo_user/src/main/java/com/luoo/user/pojo/Bank.java index 078700a..39d5dee 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Bank.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Bank.java @@ -17,6 +17,7 @@ import java.io.Serializable; @Entity @Table(name = "tb_bank") public class Bank implements Serializable { + private static final long serialVersionUID = 3537265091264226956L; @Id private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Comment.java b/luoo_user/src/main/java/com/luoo/user/pojo/Comment.java index 6f90cce..74e60b2 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Comment.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Comment.java @@ -10,6 +10,7 @@ import java.util.Date; @Data public class Comment implements Serializable { + private static final long serialVersionUID = 3755270248711522255L; @Id private String _id; // 评论内容 diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/CommentHis.java b/luoo_user/src/main/java/com/luoo/user/pojo/CommentHis.java index 4990a4c..eef9208 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/CommentHis.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/CommentHis.java @@ -5,12 +5,14 @@ import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.format.annotation.DateTimeFormat; +import java.io.Serializable; import java.util.Date; @Data -public class CommentHis { +public class CommentHis implements Serializable { + private static final long serialVersionUID = 6531637004005968639L; @Id private String _id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Friend.java b/luoo_user/src/main/java/com/luoo/user/pojo/Friend.java index f4bd0a5..40cdaf8 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Friend.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Friend.java @@ -11,6 +11,7 @@ import java.io.Serializable; @IdClass(Friend.class) public class Friend implements Serializable { + private static final long serialVersionUID = 3715296404812596918L; @Id private String userid; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Lottery.java b/luoo_user/src/main/java/com/luoo/user/pojo/Lottery.java index ea7e5c0..b15813b 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Lottery.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Lottery.java @@ -2,6 +2,8 @@ package com.luoo.user.pojo; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; + +import java.io.Serializable; import java.time.LocalDateTime; import java.util.List; import javax.persistence.Column; @@ -34,8 +36,9 @@ import org.springframework.format.annotation.DateTimeFormat; @DynamicUpdate @Table(name = "tb_lottery") @EntityListeners(AuditingEntityListener.class) -public class Lottery { +public class Lottery implements Serializable { + private static final long serialVersionUID = -4752327525558067397L; @Id @Size(max = 20) @Column(name = "id", nullable = false, length = 20) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/LotteryRegion.java b/luoo_user/src/main/java/com/luoo/user/pojo/LotteryRegion.java index 22dec81..1c34419 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/LotteryRegion.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/LotteryRegion.java @@ -2,6 +2,8 @@ package com.luoo.user.pojo; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; + +import java.io.Serializable; import java.time.LocalDateTime; import javax.persistence.*; import javax.validation.constraints.NotNull; @@ -28,8 +30,9 @@ import org.springframework.format.annotation.DateTimeFormat; @DynamicUpdate @Table(name = "tb_lottery_region") @EntityListeners(AuditingEntityListener.class) -public class LotteryRegion { +public class LotteryRegion implements Serializable { + private static final long serialVersionUID = -5624272399971443902L; @Id @Size(max = 20) @Column(name = "id", nullable = false, length = 20) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/MembershipCode.java b/luoo_user/src/main/java/com/luoo/user/pojo/MembershipCode.java index ebeb4c0..6ab39a6 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/MembershipCode.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/MembershipCode.java @@ -27,6 +27,7 @@ import java.io.Serializable; @Table(name = "tb_membership_code") @EntityListeners(AuditingEntityListener.class) public class MembershipCode implements Serializable { + private static final long serialVersionUID = -4571416340646557927L; @Id @Size(max = 20) @Column(name = "id", nullable = false, length = 20) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/NoFriend.java b/luoo_user/src/main/java/com/luoo/user/pojo/NoFriend.java index 75a618c..26e2425 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/NoFriend.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/NoFriend.java @@ -11,6 +11,7 @@ import java.io.Serializable; @IdClass(NoFriend.class) public class NoFriend implements Serializable { + private static final long serialVersionUID = -1888913593663166700L; @Id private String userid; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/PublicationLike.java b/luoo_user/src/main/java/com/luoo/user/pojo/PublicationLike.java index d08d9e0..f269ad3 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/PublicationLike.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/PublicationLike.java @@ -12,6 +12,7 @@ import java.util.Date; public class PublicationLike implements Serializable { + private static final long serialVersionUID = 6862134241746672070L; @Id private String _id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Region.java b/luoo_user/src/main/java/com/luoo/user/pojo/Region.java index 30a5046..a844e51 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Region.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Region.java @@ -34,6 +34,7 @@ import java.io.Serializable; @EntityListeners(AuditingEntityListener.class) public class Region implements Serializable { + private static final long serialVersionUID = 6196396812787555259L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", nullable = false) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java b/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java index d2266c3..2e1d229 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/TaskPoint.java @@ -35,6 +35,8 @@ import org.springframework.format.annotation.DateTimeFormat; @EntityListeners(AuditingEntityListener.class) public class TaskPoint implements Serializable { + private static final long serialVersionUID = 4796531460794327571L; + @Id @Size(max = 20) @Column(name = "id", nullable = false, length = 20) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/UserBank.java b/luoo_user/src/main/java/com/luoo/user/pojo/UserBank.java index 784bfba..2dacc09 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/UserBank.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/UserBank.java @@ -23,6 +23,7 @@ import java.time.Instant; @Entity @Table(name = "tb_user_bank") public class UserBank implements Serializable { + private static final long serialVersionUID = 6078233755643850781L; @Id private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/UserPointLog.java b/luoo_user/src/main/java/com/luoo/user/pojo/UserPointLog.java index f0dc880..62b398a 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/UserPointLog.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/UserPointLog.java @@ -26,6 +26,9 @@ import java.io.Serializable; @Table(name = "tb_user_point_log") @EntityListeners(AuditingEntityListener.class) public class UserPointLog implements Serializable { + + private static final long serialVersionUID = 3906598904133140275L; + @Id @Size(max = 20) @Column(name = "id", nullable = false, length = 20) diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java b/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java index 9e4a2a4..d67269e 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/UserProcess.java @@ -30,6 +30,7 @@ import java.util.Date; @Table(name="tb_user_process") public class UserProcess implements Serializable { + private static final long serialVersionUID = -5139481052903059965L; @Id @ApiModelProperty("id") private String id; diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/UserRealName.java b/luoo_user/src/main/java/com/luoo/user/pojo/UserRealName.java index c6cb639..b08a1ac 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/UserRealName.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/UserRealName.java @@ -26,6 +26,7 @@ import java.time.LocalDateTime; @Table(name = "tb_user_real_name") public class UserRealName implements Serializable { + private static final long serialVersionUID = 7951626010139804621L; /** * id */ diff --git a/luoo_user/src/main/java/com/luoo/user/pojo/Withdraw.java b/luoo_user/src/main/java/com/luoo/user/pojo/Withdraw.java index 6970d1a..ceaffd7 100644 --- a/luoo_user/src/main/java/com/luoo/user/pojo/Withdraw.java +++ b/luoo_user/src/main/java/com/luoo/user/pojo/Withdraw.java @@ -24,6 +24,7 @@ import java.math.BigDecimal; @Entity @Table(name = "tb_withdraw") public class Withdraw implements Serializable { + private static final long serialVersionUID = 3041693977260169199L; @Id private String id;