|
|
|
@ -160,6 +160,17 @@ public class OrderController {
|
|
|
|
|
if (StrUtil.isBlank(deleteRequest.getId()) && CollUtil.isEmpty(deleteRequest.getIds())) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (deleteRequest.getStatus() != null) {
|
|
|
|
|
OrderFilterRequest orderFilterRequest = new OrderFilterRequest();
|
|
|
|
|
orderFilterRequest.setStatus(deleteRequest.getStatus());
|
|
|
|
|
orderFilterRequest.setId(deleteRequest.getId());
|
|
|
|
|
List<OrderEntity> orderEntityList = orderService.filterListOr(orderFilterRequest);
|
|
|
|
|
if (CollUtil.isEmpty(orderEntityList)) {
|
|
|
|
|
return ResultVOUtils.error(520, "单据不存在!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isNotEmpty(deleteRequest.getIds())) {
|
|
|
|
|
orderService.deleteOrders(deleteRequest.getIds());
|
|
|
|
|
} else {
|
|
|
|
|