package cn.ezhizao.project.business.upgrade.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.ezhizao.framework.web.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import cn.ezhizao.framework.aspectj.lang.annotation.Excel;

import java.math.BigDecimal;

/**
 * 企业租户对象 biz_work_order_detail_update
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@Data
@TableName(value = "biz_work_order_detail_update")
public class BizWorkOrderDetailUpdate extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 外键 */
    @ApiModelProperty(value = "${comment}")
    private Long workOrderId;

    /** 客户外键 */
    @ApiModelProperty(value = "${comment}")
    private Long companyId;

    /** 合同外键 */
    @ApiModelProperty(value = "${comment}")
    private Long contractId;

    @ApiModelProperty("合同明细外键")
    private Long contractDetailId;

    /** 任务外键 */
    @ApiModelProperty(value = "${comment}")
    private Long taskTypeId;

    /** 购买月数 */
    @Excel(name = "购买月数")
    @ApiModelProperty(value = "购买月数")
    private Integer serviceNum;

    /** 赠送月数 */
    @Excel(name = "赠送月数")
    @ApiModelProperty(value = "赠送月数")
    private Integer freeNum;

    @ApiModelProperty("租户外键")
    private Long tenantId;

    @ApiModelProperty("是否停止")
    private Integer isStop;

    //合同收款总金额
    @TableField(exist = false)
    private BigDecimal totalityMoney;

    //合同应收款金额
    @TableField(exist = false)
    private BigDecimal accountsReceivable;

    //月单价
    @TableField(exist = false)
    private BigDecimal monthPrice;

    @TableField(exist = false)
    //合同状态
    private Integer status;

    @TableField(exist = false)
    private Long sourceWorkOrderDetailId;
}
