parent
d26b0db93d
commit
941be7d19a
|
@ -144,13 +144,12 @@ public class DisposeNodeManagerController {
|
||||||
|
|
||||||
IDArrayReq reqInfo = mr.getRequestObject(IDArrayReq.class);
|
IDArrayReq reqInfo = mr.getRequestObject(IDArrayReq.class);
|
||||||
|
|
||||||
if (reqInfo.getId() == null || Arrays.stream(reqInfo.getId()).anyMatch(Objects::isNull)) {
|
if (reqInfo.getId() == null) {
|
||||||
log.error("Request params error, error:{}", mr.getMsgContent());
|
log.error("Request params error, error:{}", mr.getMsgContent());
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMS);
|
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reqInfo.getId().length > 1
|
if (reqInfo.getId()[0].length() == 0) {
|
||||||
|| Arrays.stream(reqInfo.getId()).anyMatch(v -> v.length() == 0)) {
|
|
||||||
log.error("Prohibit deleting multiple devices at the same time");
|
log.error("Prohibit deleting multiple devices at the same time");
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_REMOVEMORE);
|
return ProtocolRespDTO.result(ErrorCode.ERR_REMOVEMORE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue