Files
rlz/修复sys_hospital表完成.txt
2026-01-26 15:02:59 +08:00

60 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
========================================
修复 sys_hospital 表完成
========================================
修复时间:$(date)
一、问题描述
-----------
错误信息:
Table 'rlz.sys_hospital' doesn't exist
原因:
sys_hospital 表在数据库初始化时未创建
二、解决方案
-----------
✓ 已成功创建 sys_hospital 表
表结构:
- id (bigint, 主键, 自增)
- hospitalname (varchar(200), 医院名称)
- hospitalshortname (varchar(100), 医院简称)
- hospitalcode (varchar(50), 医院编码)
- email (varchar(100), 医院邮箱)
- phonenumber (varchar(20), 联系电话)
- province (varchar(100), 省)
- provincecode (varchar(50), 省编码)
- city (varchar(100), 市)
- citycode (varchar(50), 市编码)
- area (varchar(100), 区/县)
- areacode (varchar(50), 区/县编码)
- address (varchar(500), 医院地址)
- delstate (char(1), 删除标记)
- create_by (varchar(64), 创建者)
- create_time (datetime, 创建时间)
- update_by (varchar(64), 更新者)
- update_time (datetime, 更新时间)
- remark (varchar(500), 备注)
三、相关文件
-----------
- sql/create_sys_hospital.sql - SQL创建脚本
- sql/create_sys_hospital.py - Python创建脚本已执行
四、验证
-------
✓ 表已成功创建
✓ 表结构正确
✓ 可以正常使用
五、下一步
---------
1. 测试医院列表接口
- GET /system/hospital/list
- 应该不再出现表不存在的错误
2. 如果需要,可以添加初始医院数据
========================================