Commit c6b49c2b authored by sherlock's avatar sherlock

some export

parent 285799ae
...@@ -104,6 +104,7 @@ public class OutputInvoiceController { ...@@ -104,6 +104,7 @@ public class OutputInvoiceController {
new pwc.taxtech.atms.dto.vatdto.OutputVATInvoiceInfoDto(); new pwc.taxtech.atms.dto.vatdto.OutputVATInvoiceInfoDto();
d = beanUtil.copyProperties(x,d); d = beanUtil.copyProperties(x,d);
d.setInvoiceTypeName(d.getInvoiceTypeName()); d.setInvoiceTypeName(d.getInvoiceTypeName());
d.setTaxRate(x.getTaxRate().toString() + "%");
list2.add(d); list2.add(d);
}); });
Map<String, String> header = new LinkedHashMap<>(); Map<String, String> header = new LinkedHashMap<>();
...@@ -117,13 +118,13 @@ public class OutputInvoiceController { ...@@ -117,13 +118,13 @@ public class OutputInvoiceController {
header.put("InvoiceDate", "开票日期"); header.put("InvoiceDate", "开票日期");
// header.put("CodeVersion", "商品编码版本号"); // header.put("CodeVersion", "商品编码版本号");
// header.put("DocumentNum", "单据号"); // header.put("DocumentNum", "单据号");
// header.put("ProductName", "商品名称"); header.put("ProductName", "商品名称");
// header.put("ProductStandar", "规格"); // header.put("ProductStandar", "规格");
// header.put("Unit", "单位"); // header.put("Unit", "单位");
// header.put("Quantity", "数量"); header.put("Quantity", "数量");
// header.put("UnitPrice", "单价"); header.put("UnitPrice", "单价");
header.put("Amount", "金额"); header.put("Amount", "金额");
// header.put("TaxRate", "税率"); header.put("TaxRate", "税率");
header.put("TaxAmount", "税额"); header.put("TaxAmount", "税额");
// header.put("TaxClassCode", "税收分类编码"); // header.put("TaxClassCode", "税收分类编码");
......
...@@ -30,7 +30,7 @@ public class OutputVATInvoiceInfoDto { ...@@ -30,7 +30,7 @@ public class OutputVATInvoiceInfoDto {
private Date invoiceDate; private Date invoiceDate;
// @ExcelCell(index=9) // @ExcelCell(index=9)
private String codeVersion; private String codeVersion;
// @ExcelCell(index=11) @ExcelCell(index=7)
private String productName; private String productName;
// @ExcelCell(index=10) // @ExcelCell(index=10)
private String documentNum; private String documentNum;
...@@ -38,15 +38,15 @@ public class OutputVATInvoiceInfoDto { ...@@ -38,15 +38,15 @@ public class OutputVATInvoiceInfoDto {
private String productStandard; private String productStandard;
// @ExcelCell(index=13) // @ExcelCell(index=13)
private String unit; private String unit;
// @ExcelCell(index=14) @ExcelCell(index=8)
private Integer quantity; private Integer quantity;
// @ExcelCell(index=15) @ExcelCell(index=9)
private Double unitPrice; private Double unitPrice;
@ExcelCell(index=7) @ExcelCell(index=10)
private BigDecimal amount; private BigDecimal amount;
// @ExcelCell(index=17) @ExcelCell(index=11)
private BigDecimal taxRate; private String taxRate;
@ExcelCell(index=8) @ExcelCell(index=12)
private BigDecimal taxAmount; private BigDecimal taxAmount;
private String taxClassCode; private String taxClassCode;
@JsonProperty("periodID") @JsonProperty("periodID")
...@@ -194,11 +194,11 @@ public class OutputVATInvoiceInfoDto { ...@@ -194,11 +194,11 @@ public class OutputVATInvoiceInfoDto {
this.amount = amount; this.amount = amount;
} }
public BigDecimal getTaxRate() { public String getTaxRate() {
return taxRate; return taxRate;
} }
public void setTaxRate(BigDecimal taxRate) { public void setTaxRate(String taxRate) {
this.taxRate = taxRate; this.taxRate = taxRate;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment