|
|
@@ -276,13 +276,15 @@ public class DoubleHundredController {
|
|
|
Row rowTitle = sheet.createRow(0);
|
|
|
|
|
|
String[] titles = new String[]{"序号","区域","企业信息","联系人","联系电话","企业介绍",
|
|
|
- "收入(亿)","纳税(万)","企业法人","法人联系方式"};
|
|
|
+ "收入(亿)","纳税(万)","企业法人","法人联系方式","上报时间"};
|
|
|
|
|
|
for (int i=0;i<titles.length;i++) {
|
|
|
Cell cell = rowTitle.createCell(i);
|
|
|
cell.setCellValue(titles[i]);
|
|
|
}
|
|
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
+
|
|
|
for (int i=0;i<dhList.size();i++){
|
|
|
DoubleHundred dh = dhList.get(i);
|
|
|
|
|
|
@@ -299,6 +301,8 @@ public class DoubleHundredController {
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.enterprise.modules.common.utils.StringUtils.strValue(dh.getPayTaxes(),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.enterprise.modules.common.utils.StringUtils.strValue(dh.getCorporate(),""));
|
|
|
row.createCell(colIndex++).setCellValue(com.jpsoft.enterprise.modules.common.utils.StringUtils.strValue(dh.getCorporatePhone(),""));
|
|
|
+ String createTime = sdf.format(dh.getCreateTime());
|
|
|
+ row.createCell(colIndex++).setCellValue(com.jpsoft.enterprise.modules.common.utils.StringUtils.strValue(createTime,""));
|
|
|
}
|
|
|
|
|
|
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
|
|
@@ -309,8 +313,8 @@ public class DoubleHundredController {
|
|
|
byte[] buffer = output.toByteArray();
|
|
|
ByteArrayInputStream input = new ByteArrayInputStream(buffer);
|
|
|
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
|
|
|
- String now = sdf.format(new Date());
|
|
|
+ SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmm");
|
|
|
+ String now = sdf2.format(new Date());
|
|
|
String fileName = "企业双百强导出" + now + ".xls";
|
|
|
downloadUrl = OSSUtil.upload(ossConfig,"doubleHundred",fileName,input);
|
|
|
}
|