新版
This commit is contained in:
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -158,6 +160,8 @@ public class BookEntity implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private Boolean isBuy;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<BookForumArticlesEntity> forums;
|
||||
|
||||
|
||||
// @TableField(exist = false)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.peanut.modules.app.entity.UserEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 文章表主表
|
||||
@@ -63,7 +66,7 @@ public class BookForumArticlesEntity {
|
||||
* 点赞数
|
||||
*/
|
||||
@TableField("contlike")
|
||||
private Date contlike;
|
||||
private Integer contlike;
|
||||
|
||||
@TableField("del_flag")
|
||||
@TableLogic
|
||||
@@ -81,6 +84,24 @@ public class BookForumArticlesEntity {
|
||||
@TableField("bookdesc")
|
||||
private String bookdesc;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String bookimage;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String bookname;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String bookauthor;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<BookForumCommentEntity> comment;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Integer commentNum;
|
||||
|
||||
//说话的人
|
||||
@TableField(exist = false)
|
||||
private UserEntity user;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,11 @@ package com.peanut.modules.book.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.peanut.modules.app.entity.UserEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 评价文章表
|
||||
@@ -24,12 +26,16 @@ public class BookForumCommentEntity {
|
||||
*文章父id
|
||||
*/
|
||||
@TableField("bfa_id")
|
||||
private String bfaid;
|
||||
private Integer bfaid;
|
||||
/**
|
||||
*用户评论id
|
||||
*/
|
||||
@TableField("userid")
|
||||
private String userid;
|
||||
private Integer userid;
|
||||
@TableField("puserid")
|
||||
private Integer puserid;
|
||||
@TableField("pid")
|
||||
private Integer pid;
|
||||
/**
|
||||
*内容
|
||||
*/
|
||||
@@ -50,6 +56,10 @@ public class BookForumCommentEntity {
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
@TableField("contlike")
|
||||
private Integer contlike;
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@@ -58,4 +68,16 @@ public class BookForumCommentEntity {
|
||||
private Integer delflag;
|
||||
@TableField("book_id")
|
||||
private Integer bookid;
|
||||
|
||||
//发言者
|
||||
@TableField(exist = false)
|
||||
private UserEntity user;
|
||||
|
||||
//对谁说
|
||||
@TableField(exist = false)
|
||||
private UserEntity puser;
|
||||
|
||||
//子对话
|
||||
@TableField(exist = false)
|
||||
private List<BookForumCommentEntity> comments;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user