管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-04 9c4f97da16048451d3ffc0a428cfd9f8cb81a50c
src/main/java/com/lf/server/config/InitConfig.java
@@ -75,6 +75,7 @@
            //testBlacklist();
            //FloatServerController.test();
            //testReadExcel();
            //testBatchUpdate();
            //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");
@@ -92,6 +93,23 @@
        }
    }
    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() {
        String s1 = locateService.selectWktById(1);