rename field
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.peanut.modules.book.controller;
|
||||
import cn.com.marsoft.tool.ToolObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.google.gson.Gson;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.*;
|
||||
@@ -9,7 +8,6 @@ import com.peanut.modules.book.service.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.peanut.common.utils.R.error;
|
||||
@RestController
|
||||
@@ -233,7 +231,7 @@ public class UserRecordController {
|
||||
recordEntity.setImages(imageStr);
|
||||
}
|
||||
recordEntity.setDelflag(0);
|
||||
recordEntity.setOrderdid(orderId1);
|
||||
recordEntity.setOrderdId(orderId1);
|
||||
userRecordService.saveOrUpdate(recordEntity);
|
||||
|
||||
|
||||
|
||||
@@ -4,13 +4,11 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.peanut.modules.book.to.UserRecordDto;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@TableName("user_record")
|
||||
@@ -26,39 +24,37 @@ public class UserRecordEntity {
|
||||
|
||||
// 类型(商品评价01,听书评价02,观看电子书评价03)
|
||||
@TableField("type")
|
||||
private String type ;
|
||||
private String type;
|
||||
|
||||
// 内容
|
||||
@TableField("content")
|
||||
private Object content ;
|
||||
private Object content;
|
||||
//快递单号
|
||||
@TableField("orderCode")
|
||||
private String orderCode;
|
||||
private String orderCode;
|
||||
|
||||
@TableField("proudict_id")
|
||||
private Integer proudictId;
|
||||
private Integer proudictId;
|
||||
//订单号
|
||||
@TableField("orderSn")
|
||||
private String orderSn;
|
||||
// 关联客户
|
||||
@TableField("userid")
|
||||
private Integer userid ;
|
||||
private Integer userid;
|
||||
//逻辑删除:未删除0 -1删除
|
||||
@TableField("delFlag")
|
||||
@TableLogic
|
||||
private Integer delflag;
|
||||
private Integer delflag;
|
||||
//关联图书id
|
||||
@TableField("bookid")
|
||||
private Integer bookid ;
|
||||
//图片url
|
||||
// @TableField("images")
|
||||
// private String[] images;
|
||||
private Integer bookid;
|
||||
|
||||
@TableField("images")
|
||||
private Object images;
|
||||
|
||||
//星级 1=一星,5=五星
|
||||
@TableField("starLevel")
|
||||
private String starLevel;
|
||||
private String starLevel;
|
||||
|
||||
/**
|
||||
* 表情存储
|
||||
@@ -67,18 +63,18 @@ public class UserRecordEntity {
|
||||
private Object emoji;
|
||||
|
||||
@TableField("name")
|
||||
private Object name;
|
||||
private Object name;
|
||||
@TableField("tag")
|
||||
private Object tag;
|
||||
private Object tag;
|
||||
|
||||
@TableField("orderdid")
|
||||
private Integer orderdid;
|
||||
private Integer orderdId;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private Object avatar;
|
||||
private Object avatar;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Object nickname;
|
||||
private Object nickname;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user