| | |
| | | List<AgvLocMast> distinctRow = agvLocMastService.selectDistinctLocByLevAndFloor(lev, floor); |
| | | List<Integer> integers = new ArrayList<>(); |
| | | int min = 0; |
| | | int i =1; |
| | | int i = 1; |
| | | for (AgvLocMast locMast : distinctRow) { |
| | | if (min > locMast.getMapRow1()) { |
| | | min = locMast.getMapRow1(); |
| | |
| | | |
| | | private Integer generateMap1Bay(int bay) { |
| | | int y = bay; |
| | | Integer[] bayAdd = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19}; |
| | | Integer[] bayAdd = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31}; |
| | | for (int i = 0; i < bayAdd.length; i++) { |
| | | if (bay > bayAdd[i]) { |
| | | y++; |
| | |
| | | |
| | | private Integer generateMap2Row(int row) { |
| | | int x = row; |
| | | Integer[] rowAdd = {2, 4, 6, 7, 8, 10, 12, 13, 15, 17, 19, 20, 22, 24}; |
| | | Integer[] rowAdd = {2, 4, 6, 7, 8, 10, 12, 13, 15, 17, 19, 20, 22, 24, 26, 28, 30, 32}; |
| | | for (int i = 0; i < rowAdd.length; i++) { |
| | | if (row > rowAdd[i]) { |
| | | x++; |
| | |
| | | |
| | | private Integer generateMap3Row(int row) { |
| | | int x = row; |
| | | Integer[] rowAdd = {2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 22, 24, 26, 28, 30, 32}; |
| | | Integer[] rowAdd = {2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40}; |
| | | for (int i = 0; i < rowAdd.length; i++) { |
| | | if (row >= rowAdd[i]) { |
| | | x++; |
| | |
| | | |
| | | @RequestMapping("/map/searchData/auth") |
| | | @ManagerAuth |
| | | public R searchLoc(@RequestParam("lev") Integer lev, |
| | | @RequestParam("locNo") String locNo, |
| | | @RequestParam("orderNo") String orderNo, |
| | | @RequestParam("specs") String specs, |
| | | @RequestParam("matnr") String matnr, |
| | | @RequestParam("maktx") String maktx |
| | | ) { |
| | | public R searchLoc(@RequestParam("lev") Integer lev, @RequestParam("locNo") String locNo, @RequestParam("orderNo") String orderNo, @RequestParam("specs") String specs, @RequestParam("matnr") String matnr, @RequestParam("maktx") String maktx) { |
| | | |
| | | List<AgvLocDetl> locDetls = agvLocDetlService.searchByLike(orderNo, matnr, maktx, specs, locNo); |
| | | ArrayList<AgvLocDetl> lists = new ArrayList<>(); |