Commit c44a74aa by yinyong

导出费用列表excel新增发票状态

parent 97cb0f3a
......@@ -51,7 +51,7 @@ public class CostExportServiceImpl implements CostExportService {
return null;
}
// 设置表头
String[] headers = {"费用单号","费用类型","费用单大类","费用单小类","费用单状态","借支/借还","关联借支单号","借支单状态","是否抵个税","付款主体","收款单位","付款理由","付款金额","币种","创建人名称","下单时间","用途","付款时间"};
String[] headers = {"费用单号","费用类型","费用单大类","费用单小类","费用单状态","借支/借还","关联借支单号","借支单状态","是否抵个税","付款主体","收款单位","付款理由","付款金额","币种","创建人名称","下单时间","用途","付款时间","发票状态"};
HSSFRow row0 = sheet.createRow(0);
for (int i = 0; i<headers.length;i++){
HSSFCell cell = row0.createCell(i);
......@@ -106,6 +106,11 @@ public class CostExportServiceImpl implements CostExportService {
row.createCell(1).setCellValue("借还");
row.createCell(12).setCellValue(costDto.getPayPlanAmountDto());
row.createCell(13).setCellValue(costDto.getPayDicDto());
if(costDto.getHasInvoice() == 1) {
row.createCell(18).setCellValue("有");
}else {
row.createCell(18).setCellValue("");
}
}
}
rows ++;
......
package com.blt.other.other_database.model;
public class TypeRelationDomain {
private Integer id;
private String manageCostType;
private String feeType;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getManageCostType() {
return manageCostType;
}
public void setManageCostType(String manageCostType) {
this.manageCostType = manageCostType;
}
public String getFeeType() {
return feeType;
}
public void setFeeType(String feeType) {
this.feeType = feeType;
}
@Override
public String toString() {
return "TypeRelationDomain{" +
"id=" + id +
", manageCostType='" + manageCostType + '\'' +
", feeType='" + feeType + '\'' +
'}';
}
}
\ No newline at end of file
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