- 新增手术室类型字段支持急诊、择期、日间、复合手术室四种类型 - 添加所属科室字段实现科室级别资源管理 - 前端列表页面新增类型和所属科室显示列 - 新增类型选择器和科室选择器组件 - 后端实体类和服务类添加对应字段处理逻辑 - 数据库添加room_type_enum字段和相关索引 - 创建手术室类型字典数据和字典项配置 - 生成手术室管理功能说明文档
26 lines
685 B
SQL
26 lines
685 B
SQL
-- 检查cli_surgery表中是否有surgery_indication字段
|
|
SELECT
|
|
column_name,
|
|
data_type,
|
|
is_nullable,
|
|
column_default
|
|
FROM information_schema.columns
|
|
WHERE table_schema = 'public'
|
|
AND table_name = 'cli_surgery'
|
|
AND column_name = 'surgery_indication';
|
|
|
|
-- 查看cli_surgery表的所有字段
|
|
SELECT
|
|
column_name,
|
|
data_type,
|
|
is_nullable,
|
|
column_default
|
|
FROM information_schema.columns
|
|
WHERE table_schema = 'public'
|
|
AND table_name = 'cli_surgery'
|
|
ORDER BY ordinal_position;
|
|
|
|
-- 如果字段不存在,添加该字段
|
|
-- ALTER TABLE cli_surgery ADD COLUMN surgery_indication TEXT;
|
|
-- COMMENT ON COLUMN cli_surgery.surgery_indication IS '手术指征';
|