public CtBatchOrder getCtBatchOrderByBatchNum(Long batchNum) throws ManagerException{ CtBatchOrder ctBatchOrder = this.queryExchangeByBatchNum(batchNum); List<CtExchangeOrder> list = new ArrayList<CtExchangeOrder>(); if (null != ctBatchOrder && null != ctBatchOrder.getCtExchangeOrderList() && ctBatchOrder.getCtExchangeOrderList().size() > 0) { for(CtExchangeOrder ce : ctBatchOrder.getCtExchangeOrderList()){ if (null != ce && null != ce.getStatus() && ce.getStatus().intValue() == CtExchangeOrder.STATUS_WAIT_CHANNEL_ORDER && null != ce.getOrderStatus() && ce.getOrderStatus().intValue() == CtExchangeOrder.ORDER_STATUS_NO_ORDER){ list.add(ce); } } } ctBatchOrder.setCtExchangeOrderList(list); return ctBatchOrder; }