dev
parent
8b0150d7a0
commit
024b33c8d8
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue