diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java index 09a79d041..cfcddeed4 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileConnectorInfoServiceImpl.java @@ -277,7 +277,14 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService { // 查询枪口当前订单 for (PileConnectorInfoVO pileConnectorInfoVO : pileConnectorInfoList) { String pileConnectorCode = pileConnectorInfoVO.getPileConnectorCode(); - pileConnectorInfoVO.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(pileConnectorCode)); // 枪口号二维码 + // 通过stationId查询充电站信息(缓存方法) + PileStationVO stationInfo = pileStationInfoService.getStationInfo(pileConnectorInfoVO.getStationId()); + if (stationInfo != null && StringUtils.isNotBlank(stationInfo.getQrcodePrefix())) { + String connectorQrCodeUrl = stationInfo.getQrcodePrefix() + pileConnectorCode; + pileConnectorInfoVO.setConnectorQrCodeUrl(connectorQrCodeUrl); + }else { + pileConnectorInfoVO.setConnectorQrCodeUrl(getPileConnectorQrCodeUrl(pileConnectorCode)); // 枪口号二维码 + } OrderBasicInfo order = orderBasicInfoService.queryChargingByPileConnectorCode(pileConnectorCode); if (order != null) { pileConnectorInfoVO.setOrderCode(order.getOrderCode()); diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonParams.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java similarity index 93% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonParams.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java index fa74ecfc4..8f3563db8 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonParams.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyun.common; +package com.jsowell.thirdparty.lutongyunting.common; import lombok.Data; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonResult.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java similarity index 82% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonResult.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java index 31d0f54e3..d21570b0f 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyun/common/LTYTCommonResult.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyun.common; +package com.jsowell.thirdparty.lutongyunting.common; import lombok.Data;