订单逻辑修改

jieling
PC-202302260912\Administrator 2023-09-12 18:57:06 +08:00
parent 974fbc3c5d
commit a6bfa7add9
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -172,7 +172,6 @@
success: function (data) {
if (data === 1) {
alert("操作成功!");
window.location.reload();
}
if (data === 0) {
alert("操作失败!");