MrShi
2024-04-02 22271e641e4505ba906c3770905b7e84e3ad8d85
server/service/src/main/java/com/doumee/dao/business/model/Taxes.java
@@ -1,6 +1,9 @@
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;
@@ -8,13 +11,16 @@
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/15 11:15
 * @date 2024/01/16 10:03
 */
@Data
@ApiModel("发票信息表")
@@ -32,7 +38,7 @@
    @ApiModelProperty(value = "创建时间")
    @ExcelColumn(name="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    @ApiModelProperty(value = "更新人编码", example = "1")
@@ -41,7 +47,7 @@
    @ApiModelProperty(value = "更新时间")
    @ExcelColumn(name="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date editDate;
    @ApiModelProperty(value = "开户行")
@@ -56,13 +62,17 @@
    @ExcelColumn(name="备注")
    private String remark;
    @ApiModelProperty(value = "状态 0待处理 1已开票 2平台撤回", example = "1")
    @ExcelColumn(name="状态 0待处理 1已开票 2平台撤回")
    @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="总金额")
@@ -88,13 +98,25 @@
    @ExcelColumn(name="发票接收地址")
    private String addr;
    @ApiModelProperty(value = "开票名称")
    @ExcelColumn(name="开票名称")
    @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直保")
@@ -102,7 +124,6 @@
    @ApiModelProperty(value = "平台撤回时间")
    @ExcelColumn(name="平台撤回时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cancelDate;
    @ApiModelProperty(value = "撤回备注")
@@ -112,5 +133,68 @@
    @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<TaxDetial> applyList;//
    @ApiModelProperty(value = "冲红单列表")
    @TableField(exist = false)
    List<TaxDetial> 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;
    }
}