update 车牌号 Vin 唯一校验

This commit is contained in:
2023-10-10 10:32:19 +08:00
parent 250af6aad3
commit c7e01848e4
6 changed files with 87 additions and 23 deletions

View File

@@ -267,6 +267,10 @@ public class MemberController extends BaseController {
logger.info("用户绑定车牌号 param:{}", JSONObject.toJSONString(dto));
RestApiResponse<?> response = null;
try {
// 参数校验
if (StringUtils.isBlank(dto.getCarNo())) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
String memberId = getMemberIdByAuthorization(request);
dto.setMemberId(memberId);
memberService.memberBindingCarNo(dto);