jiangping
2024-10-28 a22fa65d1027f8500c0494e97ff2232f70e9ca93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
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<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;
    }
 
 
}