| | |
| | | if (targSiteArea != null && !targSiteArea.isEmpty()) { |
| | | for (String areaId : targSiteArea) { |
| | | BasStationArea basStationArea = basStationAreaService.getById(Long.parseLong(areaId)); |
| | | if (basStationArea == null || basStationArea.getStationAlias() == null || basStationArea.getStationAlias().isEmpty()) { |
| | | if (basStationArea == null || basStationArea.getStationAliasStaNo() == null || basStationArea.getStationAliasStaNo().isEmpty()) { |
| | | continue; |
| | | } |
| | | siteList.put(basStationArea.getStationAreaId(), basStationArea.getStationAlias()); |
| | | siteList.put(basStationArea.getStationAreaId(), basStationArea.getStationAliasStaNo()); |
| | | // siteList.addAll(basStationArea.getStationAlias()); |
| | | } |
| | | if (!siteList.isEmpty()) { |
| | |
| | | |
| | | |
| | | public boolean generateActualPath(Task task,TaskPathTemplateMerge taskPathTemplateMerge,boolean endSignUp) { |
| | | boolean actualPath = false; |
| | | List<Integer> conditionExpression = taskPathTemplateMerge.getConditionExpression(); |
| | | Integer i = 0;//it顺序 |
| | | Integer j = 0;//suT顺序 |
| | |
| | | if (basStation == null){ |
| | | return false; |
| | | } |
| | | if (!basStation.getType().equals(0)){ |
| | | if (!basStation.getType().equals(0) && !task.getTaskType().equals(TaskType.TASK_TYPE_CROSS_DOCKING_OUT.type)){ |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_S.type); |
| | | basStation.setBarcode(task.getBarcode()); |
| | | basStationService.updateById(basStation); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | taskService.updateById(task); |
| | | return actualPath; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | } |