package com.zy.crm.manager.entity;
|
|
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("man_contract_sales")
|
public class ContractSales implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value= "")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 品名
|
*/
|
@ApiModelProperty(value= "品名")
|
private String name;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value= "数量")
|
private Double num;
|
|
/**
|
* 单位
|
*/
|
@ApiModelProperty(value= "单位")
|
private String unit;
|
|
/**
|
* 单价
|
*/
|
@ApiModelProperty(value= "单价")
|
@TableField("unit_price")
|
private Double unitPrice;
|
|
/**
|
* 总价
|
*/
|
@ApiModelProperty(value= "总价")
|
@TableField("total_price")
|
private Double totalPrice;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
/**
|
* 合同ID
|
*/
|
@ApiModelProperty(value= "合同ID")
|
private Long contractId;
|
|
public ContractSales() {}
|
|
public ContractSales(Long id, String name, Double num, String unit, Double unitPrice, Double totalPrice, String memo, Long contractId) {
|
this.id = id;
|
this.name = name;
|
this.num = num;
|
this.unit = unit;
|
this.unitPrice = unitPrice;
|
this.totalPrice = totalPrice;
|
this.memo = memo;
|
this.contractId = contractId;
|
}
|
|
// ContractSales contractSales = new ContractSales(
|
// null, // 品名
|
// null, // 数量
|
// null, // 单位
|
// null, // 单价
|
// null, // 总价
|
// null // 备注
|
// );
|
|
|
}
|