diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java index 6163f7bd043fae11a0cd83e8138465469922c082..8ec551b3a1271aadb6100e52e59425bc7dcc0ff1 100644 --- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java @@ -43,7 +43,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner { // 读配置参数 JdbcTaosdemoConfig config = new JdbcTaosdemoConfig(args); boolean isHelp = Arrays.asList(args).contains("--help"); - if (isHelp) { + if (isHelp || config.host == null || config.host.isEmpty()) { JdbcTaosdemoConfig.printHelp(); System.exit(0); } diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/impl/SubTableMapperImpl.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/impl/SubTableMapperImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..c93c7263a54d83d52af3f1f3e8ca725c9583f00b --- /dev/null +++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/impl/SubTableMapperImpl.java @@ -0,0 +1,39 @@ +package com.taosdata.taosdemo.mapper.impl; + +import com.taosdata.taosdemo.domain.SubTableMeta; +import com.taosdata.taosdemo.domain.SubTableValue; +import com.taosdata.taosdemo.mapper.SubTableMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.JdbcTemplate; + +import java.util.List; + +public class SubTableMapperImpl implements SubTableMapper { + + private JdbcTemplate jdbcTemplate; + + @Override + public int createUsingSuperTable(SubTableMeta subTableMeta) { + return 0; + } + + @Override + public int insertOneTableMultiValues(SubTableValue subTableValue) { + return 0; + } + + @Override + public int insertOneTableMultiValuesUsingSuperTable(SubTableValue subTableValue) { + return 0; + } + + @Override + public int insertMultiTableMultiValues(List tables) { + return 0; + } + + @Override + public int insertMultiTableMultiValuesUsingSuperTable(List tables) { + return 0; + } +}