1、完善机场、车站、港口/码头的编码规则校验、生成

2、行政区域新增手动同步功能
This commit is contained in:
2026-07-14 11:48:29 +08:00
parent 204a60d60f
commit 23e5e4f57c
11 changed files with 697 additions and 0 deletions

View File

@@ -2498,3 +2498,82 @@ CREATE TABLE "blade_airport_master" (
);
CREATE INDEX "idx_airport_master_region" ON "blade_airport_master" ("province_code", "city_code");
CREATE INDEX "idx_airport_master_status" ON "blade_airport_master" ("status");
-- ----------------------------
-- Table structure for blade_currency
-- ----------------------------
DROP TABLE IF EXISTS "blade_currency";
CREATE TABLE "blade_currency" (
"id" int8 NOT NULL,
"code" varchar(3) NOT NULL,
"name" varchar(50) NOT NULL,
"english_name" varchar(100),
"symbol" varchar(10),
"decimal_places" int4 DEFAULT 2,
"exchange_rate" numeric(18,6) DEFAULT 1.000000,
"is_base_currency" int4 DEFAULT 0,
"data_source" varchar(20) DEFAULT '手工导入',
"remark" varchar(200),
"create_user" int8,
"create_dept" int8,
"create_time" timestamp(6),
"update_user" int8,
"update_time" timestamp(6),
"status" int4 DEFAULT 1,
"is_deleted" int4 DEFAULT 0,
CONSTRAINT "blade_currency_pkey" PRIMARY KEY ("id"),
CONSTRAINT "uk_currency_code" UNIQUE ("code")
);
CREATE INDEX "idx_currency_base" ON "blade_currency" ("is_base_currency");
CREATE INDEX "idx_currency_status" ON "blade_currency" ("status");
-- ----------------------------
-- Table structure for blade_customer_type
-- ----------------------------
DROP TABLE IF EXISTS "blade_customer_type";
CREATE TABLE "blade_customer_type" (
"id" int8 NOT NULL,
"name" varchar(50) NOT NULL,
"english_name" varchar(100),
"create_user" int8,
"create_dept" int8,
"create_time" timestamp(6),
"update_user" int8,
"update_time" timestamp(6),
"status" int4 DEFAULT 1,
"is_deleted" int4 DEFAULT 0,
CONSTRAINT "blade_customer_type_pkey" PRIMARY KEY ("id"),
CONSTRAINT "uk_customer_type_name" UNIQUE ("name")
);
CREATE INDEX "idx_customer_type_status" ON "blade_customer_type" ("status");
-- ----------------------------
-- Table structure for blade_fee_item
-- ----------------------------
DROP TABLE IF EXISTS "blade_fee_item";
CREATE TABLE "blade_fee_item" (
"id" int8 NOT NULL,
"name" varchar(50) NOT NULL,
"english_name" varchar(100),
"create_user" int8,
"create_dept" int8,
"create_time" timestamp(6),
"update_user" int8,
"update_time" timestamp(6),
"status" int4 DEFAULT 1,
"is_deleted" int4 DEFAULT 0,
CONSTRAINT "blade_fee_item_pkey" PRIMARY KEY ("id"),
CONSTRAINT "uk_fee_item_name" UNIQUE ("name")
);
CREATE INDEX "idx_fee_item_status" ON "blade_fee_item" ("status");
-- ----------------------------
-- Records of blade_menu for fee item
-- ----------------------------
INSERT INTO "blade_menu" ("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "component", "remark", "is_deleted") VALUES
(1980000000000000070, 1164733399668962201, 'fee_item', '费用项', 'menu', '/base/fee-item', 'iconfont icon-shoucang', 7, 1, 0, 1, '', NULL, 0),
(1980000000000000071, 1980000000000000070, 'fee_item_add', '新增', 'add', '/base/fee-item/add', 'plus', 1, 2, 1, 1, '', NULL, 0),
(1980000000000000072, 1980000000000000070, 'fee_item_edit', '修改', 'edit', '/base/fee-item/edit', 'form', 2, 2, 2, 1, '', NULL, 0),
(1980000000000000073, 1980000000000000070, 'fee_item_delete', '删除', 'delete', '/api/blade-system/fee-item/remove', 'delete', 3, 2, 3, 1, '', NULL, 0),
(1980000000000000074, 1980000000000000070, 'fee_item_view', '查看', 'view', '/base/fee-item/view', 'file-text', 4, 2, 2, 1, '', NULL, 0),
(1980000000000000075, 1980000000000000070, 'fee_item_status', '启停', 'status', '/api/blade-system/fee-item/status', 'key', 5, 2, 2, 1, '', NULL, 0);