新增 发票导出接口

This commit is contained in:
Lemon
2026-07-16 15:21:42 +08:00
parent a7d838cdb1
commit cc532bfcec
5 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
package com.jsowell.pile.vo.web;
import com.jsowell.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* 发票详情导出数据
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderInvoiceExportVO {
@Excel(name = "申请记录ID", sort = 1, needMerge = true)
private String id;
@Excel(name = "会员ID", sort = 2, needMerge = true, width = 20)
private String memberId;
@Excel(name = "申请人电话", sort = 3, needMerge = true, width = 18)
private String phoneNumber;
@Excel(name = "状态", sort = 4, needMerge = true, readConverterExp = "0=未开票,1=已开票")
private String status;
@Excel(name = "申请时间", sort = 5, needMerge = true, width = 20)
private String createTime;
@Excel(name = "开票时间", sort = 6, needMerge = true, width = 20)
private String updateTime;
@Excel(name = "抬头ID", sort = 7, needMerge = true)
private String titleId;
@Excel(name = "抬头名称", sort = 8, needMerge = true, width = 30)
private String titleName;
@Excel(name = "抬头类型", sort = 9, needMerge = true)
private String titleType;
@Excel(name = "税号", sort = 10, needMerge = true, width = 24)
private String taxId;
@Excel(name = "单位地址", sort = 11, needMerge = true, width = 30)
private String unitAddress;
@Excel(name = "抬头邮箱", sort = 12, needMerge = true, width = 24)
private String email;
@Excel(name = "接收方式", sort = 13, needMerge = true)
private String reception;
@Excel(name = "抬头电话", sort = 14, needMerge = true, width = 18)
private String titlePhoneNumber;
@Excel(name = "开户银行", sort = 15, needMerge = true, width = 24)
private String bankName;
@Excel(name = "银行账户", sort = 16, needMerge = true, width = 24)
private String bankAccountNumber;
@Excel(name = "默认抬头", sort = 17, needMerge = true, readConverterExp = "0=否,1=是")
private String defaultFlag;
@Excel(name = "订单明细", sort = 18)
private List<OrderInvoiceOrderExportVO> orderList;
}

View File

@@ -0,0 +1,69 @@
package com.jsowell.pile.vo.web;
import com.jsowell.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
/**
* 发票关联订单导出明细
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderInvoiceOrderExportVO {
@Excel(name = "订单号", sort = 1, width = 24)
private String orderCode;
@Excel(name = "总用电量", sort = 2)
private BigDecimal totalUsedElectricity;
@Excel(name = "订单总金额", sort = 3)
private BigDecimal totalOrderAmount;
@Excel(name = "电费总金额", sort = 4)
private BigDecimal totalElectricityAmount;
@Excel(name = "服务费总金额", sort = 5)
private BigDecimal totalServiceAmount;
@Excel(name = "尖时段用电量", sort = 6)
private BigDecimal sharpUsedElectricity;
@Excel(name = "尖时段电费单价", sort = 7)
private BigDecimal sharpElectricityPrice;
@Excel(name = "尖时段服务费单价", sort = 8)
private BigDecimal sharpServicePrice;
@Excel(name = "峰时段用电量", sort = 9)
private BigDecimal peakUsedElectricity;
@Excel(name = "峰时段电费单价", sort = 10)
private BigDecimal peakElectricityPrice;
@Excel(name = "峰时段服务费单价", sort = 11)
private BigDecimal peakServicePrice;
@Excel(name = "平时段用电量", sort = 12)
private BigDecimal flatUsedElectricity;
@Excel(name = "平时段电费单价", sort = 13)
private BigDecimal flatElectricityPrice;
@Excel(name = "平时段服务费单价", sort = 14)
private BigDecimal flatServicePrice;
@Excel(name = "谷时段用电量", sort = 15)
private BigDecimal valleyUsedElectricity;
@Excel(name = "谷时段电费单价", sort = 16)
private BigDecimal valleyElectricityPrice;
@Excel(name = "谷时段服务费单价", sort = 17)
private BigDecimal valleyServicePrice;
}