| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | //获取最近并在当前位置后边的位置 |
| | | public static Integer LatelyAndLessThanWcs(List<BasDevpPosition> devpPosition, long nowPosition){ |
| | | Integer result = 0; |
| | | Integer integer = LatelyAndLessThan(devpPosition, nowPosition); |
| | | for (BasDevpPosition basDevpPosition:devpPosition){ |
| | | if (basDevpPosition.getDevNo().equals(integer)){ |
| | | if (basDevpPosition.getDevNo() == 101){ |
| | | result = 133; |
| | | } |
| | | break; |
| | | } |
| | | result = basDevpPosition.getDevNo(); |
| | | } |
| | | return result; |
| | | } |
| | | // //获取最近并在当前位置前边的位置 |
| | | // public static Long LatelyAndLessThan(long[] devpPosition,long nowPosition){ |
| | | // long result = 0L; |