| | |
| | | @Transactional |
| | | public List<Order> selectComplete() { |
| | | List<OrderPakin> orderPakinList = orderPakinService.selectComplete(); |
| | | if (orderPakinList == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderListPakin(orderPakinList); |
| | | } |
| | | |
| | | @Transactional |
| | | public List<Order> selectComplete8() { |
| | | List<OrderPakin> orderPakinList = orderPakinService.selectComplete8(); |
| | | if (orderPakinList == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderListPakin(orderPakinList); |
| | | } |
| | | |
| | | @Transactional |
| | | public boolean addToLogTableOrder(Order order) { |
| | | OrderPakin orderPakin = OrderTransFormationUtil.transformationPakin(order); |
| | | if (orderPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return orderPakinService.addToLogTable(orderPakin); |
| | | } |
| | | |
| | | @Transactional |
| | | public List<Order> selectOrderNoL(String orderNo) { |
| | | List<OrderPakin> orderPakinList = orderPakinService.selectorderNoL(orderNo); |
| | | if (orderPakinList == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderListPakin(orderPakinList); |
| | | } |
| | | |
| | | @Transactional |
| | | public Order selectOrderMoveStatus() { |
| | | OrderPakin orderPakin = orderPakinService.selectOrderMoveStatus(); |
| | | if (orderPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderPakin(orderPakin); |
| | | } |
| | | |
| | | @Transactional |
| | | public Order selectOrderMoveStatusInitial() { |
| | | OrderPakin orderPakin = orderPakinService.selectOrderMoveStatusInitial(); |
| | | if (orderPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderPakin(orderPakin); |
| | | } |
| | | |
| | | @Transactional |
| | | public OrderDetl selectItem(Long orderId, String matnr, String batch, String brand, String standby1, String standby2, String standby3, String boxType1, String boxType2, String boxType3) { |
| | | OrderDetlPakin orderDetlPakin = orderDetlPakinService.selectItem(orderId, matnr, batch, brand, standby1, standby2, standby3, boxType1, boxType2, boxType3); |
| | | if (orderDetlPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderDetlPakin(orderDetlPakin); |
| | | } |
| | | |
| | | @Transactional |
| | | public OrderDetl selectItem(String orderNo, String matnr, String batch, String brand, String standby1, String standby2, String standby3, String boxType1, String boxType2, String boxType3) { |
| | | OrderDetlPakin orderDetlPakin = orderDetlPakinService.selectItem(orderNo, matnr, batch, brand, standby1, standby2, standby3, boxType1, boxType2, boxType3); |
| | | if (orderDetlPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderDetlPakin(orderDetlPakin); |
| | | } |
| | | |
| | |
| | | public OrderDetl findByLook(List<OrderDetl> orderDetls, Long orderId, String matnr, String batch, String brand, String standby1, String standby2, String standby3, String boxType1, String boxType2, String boxType3) { |
| | | List<OrderDetlPakin> orderDetlPakins = OrderTransFormationUtil.transformationDetlListPakin(orderDetls); |
| | | OrderDetlPakin orderDetlPakin = orderDetlPakinService.findByLook(orderDetlPakins, orderId, matnr, batch, brand, standby1, standby2, standby3, boxType1, boxType2, boxType3); |
| | | if (orderDetlPakin == null) { |
| | | throw new CoolException("未找到该单据"); |
| | | } |
| | | return OrderTransFormationUtil.transformationOrderDetlPakin(orderDetlPakin); |
| | | } |
| | | |