|
@@ -36,6 +36,8 @@ import net.sf.json.JSONObject;
|
|
|
import org.apache.commons.codec.binary.Base64;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.poi.hssf.usermodel.*;
|
|
|
+import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
|
|
+import org.apache.poi.ss.usermodel.VerticalAlignment;
|
|
|
import org.apache.poi.ss.util.CellRangeAddress;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.slf4j.Logger;
|
|
@@ -1993,7 +1995,7 @@ public class AdminCustomerController {
|
|
|
SimpleDateFormat sdf3=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
cycleOnes = cycleOne * customerList.size();
|
|
|
//修改预计下载完成时间
|
|
|
- downloadProgressInfo.setDownloadDate(sdf3.format(new Date().getTime()+cycleOnes));
|
|
|
+ downloadProgressInfo.setDownloadDate(sdf3.format(System.currentTimeMillis()+cycleOnes));
|
|
|
downloadProgressInfo.setDownloadProgress(result);
|
|
|
customerService.updateDownloadProgressInfo(downloadProgressInfo);
|
|
|
}else{
|
|
@@ -2030,7 +2032,7 @@ public class AdminCustomerController {
|
|
|
//创建单元格,设置值表头,设置表头居中
|
|
|
HSSFCellStyle style = wb.createCellStyle();
|
|
|
//居中格式
|
|
|
- style.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
|
|
+ style.setAlignment(HorizontalAlignment.CENTER);
|
|
|
//设置表头
|
|
|
|
|
|
if (cells == null || cells.length == 0) {
|
|
@@ -2866,7 +2868,7 @@ public class AdminCustomerController {
|
|
|
SimpleDateFormat sdf3=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
cycleOnes = cycleOne * customerList.size();
|
|
|
//修改预计下载完成时间
|
|
|
- downloadProgressInfo.setDownloadDate(sdf3.format(new Date().getTime()+cycleOnes));
|
|
|
+ downloadProgressInfo.setDownloadDate(sdf3.format(System.currentTimeMillis()+cycleOnes));
|
|
|
downloadProgressInfo.setDownloadProgress(result);
|
|
|
customerService.updateDownloadProgressInfo(downloadProgressInfo);
|
|
|
}
|
|
@@ -2898,8 +2900,8 @@ public class AdminCustomerController {
|
|
|
//创建单元格,设置值表头,设置表头居中
|
|
|
HSSFCellStyle style = wb.createCellStyle();
|
|
|
//居中格式
|
|
|
- style.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
|
|
- style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);// 上下居中
|
|
|
+ style.setAlignment(HorizontalAlignment.CENTER);
|
|
|
+ style.setVerticalAlignment(VerticalAlignment.CENTER);// 上下居中
|
|
|
//设置表头
|
|
|
|
|
|
if (cells == null || cells.length == 0) {
|