| | |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | private Integer max = 10000; |
| | | |
| | | private static final List<String> DISABLE_LOC_NO = new ArrayList<String>() {{ |
| | | // add("0200101"); |
| | | // add("0300101"); |
| | |
| | | |
| | | return JSONObject.toJSONString(arrayLists); |
| | | } |
| | | |
| | | private Integer generateMap1Bay(int bay){ |
| | | int y = bay; |
| | | Integer[] bayAdd = {1,3,5,7,9,11,13,15,17,19}; |
| | |
| | | return y; |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | AgvMapController a = new AgvMapController(); |
| | | System.out.println(a.generateMap4Row(4)); |
| | | |
| | | System.out.println(a.process(1)); |
| | | } |
| | | |
| | | private List<Integer> process(int start) { |
| | | List<Integer> l = new ArrayList<>(); |
| | | while (start <= max) { |
| | | l.add(start); |
| | | start = start + 2; |
| | | } |
| | | return l; |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/map/searchData/auth") |
| | | @ManagerAuth |
| | | public R searchLoc(@RequestParam("lev") Integer lev, |