如果使用的是schedule_record,也就是我写的代码的话,你需要修改schedule_record表的collation,在docker的mysql上使用命令,先mysql -u root -p ,输入密码后,成功进入mysql服务中,然后输入use water-drop来进入water-drop数据库,然后输入如下操作来修改collation
ALTER TABLE schedule_record MODIFY COLUMN id varchar(36) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN createdBy varchar(255) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN updatedBy varchar(255) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN deletedBy varchar(255) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN status varchar(255) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN cardRecordId varchar(36) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN scheduleId varchar(36) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN courseId varchar(36) COLLATE utf8mb3_general_ci;
ALTER TABLE schedule_record MODIFY COLUMN orgId varchar(36) COLLATE utf8mb3_general_ci;
修改完后再重新docker compose up 即可