| | |
| | | } |
| | | boolean is = true; |
| | | for (LocDto locDto1 :dtos){ |
| | | List<LocDetl> list = locDetlList.stream().filter(item -> item.getLocNo().equals(locDto1.getLocNo()) && item.getMatnr().equals(locDto.getMatnr()) && item.getBatch().equals(locDto1.getBatch())).collect(Collectors.toList()); |
| | | List<LocDetl> list = locDetlList. |
| | | stream().filter(item -> |
| | | item.getLocNo().equals(locDto1.getLocNo()) && |
| | | item.getMatnr().equals(locDto1.getMatnr()) && |
| | | item.getBatch().equals(locDto1.getBatch()) |
| | | ).collect(Collectors.toList()); |
| | | if (list.size() != 1){ |
| | | throw new CoolException("判断站点数据错误"); |
| | | } |
| | |
| | | .build() |
| | | .doPost(); |
| | | JSONObject res = JSON.parseObject(response); |
| | | message = jsonObject.getString("message"); |
| | | message = res.getString("message"); |
| | | if (res.getInteger("code").equals(0)) { |
| | | success = true; |
| | | } else { |
| | |
| | | } |
| | | |
| | | //此程序用于优化堆垛机异常时的运行时间 |
| | | for (int i = times; i <= crnNumber * 2; i++) { |
| | | for (int i = times; i <= crnNumber * 4; i++) { |
| | | int[] locNecessaryParameters = Utils.LocNecessaryParameters(rowLastno, curRow, crnNumber, whsType); |
| | | curRow = locNecessaryParameters[1]; |
| | | crnNo = locNecessaryParameters[2]; |