package cn.ezhizao.project.business.entrust.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 javax.validation.constraints.Max;
import java.sql.Date;
import java.util.List;

/**
 * 委托对象 biz_entrust
 *
 * @author ruoyi
 * @date 2023-10-16
 */
@Data
@TableName(value = "biz_entrust")
public class BizEntrust extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 委托客户id */
    @ApiModelProperty(value = "${comment}")
    private Long companyId;

    /** 委托账套id */
    @ApiModelProperty(value = "${comment}")
    private Long fromTenantId;

    /** 受委托账套id */
    @ApiModelProperty(value = "${comment}")
    private Long toTenantId;

    /** 委托单据 */
    @ApiModelProperty(value = "${comment}")
    private Long workOrderId;

    /** 委托id */
    @ApiModelProperty(value = "${comment}")
    private Integer taskTypeId;

    /** 来源委托id */
    @ApiModelProperty(value = "${comment}")
    private Long fromId;

    /** 主程序账套外键 */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /** 停止委托 */
    @Excel(name = "停止委托")
    @ApiModelProperty(value = "停止委托")
    private Integer isStop;

    @ApiModelProperty("工作月")
    private Date workMonth;

    @ApiModelProperty("当期月")
    private Date currentMonth;


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

    @TableField(exist = false)
    private String workYear;
    @TableField(exist = false)
    private String currentYear;

    @TableField(exist = false)
    private String toAccountName;
}
