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

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.sql.Date;
import java.util.List;

/**
 * 委托对象 biz_entrust
 *
 * @author ruoyi
 * @date 2023-11-15
 */
@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 Long taskTypeDetailId;

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

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

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

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

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

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

    @TableField(exist = false)
    private String toAccountName;

//    /** 停止委托 */
    @ApiModelProperty(value = "停止委托")
    @TableField(exist = false)
    private Integer isStop;

}
