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