打印日志

This commit is contained in:
Guoqs
2024-08-29 15:28:58 +08:00
parent d60d50ed8a
commit 741c37cf5e

View File

@@ -63,7 +63,7 @@ public class PileController extends BaseController {
*/
@PostMapping("/queryStationInfos")
public RestApiResponse<?> queryStationInfos(HttpServletRequest request, @RequestBody QueryStationDTO queryStationDTO) {
logger.info("查询充电站信息列表 param:{}", JSON.toJSONString(queryStationDTO));
// logger.info("查询充电站信息列表 param:{}", JSON.toJSONString(queryStationDTO));
RestApiResponse<?> response;
try {
// 获取appid第三方平台用
@@ -73,7 +73,7 @@ public class PileController extends BaseController {
List<String> deptIds = pileMerchantInfoService.getDeptIdsByAppId(appId);
queryStationDTO.setMerchantDeptIds(deptIds);
}
logger.info("uniApp查询充电站信息appId:{}, dto:{}", appId, JSON.toJSONString(queryStationDTO));
logger.debug("uniApp查询充电站信息appId:{}, dto:{}", appId, JSON.toJSONString(queryStationDTO));
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
response = new RestApiResponse<>(pageResponse);
} catch (BusinessException e) {
@@ -83,7 +83,7 @@ public class PileController extends BaseController {
logger.error("查询充电站信息列表异常 error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_STATION_INFO_ERROR);
}
logger.info("查询充电站信息列表 result:{}", JSON.toJSONString(response));
logger.debug("查询充电站信息列表 param:{}, result:{}", JSON.toJSONString(queryStationDTO), JSON.toJSONString(response));
return response;
}