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

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel("biz_financial_report_tax_detail 财务报税明细")
public class BizFinancialReportTaxNonZero extends BaseEntity {
    @ApiModelProperty("客户外键")
    private Long companyId;
    @ApiModelProperty("账套外键")
    private Integer accountSetsId;
    @ApiModelProperty("登录账套外键")
    private Long tenantId;
    @ApiModelProperty("当前维护人员")
    private Long currentEmployeeId;
    @ApiModelProperty("全部维护人员")
    private String employeeIds;
    @ApiModelProperty("工单外键")
    private Long workOrderId;

    @ApiModelProperty(value = "报税所属期")
    @Excel(name = "报税所属期",sort = 6)
    @TableField(exist = false)
    private String currentPeriod;

    @Excel(name = "状态",sort = 8)
    @TableField(exist = false)
    private String statusText;

    @Excel(name = "是否零申报",sort = 5)
    @TableField(exist = false)
    private String zero;

    @Excel(name = "报税填写",sort = 7)
    @TableField(exist = false)
    private String makeOut;

    @Excel(name = "客户名称",sort = 1)
    @TableField(exist = false)
    private String companyName;
    @TableField(exist = false)
    private String companyLevel;
    @TableField(exist = false)
    private String currentDate;
    @TableField(exist = false)
    private String checkoutDate;

    @Excel(name = "纳税性质",sort = 4)
    @TableField(exist = false)
    private String taxType;
    @TableField(exist = false)
    private Integer isZero;

    @TableField(exist = false)
    private List<BizFinancialReportTaxDetailNonZero> details;
    @TableField(exist = false)
    @Excel(sort = 12 ,targetAttr = "previousAnnualLosses",name="可弥补之前年度的亏损")
    private BizFinancialReportTaxDetailNonZero detail;

    @Excel(name = "税号",sort = 3)
    @TableField(exist = false)
    private String socialCreditCode;
    @Excel(name = "来源",sort = 2)
    @TableField(exist = false)
    private String fromCompanyName;

    //当前维护人员
    @TableField(exist = false)
    private String currentEmployeeName;


    /** 查询条件新增 */
    @TableField(exist = false)
    private String year;
    @TableField(exist = false)
    private String month;
    @TableField(exist = false)
    private Integer status;

    //是否为自己负责(当前登陆人Id)
    @TableField(exist = false)
    private Long principal;

    //执行人
    @Excel(name = "执行人",sort = 9)
    @TableField(exist = false)
    private String serviceName;
    @TableField(exist = false)
    private Long customerLabelId;
    @TableField(exist = false)
    private String customerLabelName;
    @Excel(name = "审核人", sort = 10)
    @TableField(exist = false)
    private String verifierName;
    @TableField(exist = false)
    @Excel(name = "审核时间", dateFormat = "yyyy-MM-dd",sort = 11)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private java.util.Date verifierTime;
    @TableField(exist = false)
    private List<String> dateFilter;
    @TableField(exist = false)
    private String toTenantName;
}
