mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-06 06:57:59 +08:00
update 用户绑定VIN时进行trim处理
This commit is contained in:
@@ -610,7 +610,7 @@ public class MemberService {
|
|||||||
if (UserConstants.NOT_UNIQUE.equals(memberPlateNumberRelationService.checkVinCodeUnique(dto.getVinCode()))) {
|
if (UserConstants.NOT_UNIQUE.equals(memberPlateNumberRelationService.checkVinCodeUnique(dto.getVinCode()))) {
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_THIS_VIN_HAS_BEEN_BINDING);
|
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-正常使用
|
relation.setVinStatus(Constants.ONE); // 1-正常使用
|
||||||
}
|
}
|
||||||
memberPlateNumberRelationService.insertMemberPlateNumberRelation(relation);
|
memberPlateNumberRelationService.insertMemberPlateNumberRelation(relation);
|
||||||
|
|||||||
Reference in New Issue
Block a user