Commit 4d8108f0 by jianshuqin

导出费用单列表增加所属项目、所属账期、人民币金额字段

parent 3bfa097f
......@@ -53,7 +53,7 @@ public class CostExportServiceImpl implements CostExportService {
}
// 设置表头
String[] headers = {"费用单号", "费用类型", "费用单大类", "费用单小类", "费用单状态", "借支/借还", "关联借支单号", "借支单状态", "是否抵个税", "付款主体", "收款单位", "付款理由", "付款金额", "币种", "创建人名称", "下单时间", "用途", "付款时间", "发票状态"
, "项目", "客户编号", "会计科目"};
, "项目", "客户编号", "会计科目", "所属项目", "所属账期", "人民币金额"};
HSSFRow row0 = sheet.createRow(0);
for (int i = 0; i < headers.length; i++) {
HSSFCell cell = row0.createCell(i);
......@@ -117,6 +117,9 @@ public class CostExportServiceImpl implements CostExportService {
row.createCell(19).setCellValue(costDto.getProjectType());
row.createCell(20).setCellValue(costDto.getCustomerNum());
row.createCell(21).setCellValue(costDto.getAccountingSubjectName());
row.createCell(22).setCellValue(costDto.getProject());
row.createCell(23).setCellValue(costDto.getProjectDate() != null ? new SimpleDateFormat("yyyy-MM").format(costDto.getProjectDate()) : "");
row.createCell(24).setCellValue(costDto.getAmountRmb().toString());
rows++;
}
// 保存到本地,并且返回路径
......
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