mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user