| | |
| | | return false; |
| | | } |
| | | |
| | | public static boolean hasAgv(List<TaskDto> list, TaskDto dto) { |
| | | if (Cools.isEmpty(list)) { |
| | | return false; |
| | | } |
| | | for (TaskDto taskDto : list) { |
| | | if (dto.getLocNo().equals(taskDto.getLocNo()) && taskDto.getAgvStaNo().equals(dto.getAgvStaNo())) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | public static TaskDto findAgv(List<TaskDto> list, TaskDto dto) { |
| | | if (Cools.isEmpty(list)) { |
| | | return null; |
| | | } |
| | | for (TaskDto taskDto : list) { |
| | | if (dto.getLocNo().equals(taskDto.getLocNo()) && taskDto.getAgvStaNo().equals(dto.getAgvStaNo())) { |
| | | return taskDto; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public static TaskDto find(List<TaskDto> list, TaskDto dto) { |
| | | if (Cools.isEmpty(list)) { |
| | | return null; |
| | |
| | | continue; |
| | | } |
| | | } |
| | | if (dto.getAnfme() > locDetl.getAnfme()) { |
| | | throw new CoolException("服务器内部错误"); |
| | | if (dto.getAnfme() > locDetl.getAnfme() && dto.getStandby1().equals(locDetl.getStandby1()) ) { |
| | | throw new CoolException("订单数量不能大于库存数量!!"); |
| | | } |
| | | if (dto.getAnfme().equals(locDetl.getAnfme())) { |
| | | sameNumber++; |