package com.storlead.sales.pojo.entity.finance;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 费用
 * </p>
 *
 * @author chenkq
 * @since 2024-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_cost_record")
@ApiModel(value="OrderCostRecordEntity对象", description="费用")
public class OrderCostRecordEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "费用编号")
    @TableField("data_code")
    private String dataCode;

    @ApiModelProperty(value = "费用名称")
    @TableField("cost_name")
    private String costName;

    @ApiModelProperty(value = "费用名称")
    @TableField("cost_type")
    private String costType;

    @ApiModelProperty(value = "金额")
    @TableField("cost_amount")
    private BigDecimal costAmount;

    @ApiModelProperty(value = "付费日期")
    @TableField("cost_take_date")
    private LocalDate costTakeDate;

    @ApiModelProperty(value = "报销状态")
    @TableField("reimburse_status")
    private Integer reimburseStatus;

    @ApiModelProperty(value = "客户id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单")
    @TableField("link_work_group")
    private Integer linkWorkGroup;

    @ApiModelProperty(value = "关联订单or商机id")
    @TableField("link_work_data_id")
    private Long linkWorkDataId;

    @ApiModelProperty(value = "关联币种单位id")
    @TableField("currency_unit_id")
    private Integer currencyUnitId;

    @ApiModelProperty(value = "备注信息")
    @TableField("remark")
    private String remark;


}
