From f2a18a6ea1be052b09550addc6b0f6195cf65c7c Mon Sep 17 00:00:00 2001 From: Lemon Date: Mon, 9 Sep 2024 20:57:54 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/uniapp/customer/PileController.java | 17 +++++++++++++++++ .../java/com/jsowell/service/PileService.java | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) 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); }