package com.doumee.dao.business.model; import com.baomidou.mybatisplus.annotation.TableField; import com.doumee.core.annotation.excel.ExcelColumn; import com.doumee.core.utils.Constants; import com.doumee.dao.business.vo.TaxesInvoicingVO; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.ArrayList; import java.util.Date; import java.math.BigDecimal; import java.util.List; /** * 发票信息表 * @author 江蹄蹄 * @date 2024/01/16 10:03 */ @Data @ApiModel("发票信息表") @TableName("`taxes`") public class Taxes { @TableId(type = IdType.AUTO) @ApiModelProperty(value = "主键", example = "1") @ExcelColumn(name="主键") private Integer id; @ApiModelProperty(value = "创建人编码", example = "1") @ExcelColumn(name="创建人编码") private Integer creator; @ApiModelProperty(value = "创建时间") @ExcelColumn(name="创建时间") private Date createDate; @ApiModelProperty(value = "更新人编码", example = "1") @ExcelColumn(name="更新人编码") private Integer editor; @ApiModelProperty(value = "更新时间") @ExcelColumn(name="更新时间") private Date editDate; @ApiModelProperty(value = "开户行") @ExcelColumn(name="开户行") private String taxBank; @ApiModelProperty(value = "是否删除0否 1是", example = "1") @ExcelColumn(name="是否删除0否 1是") private Integer isdeleted; @ApiModelProperty(value = "备注") @ExcelColumn(name="备注") private String remark; @ApiModelProperty(value = "状态 0待处理 1已开票 2平台撤回 3已冲红", example = "1") @ExcelColumn(name="状态 0待处理 1已开票 2平台撤回 3已冲红") private Integer status; @ApiModelProperty(value = "企业编码(关联company)", example = "1") @ExcelColumn(name="企业编码(关联company)") private Integer companyId; @ApiModelProperty(value = "方案编码(关联solutions)", example = "1") @ExcelColumn(name="方案编码(solutions)") private Integer solutionId; @ApiModelProperty(value = "总金额", example = "1") @ExcelColumn(name="总金额") private BigDecimal price; @ApiModelProperty(value = "接收方式 0电子发票 1纸质发票", example = "1") @ExcelColumn(name="接收方式 0电子发票 1纸质发票") private Integer type; @ApiModelProperty(value = "纳税人识别号") @ExcelColumn(name="纳税人识别号") private String taxCode; @ApiModelProperty(value = "账号") @ExcelColumn(name="账号") private String taxAccount; @ApiModelProperty(value = "地址、电话") @ExcelColumn(name="地址、电话") private String taxAddr; @ApiModelProperty(value = "发票接收地址") @ExcelColumn(name="发票接收地址") private String addr; @ApiModelProperty(value = "申请企业名称") @ExcelColumn(name="申请企业名称") private String companyName; @ApiModelProperty(value = "发票电子版") @ExcelColumn(name="发票电子版") private String imgurl; @ApiModelProperty(value = "发票号") @ExcelColumn(name="发票号") private String doneCode; @ApiModelProperty(value = "上传发票备注") @ExcelColumn(name="上传发票备注") private String doneInfo; @ApiModelProperty(value = "上传发票时间") @ExcelColumn(name="上传发票时间") private Date doneDate; @ApiModelProperty(value = "上传发票用户编码") @ExcelColumn(name="上传发票用户编码") private Integer doneUserId; @ApiModelProperty(value = "单据类型 0委托开票 1直保", example = "1") @ExcelColumn(name="单据类型 0委托开票 1直保") private Integer applyType; @ApiModelProperty(value = "平台撤回时间") @ExcelColumn(name="平台撤回时间") private Date cancelDate; @ApiModelProperty(value = "撤回备注") @ExcelColumn(name="撤回备注") private String cancelInfo; @ApiModelProperty(value = "撤回操作人员编码", example = "1") @ExcelColumn(name="撤回操作人员编码") private Integer cancelUserId; @ApiModelProperty(value = "冲红时间") @ExcelColumn(name="冲红时间") private Date delDate; @ApiModelProperty(value = "冲红备注") @ExcelColumn(name="冲红备注") private String delInfo; @ApiModelProperty(value = "冲红操作人员编码", example = "1") @ExcelColumn(name="冲红操作人员编码") private Integer delUerId; @ApiModelProperty(value = "单据申请编码(关联insurance_apply)", example = "1") @ExcelColumn(name="单据申请编码(关联insurance_apply)") private Integer insuranceApplyId; @ApiModelProperty(value = "申请人") @TableField(exist = false) private String creatorName; @ApiModelProperty(value = "方案名称") @TableField(exist = false) private String solutionName; @ApiModelProperty(value = "发票附件完整显示地址") @TableField(exist = false) private String imgurlFull; @ApiModelProperty(value = "保单号") @TableField(exist = false) private String insuranceCode; @ApiModelProperty(value = "查询开始时间") @TableField(exist = false) private Date startDate; @ApiModelProperty(value = "查询截止时间") @TableField(exist = false) private Date endDate; @ApiModelProperty(value = "投保和加减保") @TableField(exist = false) List applyList;// @ApiModelProperty(value = "冲红单列表") @TableField(exist = false) List delTaxList ;// @ApiModelProperty(value = "保单主键 - 查询保单的开票历史记录") @TableField(exist = false) private Integer applyId; @ApiModelProperty(value = "撤回操作人") @TableField(exist = false) private String cancelUserName; public TaxesInvoicingVO getTaxesInvoicingVO(){ TaxesInvoicingVO taxesInvoicingVO = new TaxesInvoicingVO(); taxesInvoicingVO.setId(this.getId()); taxesInvoicingVO.setSolutionsName(this.getSolutionName()); taxesInvoicingVO.setInsuranceCode(this.getInsuranceCode()); taxesInvoicingVO.setDownCode(this.getDoneCode()); taxesInvoicingVO.setCreateTime(this.getCreateDate()); taxesInvoicingVO.setAmount(this.getPrice()); taxesInvoicingVO.setType(Constants.TWO); return taxesInvoicingVO; } }