mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
udpate 打印日志
This commit is contained in:
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -240,16 +241,16 @@ public class HuaWeiControllerV2 extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/v2/query_station_status")
|
||||
public String queryStationStatus(@RequestBody List<String> stationIds) {
|
||||
public Map<String, String> queryStationStatus(@RequestBody List<String> stationIds) {
|
||||
logger.info("查询华为设备接口状态 stationIds:{}", stationIds);
|
||||
String result = null;
|
||||
Map<String, String> map = new LinkedHashMap<>();
|
||||
try {
|
||||
result = huaweiServiceV2.queryStationStatus(stationIds);
|
||||
map = huaweiServiceV2.queryStationStatus(stationIds);
|
||||
} catch (Exception e) {
|
||||
logger.error("查询华为设备接口状态 error", e);
|
||||
}
|
||||
logger.info("查询华为设备接口状态 result:{}", result);
|
||||
return result;
|
||||
logger.info("查询华为设备接口状态 result:{}", map);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user