generated from root/miduo_server
订单逻辑修改
parent
974fbc3c5d
commit
a6bfa7add9
|
@ -304,7 +304,7 @@ public class OrderInfoController {
|
|||
Thread.sleep(100);
|
||||
}
|
||||
}
|
||||
LOGGER.info("导出订单操作,redis查询耗时:{}毫秒",DateUtil.now()-now);
|
||||
LOGGER.info("查询订单操作,查询耗时:{}毫秒",DateUtil.now()-now);
|
||||
return cgPayOrders;
|
||||
}
|
||||
|
||||
|
@ -314,6 +314,7 @@ public class OrderInfoController {
|
|||
*/
|
||||
private void exportOrderExcel(String name,List<Corder> cgPayOrders){
|
||||
long start = DateUtil.now();
|
||||
LOGGER.info("开始导出订单,写入文件");
|
||||
try (FileOutputStream fOut = new FileOutputStream(getExcelFilePath(name, start))) {
|
||||
try (Workbook workbook = new XSSFWorkbook()) {
|
||||
CellStyle contextStyle = workbook.createCellStyle();
|
||||
|
@ -358,10 +359,10 @@ public class OrderInfoController {
|
|||
}catch (Exception e){
|
||||
LOGGER.error("导出订单报错1:{}", e.getMessage(), e);
|
||||
}
|
||||
LOGGER.info("导出订单操作,excel文件写入耗时:{}毫秒", DateUtil.now() - start);
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("导出订单报错2:{}", e.getMessage(), e);
|
||||
}
|
||||
LOGGER.info("导出订单操作,excel文件写入耗时:{}毫秒", DateUtil.now() - start);
|
||||
}
|
||||
|
||||
private static String getExcelFilePath(String name, long start) throws Exception {
|
||||
|
|
|
@ -172,7 +172,6 @@
|
|||
success: function (data) {
|
||||
if (data === 1) {
|
||||
alert("操作成功!");
|
||||
window.location.reload();
|
||||
}
|
||||
if (data === 0) {
|
||||
alert("操作失败!");
|
||||
|
|
Loading…
Reference in New Issue