mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-13 02:28:08 +08:00
打印日志
This commit is contained in:
@@ -63,7 +63,7 @@ public class PileController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/queryStationInfos")
|
@PostMapping("/queryStationInfos")
|
||||||
public RestApiResponse<?> queryStationInfos(HttpServletRequest request, @RequestBody QueryStationDTO queryStationDTO) {
|
public RestApiResponse<?> queryStationInfos(HttpServletRequest request, @RequestBody QueryStationDTO queryStationDTO) {
|
||||||
logger.info("查询充电站信息列表 param:{}", JSON.toJSONString(queryStationDTO));
|
// logger.info("查询充电站信息列表 param:{}", JSON.toJSONString(queryStationDTO));
|
||||||
RestApiResponse<?> response;
|
RestApiResponse<?> response;
|
||||||
try {
|
try {
|
||||||
// 获取appid(第三方平台用)
|
// 获取appid(第三方平台用)
|
||||||
@@ -73,7 +73,7 @@ public class PileController extends BaseController {
|
|||||||
List<String> deptIds = pileMerchantInfoService.getDeptIdsByAppId(appId);
|
List<String> deptIds = pileMerchantInfoService.getDeptIdsByAppId(appId);
|
||||||
queryStationDTO.setMerchantDeptIds(deptIds);
|
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);
|
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
|
||||||
response = new RestApiResponse<>(pageResponse);
|
response = new RestApiResponse<>(pageResponse);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
@@ -83,7 +83,7 @@ public class PileController extends BaseController {
|
|||||||
logger.error("查询充电站信息列表异常 error", e);
|
logger.error("查询充电站信息列表异常 error", e);
|
||||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_GET_PILE_STATION_INFO_ERROR);
|
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;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user