lisai17@sina.com 2020-11-03 10:30:55 +08:00
parent 8b0150d7a0
commit 024b33c8d8
1 changed files with 6 additions and 0 deletions

View File

@ -347,6 +347,9 @@ public class OrderStatController extends BaseController {
int export = getInt("export", 0); // 是否导出为exce 0 不导出1 导出 int export = getInt("export", 0); // 是否导出为exce 0 不导出1 导出
if (export == 0) { if (export == 0) {
renderJson(Result.object(OrderStatService.me.yearStatByCustomer(tm))); renderJson(Result.object(OrderStatService.me.yearStatByCustomer(tm)));
} else {
Workbook wb = OrderStatService.me.yearStatByCustomerExport(tm);
render(new ExcelRender("按客户统计总销售汇总表_" + System.currentTimeMillis() + ".xlsx", wb));
} }
} }
@ -355,6 +358,9 @@ public class OrderStatController extends BaseController {
int export = getInt("export", 0); // 是否导出为exce 0 不导出1 导出 int export = getInt("export", 0); // 是否导出为exce 0 不导出1 导出
if (export == 0) { if (export == 0) {
renderJson(Result.object(OrderStatService.me.yearStatBySup(tm))); renderJson(Result.object(OrderStatService.me.yearStatBySup(tm)));
} else {
Workbook wb = OrderStatService.me.yearStatBySupExport(tm);
render(new ExcelRender("按砂站总销售汇总表_" + System.currentTimeMillis() + ".xlsx", wb));
} }
} }
} }