bug修复

fengcang
anthonyywj2 3 years ago
parent 7fe44da15a
commit 491e9f17ce

@ -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 {

@ -6,7 +6,7 @@ import java.util.List;
@Data
public class DeleteRequest {
private Integer status;
String id;
List<String> ids;
}

Loading…
Cancel
Save