udpate 打印日志

This commit is contained in:
Lemon
2024-03-20 08:18:00 +08:00
parent 065311cfa2
commit 3106fd7992
3 changed files with 23 additions and 6 deletions

View File

@@ -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;
}
/**