解绑个人桩,校验桩号是否为空

This commit is contained in:
Guoqs
2024-11-05 15:56:26 +08:00
parent f4feca4207
commit 5f14ad3411

View File

@@ -118,6 +118,9 @@ public class PersonPileController extends BaseController {
try {
String memberId = getMemberIdByAuthorization(request);
dto.setMemberId(memberId);
if (StringUtils.isBlank(dto.getPileSn())) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
int i = pileService.userUnbindPile(dto);
response = new RestApiResponse<>(i);
} catch (BusinessException e) {