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

import cn.ezhizao.project.business.IndividualIncomeTax.domain.BizFinancialIndividualIncomeTax;
import cn.ezhizao.project.business.IndividualIncomeTax.domain.BizFinancialIndividualIncomeTaxDetail;
import cn.ezhizao.project.business.housingFund.domain.BizHousingFundConfirmDetail;
import cn.ezhizao.project.business.housingFund.domain.BizHousingFundDeclareDetail;
import cn.ezhizao.project.business.keepAccounts.domain.BizFinancialKeepAccountDetail;
import cn.ezhizao.project.business.receiveTicket.domain.BizFinancialReceiveTicketDetail;
import cn.ezhizao.project.business.reportTax.domain.BizFinancialReportTaxDetail;
import cn.ezhizao.project.business.salary.domain.BizFinancialSalaryDetail;
import cn.ezhizao.project.business.socialSecurity.domain.BizSocialSecurityConfirmDetail;
import cn.ezhizao.project.business.socialSecurity.domain.BizSocialSecurityDeclareDetail;
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 org.springframework.transaction.annotation.Transactional;

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;

    @ApiModelProperty(value = "客户名称")
    @TableField(exist = false)
    private String companyName;

    /** 完成状态 */
    @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(value = "")
    private Long fromId;

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

    @ApiModelProperty("消耗")
    private BigDecimal cost;
    @TableField(exist = false)
    private BizFinancialSalaryDetail salary;
    @TableField(exist = false)
    private BizFinancialReceiveTicketDetail ticket;
    @TableField(exist = false)
    private BizFinancialKeepAccountDetail keepAccount;
    @TableField(exist = false)
    private BizFinancialReportTaxDetail reportTax;
    @TableField(exist = false)
    private BizFinancialIndividualIncomeTaxDetail individual;
    @TableField(exist = false)
    private BizHousingFundConfirmDetail housingFundConfirm;
    @TableField(exist = false)
    private BizHousingFundDeclareDetail housingFundDeclare;
    @TableField(exist = false)
    private BizSocialSecurityConfirmDetail socialSecurityConfirm;
    @TableField(exist = false)
    private BizSocialSecurityDeclareDetail socialSecurityDeclare;

}
