| | |
| | | @Transactional |
| | | public R cargoBookingNote(OrderCargoBookingNoteParam param) { |
| | | try{ |
| | | List<String[]> OutLocBoxCs = new ArrayList<>(); |
| | | List<OrderOutLocBoxCsUtilParam> OutLocBoxCs = new ArrayList<>(); |
| | | String orderNo = "ZH" + snowflakeIdWorker.nextId(); |
| | | for (OrderCargoBookingNoteParam.Box box : param.getBoxList()){ |
| | | for (OrderCargoBookingNoteParam.Box.Roll roll : box.getRollList()){ |
| | | String[] outLocBox = new String[]{box.getBoxNo(),orderNo,param.getCstmrName(),roll.getMemo(),"合格"}; |
| | | OrderOutLocBoxCsUtilParam outLocBox = new OrderOutLocBoxCsUtilParam(); |
| | | outLocBox.setBoxNo(box.getBoxNo()); |
| | | outLocBox.setRoll(roll.getRollNo()); |
| | | outLocBox.setMemo(roll.getMemo()); |
| | | outLocBox.setOrderOneNo(orderNo); |
| | | outLocBox.setCstmrName(param.getCstmrName()); |
| | | outLocBox.setDanger("合格"); |
| | | OutLocBoxCs.add(outLocBox); |
| | | } |
| | | } |
| | | |
| | | if (!OutLocBoxCs.isEmpty()){ |
| | | OrderOutBatchUtil orderOutBatchUtil = new OrderOutBatchUtil(orderNo,param.getCstmrName(),"","MES下发计划组货单","计划组货单",true,param.getGroupGoodsNo()); |
| | | OrderOutBatchUtil orderOutBatchUtil = new OrderOutBatchUtil(orderNo,param.getCstmrName(),"","MES下发计划组货单","计划组货单",false,param.getGroupGoodsNo()); |
| | | return orderOutBatchUtil.setOrderOutBatchCargoBookingNote(OutLocBoxCs); |
| | | // return R.ok(); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new CoolException("组货单号:"+param.getGroupGoodsNo()+"计划组货单接收失败!!!"+e.getMessage()); |