1
zhangc
3 天以前 76ed2e55640f999bd21a33ef408ee9467ea7d385
1
2个文件已修改
24 ■■■■■ 已修改文件
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/controller/utils/UtilsController.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-manager/src/main/resources/application.yml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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, 656,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")
@@ -76,18 +76,24 @@
    public String loc() {
        List<Loc> list = locService.list(new LambdaQueryWrapper<Loc>().orderByAsc(Loc::getRow).orderByAsc(Loc::getBay).orderByAsc(Loc::getLev));
        for (Loc loc : list) {
            if (loc.getBay() == 24||loc.getBay() == 8||loc.getBay() == 16) {
                Integer i = starts.get((loc.getRow() - 1) / 2);
                Code cacheByData = codeService.getCacheByData(Utils.zeroFill(((loc.getBay()-1)%8 + i + (loc.getBay()-1) / 8 * 10) + "", 8));
                loc.setCode(cacheByData.getId());
                locService.updateById(loc);
            }
//            if (loc.getBay() == 24||loc.getBay() == 8||loc.getBay() == 16) {
//                Integer i = starts.get((loc.getRow() - 1) / 2);
//                Code cacheByData = codeService.getCacheByData(Utils.zeroFill(((loc.getBay()-1)%8 + i + (loc.getBay()-1) / 8 * 10) + "", 8));
//                loc.setCode(cacheByData.getId());
//                locService.updateById(loc);
//            }
//            if (loc.getBay() > 24 && loc.getBay() <= 32) {
//                Integer i = starts.get((loc.getRow() - 1)  / 2) + 30;
//                Code cacheByData = codeService.getCacheByData(Utils.zeroFill(((loc.getBay() - 24)%4-1 + i + (loc.getBay() - 24) / 4 * 6) + "", 8));
//                loc.setCode(cacheByData.getId());
//                locService.updateById(loc);
//            }
            if (loc.getBay() == 28 || loc.getBay() == 32) {
                Integer i = starts.get((loc.getRow() - 1) / 2) + 30;
                Code cacheByData = codeService.getCacheByData(Utils.zeroFill(((loc.getBay() - 24 - 1) % 4 + i + (loc.getBay() - 24 - 1) / 4 * 6) + "", 8));
                loc.setCode(cacheByData.getId());
                locService.updateById(loc);
            }
//            if (loc.getBay() > 32) {
//                Integer i = starts2.get((loc.getRow() - 13) / 2);
//                if (i==656){
zy-acs-manager/src/main/resources/application.yml
@@ -7,7 +7,7 @@
    static-path-pattern: /**
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://10.10.10.200:3306/rcs_ctu_stable_xgc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    url: jdbc:mysql://10.10.10.220:3306/xgc_zkd?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    password: xltys1995
    type: com.alibaba.druid.pool.DruidDataSource
@@ -48,7 +48,7 @@
  max: 30
  min: 10
  timeout: 5000
  index: 9
  index: 1
floyd:
  enable: false