create table room_time_unit
(id bigint unsigned auto_increment comment '主键'
primary key,
code int not null comment '时间段code',
hour int not null comment '小时',
step int not null comment '一个时间间隔长度(分)',
start_time time not null comment '开始时间',
end_time time not null comment '结束时间',
is_deleted tinyint(1) default 0 not null comment '是否删除(0否/1是)',
deleted_at datetime null comment '删除时间')
comment '会议预约时间单位集合表' charset = utf8mb4;
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@2b08fde2] will not be managed by Spring
==> Preparing: SELECT id,deleted_at,is_deleted AS deleted,code,hour,start_time,step,end_time FROM room_time_unit WHERE is_deleted=0 AND (step = ? AND start_time >= ? AND end_time <= ?)==> Parameters: 15(Integer), 08:00(LocalTime), 18:00(LocalTime)<== Total: 0