|
@@ -92,6 +92,19 @@ public class InvoiceController {
|
|
|
param.setPageNum(pageNum);
|
|
|
invoiceVOPage = invoiceService.pageInvoice(param);
|
|
|
}
|
|
|
+ for (InvoiceVO record : invoiceVOPage.getRecords()) {
|
|
|
+ //1表示不需要发票,2表示增值税普通发票,3表示增值税专用发票
|
|
|
+ switch (record.getType()){
|
|
|
+ case 3 : record.setTypeStr("专用发票");break;
|
|
|
+ default: record.setTypeStr("普通发票"); break;
|
|
|
+ }
|
|
|
+ //开票状态(0-否,1-是)
|
|
|
+ switch (record.getInvoiced()){
|
|
|
+ case 0 : record.setTypeStr("未开票");break;
|
|
|
+ default: record.setTypeStr("已开票"); break;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
excelService.commonExport(request,response,"开票申请数据",invoiceVOPage.getRecords(),excelWriter);
|
|
|
}
|
|
|
|