管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-23 8a373a66936407266e860a19c0d44c406baae7cc
src/main/java/com/lf/server/config/InitConfig.java
@@ -75,6 +75,8 @@
            //testBlacklist();
            //FloatServerController.test();
            //testReadExcel();
            //testBatchUpdate();
            //testAccess();
            //boolean f1 = ZipHelper.unzip("D:\\LF\\data\\resources.zip", "D:\\LF\\data\\unzip");
            //boolean f2 = ZipHelper.zip("D:\\LF\\data\\res.zip", "D:\\LF\\data\\unzip\\resources");
@@ -90,6 +92,23 @@
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
    }
    private void testBatchUpdate() {
        DlgagnpEntity d1 = new DlgagnpEntity();
        d1.setGid(56);
        d1.setGb("10");
        d1.setName("a01");
        DlgagnpEntity d2 = new DlgagnpEntity();
        d2.setGid(57);
        d2.setGb("20");
        d2.setName("a02");
        List<DlgagnpEntity> list = new ArrayList<>();
        list.add(d1);
        list.add(d2);
        int rows = dlgagnpMapper.updateBatch(list);
    }
    private void testMybatisPlus() {
@@ -203,4 +222,9 @@
        List<?> list = ExcelHelper.readExcel(obj.getClass(), xls);
        int r3 = list.size();
    }
    private void testAccess() {
        List<Map<String, Object>> list = AccessHelper.readMdb("D:\\LF\\data\\test.mdb", "", "");
        int count = null == list || list.isEmpty() ? 0 : list.size();
    }
}