package com.ruoyi.business.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 com.ruoyi.common.core.domain.MyBaseEntity;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDate;
|
|
/**
|
* 销售记录表 实体类
|
*
|
* @author ruoyi
|
* @date 2025-06-11
|
*/
|
@Data
|
@TableName("sales_record")
|
public class SalesRecord extends MyBaseEntity {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
/**
|
* 销售日期
|
*/
|
@TableField(value = "sale_date")
|
private LocalDate saleDate;
|
/**
|
* 客户id
|
*/
|
@TableField(value = "customer_id")
|
private Long customerId;
|
/**
|
* 客户
|
*/
|
@TableField(value = "customer")
|
private String customer;
|
/**
|
* 煤种id
|
*/
|
@TableField(value = "coal_id")
|
private Long coalId;
|
/**
|
* 煤种
|
*/
|
@TableField(value = "coal")
|
private String coal;
|
/**
|
* 单价(含税)
|
*/
|
@TableField(value = "price_including_tax")
|
private BigDecimal priceIncludingTax;
|
/**
|
* 库存数量
|
*/
|
@TableField(value = "inventory_quantity")
|
private BigDecimal inventoryQuantity;
|
/**
|
* 单位
|
*/
|
@TableField(value = "unit")
|
private String unit;
|
/**
|
* 销售数量
|
*/
|
@TableField(value = "sale_quantity")
|
private BigDecimal saleQuantity;
|
/**
|
* 销售单价 (含税)
|
*/
|
@TableField(value = "sale_price")
|
private BigDecimal salePrice;
|
/**
|
* 销售总价 (含税)
|
*/
|
@TableField(value = "total_amount")
|
private BigDecimal totalAmount;
|
/**
|
* 购销煤税率13%
|
*/
|
@TableField(value = "tax_coal")
|
private String taxCoal;
|
/**
|
* 运输税率9%
|
*/
|
@TableField(value = "tax_trans")
|
private String taxTrans;
|
/**
|
* 毛利润
|
*/
|
@TableField(value = "gross_profit")
|
private BigDecimal grossProfit;
|
/**
|
* 净利润
|
*/
|
@TableField(value = "net_profit")
|
private BigDecimal netProfit;
|
/**
|
* 运费
|
*/
|
@TableField(value = "freight")
|
private BigDecimal freight;
|
/**
|
* 登记人id
|
*/
|
@TableField(value = "registrant_id")
|
private Long registrantId;
|
/**
|
* 登记人
|
*/
|
@TableField(value = "registrant")
|
private String registrant;
|
/**
|
* 登记日期
|
*/
|
@TableField(value = "registration_date")
|
private LocalDate registrationDate;
|
}
|