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

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

import java.math.BigDecimal;
import java.util.List;

/**
 * 工单完成记录对象 biz_work_order_record
 *
 * @author ruoyi
 * @date 2023-11-10
 */
@Data
@TableName(value = "biz_work_order_record")
public class BizWorkOrderRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 年 */
    @Excel(name = "年")
    @ApiModelProperty(value = "年")
    private String year;

    /** 月 */
    @Excel(name = "月")
    @ApiModelProperty(value = "月")
    private String month;

    /** 工单外键 */
    @ApiModelProperty(value = "工单外键")
    private Long workOrderId;

    /** 完成状态 */
    @Excel(name = "完成状态")
    @ApiModelProperty(value = "完成状态")
    private Integer status;

    /** 状态描述 */
    @Excel(name = "状态描述")
    @ApiModelProperty(value = "状态描述")
    private String statusDescript;

    /** 租户id */
    @ApiModelProperty(value = "状态描述")
    private Long tenantId;

    /** 客户id */
    @ApiModelProperty(value = "客户外键")
    private Long companyId;

    @ApiModelProperty("消耗")
    private BigDecimal cost;

    @TableField(exist = false)
    private List<Long> workOrderIds;

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