package cn.iocoder.yudao.module.crm.dal.dataobject.contract;
|
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
import cn.iocoder.yudao.module.crm.dal.dataobject.business.CrmBusinessDO;
|
import cn.iocoder.yudao.module.crm.dal.dataobject.contact.CrmContactDO;
|
import cn.iocoder.yudao.module.crm.dal.dataobject.customer.CrmCustomerDO;
|
import cn.iocoder.yudao.module.crm.enums.common.CrmAuditStatusEnum;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* CRM 合同 DO
|
*
|
* @author dhb52
|
*/
|
@TableName("crm_contract")
|
@KeySequence("crm_contract_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
public class CrmContractDO extends BaseDO {
|
|
/**
|
* 合同编号
|
*/
|
@TableId
|
private Long id;
|
/**
|
* 合同名称
|
*/
|
private String name;
|
/**
|
* 合同编号
|
*/
|
private String no;
|
/**
|
* 客户编号
|
*
|
* 关联 {@link CrmCustomerDO#getId()}
|
*/
|
private Long customerId;
|
/**
|
* 商机编号,非必须
|
*
|
* 关联 {@link CrmBusinessDO#getId()}
|
*/
|
private Long businessId;
|
|
/**
|
* 最后跟进时间
|
*/
|
private LocalDateTime contactLastTime;
|
|
/**
|
* 负责人的用户编号
|
*
|
* 关联 AdminUserDO 的 id 字段
|
*/
|
private Long ownerUserId;
|
|
/**
|
* 工作流编号
|
*
|
* 关联 ProcessInstance 的 id 属性
|
*/
|
private String processInstanceId;
|
/**
|
* 审批状态
|
*
|
* 枚举 {@link CrmAuditStatusEnum}
|
*/
|
private Integer auditStatus;
|
|
/**
|
* 下单日期
|
*/
|
private LocalDateTime orderDate;
|
/**
|
* 开始时间
|
*/
|
private LocalDateTime startTime;
|
/**
|
* 结束时间
|
*/
|
private LocalDateTime endTime;
|
/**
|
* 产品总金额,单位:元
|
*/
|
private BigDecimal totalProductPrice;
|
/**
|
* 整单折扣
|
*/
|
private BigDecimal discountPercent;
|
/**
|
* 合同总金额,单位:分
|
*/
|
private BigDecimal totalPrice;
|
/**
|
* 客户签约人,非必须
|
*
|
* 关联 {@link CrmContactDO#getId()}
|
*/
|
private Long signContactId;
|
/**
|
* 公司签约人,非必须
|
*
|
* 关联 AdminUserDO 的 id 字段
|
*/
|
private Long signUserId;
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
}
|