update 用户绑定VIN时进行trim处理

This commit is contained in:
Lemon
2024-10-29 13:22:46 +08:00
parent fb43d0746f
commit 2c555d45b2

View File

@@ -610,7 +610,7 @@ public class MemberService {
if (UserConstants.NOT_UNIQUE.equals(memberPlateNumberRelationService.checkVinCodeUnique(dto.getVinCode()))) {
throw new BusinessException(ReturnCodeEnum.CODE_THIS_VIN_HAS_BEEN_BINDING);
}
relation.setVinCode(dto.getVinCode().toUpperCase(Locale.ROOT));
relation.setVinCode(dto.getVinCode().toUpperCase(Locale.ROOT).trim());
relation.setVinStatus(Constants.ONE); // 1-正常使用
}
memberPlateNumberRelationService.insertMemberPlateNumberRelation(relation);