mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
bugfix vincode正序、反序都查询一遍
This commit is contained in:
@@ -145,6 +145,10 @@ public class MemberPlateNumberRelationServiceImpl implements MemberPlateNumberRe
|
||||
}
|
||||
vinCode = vinCode.trim();
|
||||
MemberPlateNumberRelation plateInfo = memberPlateNumberRelationMapper.queryByVinCode(vinCode);
|
||||
if (plateInfo == null) {
|
||||
vinCode = StringUtils.reverse(vinCode);
|
||||
plateInfo = memberPlateNumberRelationMapper.queryByVinCode(vinCode);
|
||||
}
|
||||
log.info("通过vin码查询数据库绑定用户信息 vinCode:{}, result:{}", vinCode, JSON.toJSONString(plateInfo));
|
||||
return plateInfo;
|
||||
}
|
||||
|
||||
@@ -392,10 +392,7 @@ public class DelayMerchantProgramLogic extends AbstractProgramLogic {
|
||||
|
||||
// 如果是vin启动,将启动锁定状态改为正常
|
||||
if (StringUtils.equals(data.getTransactionIdentifier(), "05")) {
|
||||
String vinCode = data.getVinCode();
|
||||
// 将vin取反
|
||||
String reverseVinCode = StringUtils.reverse(vinCode);
|
||||
vinStatusUnlocked(reverseVinCode);
|
||||
vinStatusUnlocked(data.getVinCode());
|
||||
}
|
||||
|
||||
// 发送停止充电订阅消息
|
||||
|
||||
@@ -396,10 +396,7 @@ public class NotDelayMerchantProgramLogic extends AbstractProgramLogic {
|
||||
|
||||
// 如果是vin启动,将启动锁定状态改为正常
|
||||
if (StringUtils.equals(data.getTransactionIdentifier(), "05")) {
|
||||
String vinCode = data.getVinCode();
|
||||
// 将vin取反
|
||||
String reverseVinCode = StringUtils.reverse(vinCode);
|
||||
vinStatusUnlocked(reverseVinCode);
|
||||
vinStatusUnlocked(data.getVinCode());
|
||||
}
|
||||
|
||||
// 发送停止充电订阅消息
|
||||
|
||||
Reference in New Issue
Block a user