This commit is contained in:
Lemon
2023-07-11 15:31:26 +08:00
parent f85bc681b7
commit 8564e95866
3 changed files with 41 additions and 17 deletions

View File

@@ -317,7 +317,7 @@ public class MemberService {
if (StringUtils.isNotBlank(dto.getVinCode())) {
// 判断当前vin是否被绑定
MemberPlateNumberRelation memberPlateInfoByVinCode = memberPlateNumberRelationService.getMemberPlateInfoByVinCode(dto.getVinCode());
if (memberPlateInfoByVinCode == null) {
if (memberPlateInfoByVinCode != null) {
throw new BusinessException(ReturnCodeEnum.CODE_THIS_VIN_HAS_BEEN_BINDING);
}
relation.setVinCode(dto.getVinCode().toUpperCase(Locale.ROOT));

View File

@@ -182,6 +182,12 @@ public class SpringBootTestController {
private IMemberBasicInfoService memberBasicInfoService;
@Test
public void testVin() {
String vinCode = "LRWYGCFS3PC844497";
MemberPlateNumberRelation memberPlateInfoByVinCode = memberPlateNumberRelationService.getMemberPlateInfoByVinCode(vinCode);
System.out.println(memberPlateInfoByVinCode);
}
@Test
public void testUpdateConnectorStatus() {