zhang
8 天以前 1809dba25f489ea01c07a9ecc977d9f408545310
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/controller/utils/UtilsController.java
@@ -67,7 +67,7 @@
    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")
@@ -90,9 +90,11 @@
//            }
            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";