mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 修改车牌号校验是否绑定
This commit is contained in:
@@ -3,6 +3,8 @@ package com.jsowell.pile.service.impl;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.jsowell.common.constant.UserConstants;
|
||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.domain.MemberPlateNumberRelation;
|
||||
import com.jsowell.pile.mapper.MemberPlateNumberRelationMapper;
|
||||
@@ -86,13 +88,13 @@ public class MemberPlateNumberRelationServiceImpl implements MemberPlateNumberRe
|
||||
}
|
||||
|
||||
// 校验vin
|
||||
// String vinCode = memberPlateNumberRelation.getVinCode();
|
||||
// if (StringUtils.isNotBlank(vinCode)) {
|
||||
// // 判断当前vin是否被绑定
|
||||
// if (UserConstants.NOT_UNIQUE.equals(checkVinCodeUnique(vinCode))) {
|
||||
// throw new BusinessException(ReturnCodeEnum.CODE_THIS_VIN_HAS_BEEN_BINDING);
|
||||
// }
|
||||
// }
|
||||
String vinCode = memberPlateNumberRelation.getVinCode();
|
||||
if (StringUtils.isNotBlank(vinCode)) {
|
||||
// 判断当前vin是否被绑定
|
||||
if (UserConstants.NOT_UNIQUE.equals(checkVinCodeUnique(vinCode))) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_THIS_VIN_HAS_BEEN_BINDING);
|
||||
}
|
||||
}
|
||||
return memberPlateNumberRelationMapper.updateMemberPlateNumberRelation(memberPlateNumberRelation);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user