| | |
| | | |
| | | private int d2 = 5; |
| | | |
| | | private List<Integer> starts2 = Lists.newArrayList(389, 478, 567, 745, 835, 923, 1012, 1101, 1190, 1366, 1458, 1547); |
| | | private List<Integer> starts2 = Lists.newArrayList(389, 478, 567, 656,835, 923, 1012, 1101, 1190, 1366, 1458, 1547); |
| | | |
| | | |
| | | @RequestMapping("/loc") |
| | |
| | | // } |
| | | if (loc.getBay() > 32) { |
| | | Integer i = starts2.get((loc.getRow() - 13) / 2); |
| | | Code cacheByData = codeService.getCacheByData(Utils.zeroFill((Utils.zeroFill((((loc.getBay()-1) % 8) + i + (((loc.getBay()-1) / 8) - 4) * 10) + "", 8)) + "", 8)); |
| | | loc.setCode(cacheByData.getId()); |
| | | locService.updateById(loc); |
| | | if (i==656){ |
| | | Code cacheByData = codeService.getCacheByData(Utils.zeroFill((Utils.zeroFill((((loc.getBay()-1) % 8) + i + (((loc.getBay()-1) / 8) - 4) * 10) + "", 8)) + "", 8)); |
| | | loc.setCode(cacheByData.getId()); |
| | | locService.updateById(loc); |
| | | } |
| | | } |
| | | } |
| | | return "success"; |