mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
打印日志
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.api.uniapp.customer;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.page.PageResponse;
|
||||
@@ -25,6 +26,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
@@ -242,7 +244,13 @@ public class PileController extends BaseController {
|
||||
// .join()会抛出未经检查的异常,不会强制开发者处理异常 .get()会抛出检查异常,需要开发者处理
|
||||
all.join();
|
||||
all.get();
|
||||
response = new RestApiResponse<>(connectorInfoListFuture.get());
|
||||
|
||||
Map<String, Object> map = Maps.newHashMap();
|
||||
map.put("connectorInfoList", connectorInfoListFuture.get());
|
||||
map.put("billingPriceList", billingPriceFuture.get());
|
||||
map.put("merchantInfoVO", merchantInfoVOFuture.get());
|
||||
|
||||
response = new RestApiResponse<>(map);
|
||||
}catch (Exception e) {
|
||||
logger.error("查询充电枪口详情 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
|
||||
Reference in New Issue
Block a user