diff --git a/ebike-staff/src/main/java/com/cdzy/staff/model/entity/EbikeOperatorStaff.java b/ebike-staff/src/main/java/com/cdzy/staff/model/entity/EbikeOperatorStaff.java index 9bdbf8e..47f8854 100644 --- a/ebike-staff/src/main/java/com/cdzy/staff/model/entity/EbikeOperatorStaff.java +++ b/ebike-staff/src/main/java/com/cdzy/staff/model/entity/EbikeOperatorStaff.java @@ -2,7 +2,6 @@ package com.cdzy.staff.model.entity; import com.mybatisflex.annotation.Column; import com.mybatisflex.annotation.Id; -import com.mybatisflex.annotation.KeyType; import com.mybatisflex.annotation.Table; import lombok.AllArgsConstructor; import lombok.Builder; @@ -38,8 +37,6 @@ public class EbikeOperatorStaff implements Serializable { private String salt; - private Long roleId; - private Long operatorId; private Integer status; diff --git a/ebike-staff/src/main/resources/db/data.sql b/ebike-staff/src/main/resources/db/data.sql index d898bd8..0ea1f5e 100644 --- a/ebike-staff/src/main/resources/db/data.sql +++ b/ebike-staff/src/main/resources/db/data.sql @@ -22,7 +22,7 @@ INSERT INTO "public"."ebike_operator" VALUES (311460622768435200, '卓景出行', '四川省成都市西部智谷B区', '15008231529', NULL, '2025-08-09 00:14:44.550027', NULL, NULL, 'f'); -INSERT INTO "public"."ebike_operator_staff" VALUES (320131029184712704, 'admin', 'b98b43d0eef6480daf4bdb7793aa8b7d557c85bdac52e4f814c5e9ba424baa6f:mT5Y0iBQJg9YtHUW38whlw==', 312523146360233984, 311460622768435200, 1, NULL, NULL, '2025-08-11 22:38:56.561597', NULL, NULL, 'f', 'mT5Y0iBQJg9YtHUW38whlw=='); +INSERT INTO "public"."ebike_operator_staff" VALUES (320131029184712704, 'admin', 'b98b43d0eef6480daf4bdb7793aa8b7d557c85bdac52e4f814c5e9ba424baa6f:mT5Y0iBQJg9YtHUW38whlw==', 311460622768435200, 1, NULL, NULL, '2025-08-11 22:38:56.561597', NULL, NULL, 'f', 'mT5Y0iBQJg9YtHUW38whlw=='); INSERT INTO "public"."ebike_role" VALUES (312523146360233984, '超级管理员', 311460622768435200, '系统默认角色', NULL, '2025-08-11 22:36:51.219978', NULL, NULL, 'f', 't', 'f'); diff --git a/ebike-staff/src/main/resources/db/init.sql b/ebike-staff/src/main/resources/db/init.sql index a2fc7bc..df2cc7b 100644 --- a/ebike-staff/src/main/resources/db/init.sql +++ b/ebike-staff/src/main/resources/db/init.sql @@ -92,7 +92,6 @@ CREATE TABLE "public"."ebike_operator_staff" ( "staff_id" int8 NOT NULL DEFAULT nextval('ebike_operator_staff_staff_id_seq'::regclass), "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, "password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL, - "role_id" int8 NOT NULL, "operator_id" int8 NOT NULL, "status" int2 DEFAULT 1, "last_login" timestamp(6), @@ -106,7 +105,6 @@ CREATE TABLE "public"."ebike_operator_staff" ( ; COMMENT ON COLUMN "public"."ebike_operator_staff"."username" IS '用户名'; COMMENT ON COLUMN "public"."ebike_operator_staff"."password" IS '密码(加密后'; -COMMENT ON COLUMN "public"."ebike_operator_staff"."role_id" IS '角色id'; COMMENT ON COLUMN "public"."ebike_operator_staff"."operator_id" IS '运营商id'; COMMENT ON COLUMN "public"."ebike_operator_staff"."status" IS '状态'; COMMENT ON COLUMN "public"."ebike_operator_staff"."last_login" IS '上次登陆时间';