| | |
| | | if (Cools.isEmpty(agvWrkDetls)) { |
| | | return; |
| | | } |
| | | List<AgvWrkDetl> data = new ArrayList<>(); |
| | | //区分不同任务类型的上报方式 |
| | | |
| | | if (IN_TYPE_LIST.contains(agvWrkMast.getIoType())) { |
| | | String barcode = agvWrkMast.getBarcode(); |
| | | if (barcode.startsWith("20") || barcode.startsWith("21") || barcode.startsWith("40")) { |
| | | reportMesPakinOrder(agvWrkMast, agvWrkDetls); |
| | | for (AgvWrkDetl agvWrkDetl : agvWrkDetls) { |
| | | if (agvWrkDetl.getMatnr().startsWith("10") || agvWrkDetl.getMatnr().startsWith("20") || agvWrkDetl.getMatnr().startsWith("30")) { |
| | | data.add(agvWrkDetl); |
| | | } |
| | | } |
| | | if (OUT_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | String barcode = agvWrkMast.getBarcode(); |
| | | if (barcode.startsWith("20") || barcode.startsWith("21") || barcode.startsWith("40")) { |
| | | reportMesPakoutOrder(agvWrkMast, agvWrkDetls); |
| | | if (!Cools.isEmpty(data)) { |
| | | if (IN_TYPE_LIST.contains(agvWrkMast.getIoType())) { |
| | | reportMesPakinOrder(agvWrkMast, data); |
| | | } |
| | | if (OUT_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | reportMesPakoutOrder(agvWrkMast, data); |
| | | } |
| | | if (MOVE_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | generateMesParam(agvWrkMast, data); |
| | | } |
| | | } |
| | | if (MOVE_TYPE_List.contains(agvWrkMast.getIoType())) { |
| | | String barcode = agvWrkMast.getBarcode(); |
| | | if (agvWrkMast == null || agvWrkMast.getBarcode() == null) { |
| | | return; |
| | | } |
| | | if (barcode.startsWith("20") || barcode.startsWith("21") || barcode.startsWith("40")) { |
| | | generateMesParam(agvWrkMast, agvWrkDetls); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |