From 8633d60810b0afbde9a3c1d1a39663db65f7eeb5 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 23 Jul 2022 13:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/0.0.1/data/1_update_user_data.sql | 4 -- scripts/0.0.1/data/1_update_user_dep_data.sql | 8 ++++ .../工具脚本(无需执行)/dataIn.js | 42 +++++++++---------- 3 files changed, 29 insertions(+), 25 deletions(-) delete mode 100644 scripts/0.0.1/data/1_update_user_data.sql create mode 100644 scripts/0.0.1/data/1_update_user_dep_data.sql diff --git a/scripts/0.0.1/data/1_update_user_data.sql b/scripts/0.0.1/data/1_update_user_data.sql deleted file mode 100644 index 13b0af55..00000000 --- a/scripts/0.0.1/data/1_update_user_data.sql +++ /dev/null @@ -1,4 +0,0 @@ --- ---------------------------- --- Records of user --- ---------------------------- -INSERT INTO "public"."user" VALUES (1, '管理员', 'SuperAdmin', 'e10adc3949ba59abbe56e057f20f883e', 1, 'f', NULL, NULL, NULL, TRUE); \ No newline at end of file diff --git a/scripts/0.0.1/data/1_update_user_dep_data.sql b/scripts/0.0.1/data/1_update_user_dep_data.sql new file mode 100644 index 00000000..c7f99bc1 --- /dev/null +++ b/scripts/0.0.1/data/1_update_user_dep_data.sql @@ -0,0 +1,8 @@ +-- ---------------------------- +-- Records of DEP +-- ---------------------------- +INSERT INTO "department" VALUES (1, '默认部门', NULL, false); +-- ---------------------------- +-- Records of user +-- ---------------------------- +INSERT INTO "user" VALUES (1, '管理员', 'SuperAdmin', 'e10adc3949ba59abbe56e057f20f883e', 1, 'f', NULL, NULL, NULL, TRUE); \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js index 0caf44a5..a8dc2654 100644 --- a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js +++ b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js @@ -24,27 +24,27 @@ try { await client.query('BEGIN') const fileList = [ - { - path: ['./data/道路/村道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['村'], - }, - { - path: ['./data/道路/县道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['县'], - }, - { - path: ['./data/道路/乡道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['乡'], - }, + // { + // path: ['./data/道路/村道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['村'], + // }, + // { + // path: ['./data/道路/县道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['县'], + // }, + // { + // path: ['./data/道路/乡道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['乡'], + // }, // { // path: (() => { // let p = [];