diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/PileController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/PileController.java index 3380b2549..881163696 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/PileController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/PileController.java @@ -12,6 +12,7 @@ import com.jsowell.pile.dto.QueryConnectorListDTO; import com.jsowell.pile.dto.QueryStationDTO; import com.jsowell.pile.dto.RemoteGroundLockDTO; import com.jsowell.pile.service.*; +import com.jsowell.pile.vo.base.ConnectorInfoVO; import com.jsowell.pile.vo.uniapp.customer.BillingPriceVO; import com.jsowell.pile.vo.web.ThirdPartySnRelationVO; import com.jsowell.web.controller.pile.PileConnectorInfoController; @@ -216,6 +217,22 @@ public class PileController extends BaseController { } } + + + @GetMapping("/selectConnectorInfoList/{pileSn}") + public RestApiResponse selectConnectorInfoList(@PathVariable("pileSn") String pileSn) { + RestApiResponse response = null; + try { + List connectorInfoVOS = pileConnectorInfoService.selectConnectorInfoList(pileSn); + response = new RestApiResponse<>(connectorInfoVOS); + }catch (Exception e) { + logger.error("查询充电枪口详情 error", e); + response = new RestApiResponse<>(e); + } + logger.info("查询充电枪口详情 response:{}", response); + return response; + } + /** * 预约充电接口 */ diff --git a/jsowell-admin/src/main/java/com/jsowell/service/PileService.java b/jsowell-admin/src/main/java/com/jsowell/service/PileService.java index 1f7fd914b..c4960dab1 100644 --- a/jsowell-admin/src/main/java/com/jsowell/service/PileService.java +++ b/jsowell-admin/src/main/java/com/jsowell/service/PileService.java @@ -182,7 +182,7 @@ public class PileService { // 查询站点信息 PileStationVO stationInfo = pileStationInfoService.getStationInfo(pileInfoVO.getStationId()); - log.info("查询充电枪口详情-getStationInfo:{}, onLineStatus:{}", pileInfoVO.getStationId(), JSON.toJSONString(stationInfo)); + log.info("查询充电枪口详情-getStationInfo:{}, stationInfo:{}", pileInfoVO.getStationId(), JSON.toJSONString(stationInfo)); if (stationInfo == null || StringUtils.equals(stationInfo.getOpenFlag(), Constants.ZERO)) { throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN); }