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

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
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;

/**
 * 对账单明细 单次对象 biz_statement_account_once
 *
 * @author ruoyi
 * @date 2023-12-05
 */
@Data
@TableName(value = "biz_statement_account_once")
public class BizStatementAccountOnce extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 扣款单外键 */
    @ApiModelProperty(value = "${comment}")
    private Long deductId;

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

    @TableField(exist = false)
    private String companyName;

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

    /** 办理事项 */
    @Excel(name = "办理事项")
    @ApiModelProperty(value = "办理事项")
    private String description;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal amount;

    /** 委托时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "委托时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "委托时间")
    private Date entrustDate;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "完成时间")
    private Date finishedDate;

    /** 租户 */
    @ApiModelProperty(value = "完成时间")
    private Long tenantId;

    /** 委托单外键 */
    @ApiModelProperty(value = "完成时间")
    private Long entrustOrderId;

    /** 任务类型 任务表外键 任务明细表 */
    @ApiModelProperty(value = "任务外键")
    private Long taskTypeId;

    @TableField(exist = false)
    private String taskTypeName;

    /** 任务类型 任务表外键 任务明细表 */
    @ApiModelProperty(value = "任务明细外键")
    private Long taskTypeDetailId;

    @TableField(exist = false)
    private String taskTypeDetailName;

    /** 省 */
    @Excel(name = "省")
    @ApiModelProperty(value = "省")
    private String province;

    /** 注册省份编码 */
    @Excel(name = "注册省份编码")
    @ApiModelProperty(value = "注册省份编码")
    private String provinceCode;

    /** 注册城市编码 */
    @Excel(name = "注册城市编码")
    @ApiModelProperty(value = "注册城市编码")
    private String cityCode;

    /** 市 */
    @Excel(name = "市")
    @ApiModelProperty(value = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    @ApiModelProperty(value = "区")
    private String district;

    /** 注册行政区编码 */
    @Excel(name = "注册行政区编码")
    @ApiModelProperty(value = "注册行政区编码")
    private String districtCode;
}
