diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java index eef3df78..2bf98693 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryEquipAuthController.java @@ -49,7 +49,7 @@ public class QueryEquipAuthController { Long stationId = Long.parseLong(pileDataModel.get("stationId").toString()); List xhpcInternetUserList = xhpcInternetUserRepository.findByCooperationStartTimeBeforeAndCooperationEndTimeAfterAndOperatorIdEvcsLike(Instant.now(), - Instant.now(), equipAuthSeq.substring(0, 9)); + Instant.now(), commonRequest.getOperatorId()); if (xhpcInternetUserList.isEmpty()) { equipAuthResponse.setSuccStat(1); equipAuthResponse.setFailReason(2); @@ -59,7 +59,7 @@ public class QueryEquipAuthController { Long internetUserId = xhpcInternetUserList.get(0).getId(); XhpcStationInternetBlacklist xhpcStationInternetBlacklist = xhpcStationInternetBlacklistRepo.findByChargingStationIdAndInternetUserId(stationId, internetUserId).orElse(null); - resp.setRet("0"); + resp.setRet("0"); //todo del if (null != xhpcStationInternetBlacklist) { equipAuthResponse.setSuccStat(1); equipAuthResponse.setFailReason(2);