不能依赖auth seq值
This commit is contained in:
parent
e73e611683
commit
9959bc614a
@ -49,7 +49,7 @@ public class QueryEquipAuthController {
|
||||
Long stationId = Long.parseLong(pileDataModel.get("stationId").toString());
|
||||
List<XhpcInternetUser> 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user