diff --git a/yudao-module-home/yudao-module-home-api/src/main/java/cn/iocoder/yudao/module/home/enums/ErrorCodeConstants.java b/yudao-module-home/yudao-module-home-api/src/main/java/cn/iocoder/yudao/module/home/enums/ErrorCodeConstants.java index 619e305..939738a 100644 --- a/yudao-module-home/yudao-module-home-api/src/main/java/cn/iocoder/yudao/module/home/enums/ErrorCodeConstants.java +++ b/yudao-module-home/yudao-module-home-api/src/main/java/cn/iocoder/yudao/module/home/enums/ErrorCodeConstants.java @@ -36,4 +36,6 @@ public interface ErrorCodeConstants { ErrorCode KQGL_NOT_EXISTS = new ErrorCode(1_011_012_000, "考勤管理不存在"); // ========== 车辆信息录入 1_011_013_000 ========== ErrorCode CARINFO_NOT_EXISTS = new ErrorCode(1_011_013_000, "车辆信息录入不存在"); + // ========== 驾驶员信息 1_011_014_000 ========== + ErrorCode DRIVER_NOT_EXISTS = new ErrorCode(1_011_014_000, "驾驶员信息不存在"); } diff --git a/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/clean.sql b/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/clean.sql index edadb4e..e05003b 100644 --- a/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/clean.sql +++ b/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/clean.sql @@ -10,3 +10,4 @@ DELETE FROM "oa_rcgl"; DELETE FROM "oa_kqdata"; DELETE FROM "oa_kqgl"; DELETE FROM "oa_carinfo"; +DELETE FROM "oa_Driver"; diff --git a/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/create_tables.sql b/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/create_tables.sql index a48d77e..bb2ca6a 100644 --- a/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/create_tables.sql +++ b/yudao-module-home/yudao-module-home-biz/src/test/resources/sql/create_tables.sql @@ -260,3 +260,22 @@ CREATE TABLE IF NOT EXISTS "oa_carinfo" ( "tenant_id" bigint NOT NULL, PRIMARY KEY ("id") ) COMMENT '车辆信息录入表'; +CREATE TABLE IF NOT EXISTS "oa_driver" ( + "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, + "name" varchar NOT NULL, + "gender" int NOT NULL, + "driver_status" int NOT NULL, + "contact_info" varchar NOT NULL, + "license" varchar NOT NULL, + "license_type" varchar, + "health_status" varchar, + "experience" varchar, + "remarks" varchar, + "creator" varchar DEFAULT '', + "create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updater" varchar DEFAULT '', + "update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + "deleted" bit NOT NULL DEFAULT FALSE, + "tenant_id" bigint NOT NULL, + PRIMARY KEY ("id") +) COMMENT '驾驶员信息';