|
|
|
@ -1,67 +1,67 @@
|
|
|
|
|
package com.yeqifu.bus.entity;
|
|
|
|
|
package com.yeqifu.bus.entity; // 包名
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
import lombok.experimental.Accessors;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType; // MyBatis-Plus主键类型注解
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; // MyBatis-Plus字段映射注解
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId; // MyBatis-Plus主键注解
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; // MyBatis-Plus表名注解
|
|
|
|
|
import lombok.Data; // Lombok注解,自动生成getter和setter方法
|
|
|
|
|
import lombok.EqualsAndHashCode; // Lombok注解,自动生成equals和hashCode方法
|
|
|
|
|
import lombok.experimental.Accessors; // Lombok注解,支持链式调用
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.io.Serializable; // 序列化接口
|
|
|
|
|
import java.util.Date; // 日期类
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <p>
|
|
|
|
|
* 销售退货记录实体类,用于描述销售退货信息
|
|
|
|
|
* InnoDB free: 9216 kB
|
|
|
|
|
* </p>
|
|
|
|
|
*
|
|
|
|
|
* @author luoyi-
|
|
|
|
|
* @since 2019-12-23
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
|
|
@Accessors(chain = true)
|
|
|
|
|
@TableName("bus_salesback")
|
|
|
|
|
public class Salesback implements Serializable {
|
|
|
|
|
@Data // Lombok注解,自动生成getter和setter方法
|
|
|
|
|
@EqualsAndHashCode(callSuper = false) // Lombok注解,重写equals和hashCode方法,不调用父类
|
|
|
|
|
@Accessors(chain = true) // Lombok注解,支持链式调用
|
|
|
|
|
@TableName("bus_salesback") // MyBatis-Plus注解,指定表名为bus_salesback
|
|
|
|
|
public class Salesback implements Serializable { // 定义Salesback类,实现Serializable接口
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID=1L;
|
|
|
|
|
private static final long serialVersionUID = 1L; // 序列化版本号
|
|
|
|
|
|
|
|
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
|
|
|
private Integer id;
|
|
|
|
|
@TableId(value = "id", type = IdType.AUTO) // MyBatis-Plus注解,指定主键字段id为自增类型
|
|
|
|
|
private Integer id; // 销售退货记录ID
|
|
|
|
|
|
|
|
|
|
private Integer customerid;
|
|
|
|
|
private Integer customerid; // 客户ID,外键关联客户表
|
|
|
|
|
|
|
|
|
|
private String paytype;
|
|
|
|
|
private String paytype; // 支付类型
|
|
|
|
|
|
|
|
|
|
private Date salesbacktime;
|
|
|
|
|
private Date salesbacktime; // 退货时间
|
|
|
|
|
|
|
|
|
|
private Double salebackprice;
|
|
|
|
|
private Double salebackprice; // 退货价格
|
|
|
|
|
|
|
|
|
|
private String operateperson;
|
|
|
|
|
private String operateperson; // 操作员姓名
|
|
|
|
|
|
|
|
|
|
private Integer number;
|
|
|
|
|
private Integer number; // 退货数量
|
|
|
|
|
|
|
|
|
|
private String remark;
|
|
|
|
|
private String remark; // 备注信息
|
|
|
|
|
|
|
|
|
|
private Integer goodsid;
|
|
|
|
|
private Integer goodsid; // 商品ID,外键关联商品表
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 客户姓名
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private String customername;
|
|
|
|
|
@TableField(exist = false) // MyBatis-Plus注解,表示此字段在数据库表中不存在
|
|
|
|
|
private String customername; // 客户名称(冗余字段,用于显示)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 商品名称
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private String goodsname;
|
|
|
|
|
@TableField(exist = false) // MyBatis-Plus注解,表示此字段在数据库表中不存在
|
|
|
|
|
private String goodsname; // 商品名称(冗余字段,用于显示)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 商品规格
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private String size;
|
|
|
|
|
@TableField(exist = false) // MyBatis-Plus注解,表示此字段在数据库表中不存在
|
|
|
|
|
private String size; // 商品规格(冗余字段,用于显示)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|