| | |
| | | import com.zy.asrs.entity.BasDevpPosition; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.zy.core.enums.RouteCollectCountType; |
| | | import org.apache.xmlbeans.impl.xb.xsdschema.All; |
| | | |
| | | import java.util.*; |
| | | |
| | |
| | | } |
| | | |
| | | //逆序排列 |
| | | public static List<List<Integer>> siteListAll(List<BasDevpPosition> devpPosition){ |
| | | List<List<Integer>> sitePositions = new ArrayList<>(); |
| | | Integer[] integers = new Integer[devpPosition.size()]; |
| | | List<Integer> devRegions = new ArrayList<>(); |
| | | int i = 0; |
| | | for (BasDevpPosition basDevpPosition : devpPosition){ |
| | | if (basDevpPosition.getDevRegion()==0){ |
| | | continue; |
| | | } |
| | | if (!devRegions.contains(basDevpPosition.getDevRegion())){ |
| | | devRegions.add(basDevpPosition.getDevRegion()); |
| | | integers[basDevpPosition.getDevRegion()] = i; |
| | | i++; |
| | | List<Integer> sitePosition = new ArrayList<>(); |
| | | sitePosition.add(basDevpPosition.getDevNo()); |
| | | sitePositions.add(sitePosition); |
| | | } else { |
| | | sitePositions.get(integers[basDevpPosition.getDevRegion()]).add(basDevpPosition.getDevNo()); |
| | | } |
| | | } |
| | | return sitePositions; |
| | | } |
| | | |
| | | //逆序排列 |
| | | public static boolean devpNoSortbj(BasDevpPosition[] devpPosition,Integer souDevpNo,Integer endDevpNo){ |
| | | int sou = 0; |
| | | int end = 0; |