package cn.iocoder.yudao.module.crm.dal.dataobject.business;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
|
/**
|
* CRM 商机产品关联表 DO
|
*
|
* CrmBusinessDO : CrmBusinessProductDO = 1 : N
|
*
|
* @author lzxhqs
|
*/
|
@TableName("crm_business_product")
|
@KeySequence("crm_business_product_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class CrmBusinessProductDO extends BaseDO {
|
|
/**
|
* 主键
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 商机编号
|
*
|
* 关联 {@link CrmBusinessDO#getId()}
|
*/
|
private Long businessId;
|
/**
|
* MDM 物料编号
|
*
|
* 关联 MdmItemRespDTO.id
|
*/
|
private Long itemId;
|
/**
|
* 计量单位编号
|
*
|
* 关联 MdmUnitMeasureRespDTO.id
|
*/
|
private Long itemUnitId;
|
/**
|
* 物料原价,单位:元(冗余)
|
*/
|
private BigDecimal itemPrice;
|
/**
|
* 商机价格, 单位:元
|
*/
|
private BigDecimal businessPrice;
|
/**
|
* 数量
|
*/
|
private BigDecimal count;
|
/**
|
* 总计价格,单位:元
|
*
|
* totalPrice = businessPrice * count
|
*/
|
private BigDecimal totalPrice;
|
|
}
|