|
|
@ -40,7 +40,7 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
sheet.setDefaultColumnWidth((short) 25);
|
|
|
|
sheet.setDefaultColumnWidth((short) 25);
|
|
|
|
int rowNum = 0;
|
|
|
|
int rowNum = 0;
|
|
|
|
Row row = sheet.createRow(rowNum);
|
|
|
|
Row row = sheet.createRow(rowNum);
|
|
|
|
String[] title = {"Company name", "Store name", "Partner Code","Industry","Store address","Business hours","Contact information","Video link (optional)","Store description","Tags"};
|
|
|
|
String[] title = {"Company name", "Store name", "Partner Code","Industry","Store address","Business hours","Contact information","Video link (optional)","Store description","Tags","Logo","Company Photo"};
|
|
|
|
for (int i = 0; i < title.length; i++) {
|
|
|
|
for (int i = 0; i < title.length; i++) {
|
|
|
|
row.createCell(i, Cell.CELL_TYPE_STRING).setCellValue(title[i]);
|
|
|
|
row.createCell(i, Cell.CELL_TYPE_STRING).setCellValue(title[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -60,6 +60,8 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
row.createCell(7, Cell.CELL_TYPE_STRING).setCellValue(partner.getString(""));
|
|
|
|
row.createCell(7, Cell.CELL_TYPE_STRING).setCellValue(partner.getString(""));
|
|
|
|
row.createCell(8, Cell.CELL_TYPE_STRING).setCellValue(partner.getString("merchant_introduction"));
|
|
|
|
row.createCell(8, Cell.CELL_TYPE_STRING).setCellValue(partner.getString("merchant_introduction"));
|
|
|
|
row.createCell(9, Cell.CELL_TYPE_STRING).setCellValue(partner.getString(""));
|
|
|
|
row.createCell(9, Cell.CELL_TYPE_STRING).setCellValue(partner.getString(""));
|
|
|
|
|
|
|
|
row.createCell(10, Cell.CELL_TYPE_STRING).setCellValue(partner.getString("logo_url"));
|
|
|
|
|
|
|
|
row.createCell(11, Cell.CELL_TYPE_STRING).setCellValue(partner.getString("company_photo"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wb.write(ous);
|
|
|
|
wb.write(ous);
|
|
|
|
ous.flush();
|
|
|
|
ous.flush();
|
|
|
|