export all customers

This commit is contained in:
Shaun Chyxion 2018-04-09 20:28:56 +08:00
parent fae9367ca0
commit cf0dc8c84e

View File

@ -61,7 +61,7 @@ public class CustomerServiceSupport
private static final String SPLITTER = new String(new int[]{0x1d}, 0, 1);
private static final CSVFormat EXPORT_FORMAT =
CSVFormat.DEFAULT.withHeader(
"ID",
"Customer ID",
"Name",
"Sum Sales(3 Years)",
"Sales",
@ -447,11 +447,12 @@ public class CustomerServiceSupport
final CSVPrinter printer = EXPORT_FORMAT.print(fileWriter)) {
scan(512, new Search()
.setAttr("APPLICATION_NOT_NULL", true)
.desc(Customer.SUM_YTD_SALES),
// .setAttr("APPLICATION_NOT_NULL", true)
// .desc(Customer.SUM_YTD_SALES),
.asc(Customer.ID),
this::exportList,
this::exportCount, c -> {
// "ID",
// "Customer ID",
// "Name",
// "Sum Sales(3 Years)",
// "Sales",