|
@@ -89,7 +89,7 @@ public class MyCarPlateNumberController{
|
|
}
|
|
}
|
|
List<MyCarPlateNumber> list = myCarPlateNumberService.list(new LambdaQueryWrapper<MyCarPlateNumber>().eq(MyCarPlateNumber::getUserId, form.getUserId()));
|
|
List<MyCarPlateNumber> list = myCarPlateNumberService.list(new LambdaQueryWrapper<MyCarPlateNumber>().eq(MyCarPlateNumber::getUserId, form.getUserId()));
|
|
if(CollectionUtil.isNotEmpty(list)){
|
|
if(CollectionUtil.isNotEmpty(list)){
|
|
- return Result.failed("用户已存在车牌");
|
|
|
|
|
|
+ myCarPlateNumberService.removeByIds(list);
|
|
}
|
|
}
|
|
MyCarPlateNumberForm result = myCarPlateNumberService.saveForm(form);
|
|
MyCarPlateNumberForm result = myCarPlateNumberService.saveForm(form);
|
|
return Result.success(result);
|
|
return Result.success(result);
|