| | |
| | | return dto; |
| | | } |
| | | |
| | | public List<DeliveryOrderItemDTO> getDeliveryOrderItems(PostQueryDTO dto){ |
| | | List<String> idList = dto.getIds(); |
| | | List<DeliveryOrderItemDTO> ls = new ArrayList<>(); |
| | | if(idList != null && idList.size() > 0){ |
| | | for(String id : idList){ |
| | | ls.add(getDeliveryOrderItem(id)); |
| | | } |
| | | } |
| | | |
| | | return ls; |
| | | } |
| | | |
| | | public DeliveryOrderItemDTO getDeliveryOrderItem(String id) { |
| | | DeliveryOrderItemDTO dto = new DeliveryOrderItemDTO(); |
| | | |
| | |
| | | ); |
| | | if (count == 0) { |
| | | Order o = orderMapper.selectById(orderId); |
| | | if(!Constants.ORDER_STATUS_BACKEND.COLLECTION.name().equals(o.getStatus())){ |
| | | if(!Constants.ORDER_STATUS_BACKEND.COLLECTION.name().equals(o.getStatusBackend())){ |
| | | log.warn("非待集货状态,不可设置待发货"); |
| | | return; |
| | | } |