提交 63ff8730 编写于 作者: Z zyyang

change

上级 013d6693
...@@ -81,7 +81,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner { ...@@ -81,7 +81,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner {
} }
} }
private int insertTask(JdbcTaosdemoConfig config) { private void insertTask(JdbcTaosdemoConfig config) {
int numOfThreadsForInsert = config.numOfThreadsForInsert; int numOfThreadsForInsert = config.numOfThreadsForInsert;
int sleep = config.sleep; int sleep = config.sleep;
if (config.autoCreateTable) { if (config.autoCreateTable) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<update id="createUsingSuperTable"> <update id="createUsingSuperTable">
CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=","> <foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value} #{tag.value}
</foreach> </foreach>
</update> </update>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
VALUES VALUES
<foreach collection="values" item="value"> <foreach collection="values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=","> <foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value} #{field.value}
</foreach> </foreach>
</foreach> </foreach>
</insert> </insert>
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
<insert id="insertOneTableMultiValuesUsingSuperTable"> <insert id="insertOneTableMultiValuesUsingSuperTable">
INSERT INTO ${database}.${name} USING ${supertable} TAGS INSERT INTO ${database}.${name} USING ${supertable} TAGS
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=","> <foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value} #{tag.value}
</foreach> </foreach>
VALUES VALUES
<foreach collection="values" item="value"> <foreach collection="values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=","> <foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value} #{field.value}
</foreach> </foreach>
</foreach> </foreach>
</insert> </insert>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
VALUES VALUES
<foreach collection="table.values" item="value"> <foreach collection="table.values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=","> <foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value} #{field.value}
</foreach> </foreach>
</foreach> </foreach>
</foreach> </foreach>
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
<foreach collection="tables" item="table"> <foreach collection="tables" item="table">
${table.database}.${table.name} USING ${table.supertable} TAGS ${table.database}.${table.name} USING ${table.supertable} TAGS
<foreach collection="table.tags" item="tag" index="index" open="(" close=")" separator=","> <foreach collection="table.tags" item="tag" index="index" open="(" close=")" separator=",">
${tag.value} #{tag.value}
</foreach> </foreach>
VALUES VALUES
<foreach collection="table.values" item="value"> <foreach collection="table.values" item="value">
<foreach collection="value.fields" item="field" open="(" close=")" separator=","> <foreach collection="value.fields" item="field" open="(" close=")" separator=",">
${field.value} #{field.value}
</foreach> </foreach>
</foreach> </foreach>
</foreach> </foreach>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册