mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
解绑个人桩,校验桩号是否为空
This commit is contained in:
@@ -118,6 +118,9 @@ public class PersonPileController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
String memberId = getMemberIdByAuthorization(request);
|
String memberId = getMemberIdByAuthorization(request);
|
||||||
dto.setMemberId(memberId);
|
dto.setMemberId(memberId);
|
||||||
|
if (StringUtils.isBlank(dto.getPileSn())) {
|
||||||
|
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||||
|
}
|
||||||
int i = pileService.userUnbindPile(dto);
|
int i = pileService.userUnbindPile(dto);
|
||||||
response = new RestApiResponse<>(i);
|
response = new RestApiResponse<>(i);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user