vin启动充电 修改日志

This commit is contained in:
Lemon
2023-06-12 16:38:05 +08:00
parent 1fd750c3ae
commit 94f5dc0d64
4 changed files with 6 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ public class ConfirmStartChargingRequestHandler extends AbstractHandler{
}
if (!StringUtils.equals("1", plateInfo.getVinStatus())) {
// 1- 正常使用
throw new BusinessException("", "状态不正确");
throw new BusinessException("", "vin状态不正确");
}
// vin码生成订单 vin启动充电
GenerateOrderDTO dto = new GenerateOrderDTO();

View File

@@ -613,8 +613,8 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
// 如果是vin启动将启动锁定状态改为正常
if (StringUtils.equals(data.getTransactionIdentifier(), "05")) {
MemberPlateNumberRelation plateInfo = memberPlateNumberRelationService.getMemberPlateInfoByVinCode(data.getVinCode());
if (plateInfo != null && (StringUtils.equals(plateInfo.getVinStatus(), "1"))) {
plateInfo.setVinStatus("0");
if (plateInfo != null && (StringUtils.equals(plateInfo.getVinStatus(), "2"))) {
plateInfo.setVinStatus("1");
memberPlateNumberRelationService.updateMemberPlateNumberRelation(plateInfo);
}
}