package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 收入记录
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-03-13
|
*/
|
@TableName("t_revenue")
|
public class TRevenue extends Model<TRevenue> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 收入类型(1=订单收入,2=分佣收入)
|
*/
|
private Integer type;
|
/**
|
* 用户类型(1=用户,2=司机,3=代理商)
|
*/
|
private Integer userType;
|
/**
|
* 用户id
|
*/
|
private Integer userId;
|
/**
|
* 订单id
|
*/
|
private Integer orderId;
|
/**
|
* 收入金额
|
*/
|
private BigDecimal amount;
|
/**
|
* 添加时间
|
*/
|
private Date createTime;
|
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public Integer getUserType() {
|
return userType;
|
}
|
|
public void setUserType(Integer userType) {
|
this.userType = userType;
|
}
|
|
public Integer getUserId() {
|
return userId;
|
}
|
|
public void setUserId(Integer userId) {
|
this.userId = userId;
|
}
|
|
public Integer getOrderId() {
|
return orderId;
|
}
|
|
public void setOrderId(Integer orderId) {
|
this.orderId = orderId;
|
}
|
|
public BigDecimal getAmount() {
|
return amount;
|
}
|
|
public void setAmount(BigDecimal amount) {
|
this.amount = amount;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "TRevenue{" +
|
"id=" + id +
|
", type=" + type +
|
", userType=" + userType +
|
", userId=" + userId +
|
", orderId=" + orderId +
|
", amount=" + amount +
|
", createTime=" + createTime +
|
"}";
|
}
|
}
|