修复马山门诊数据导出问题并完善部署脚本
主要修复: 1. 修复export_data.py中硬编码的MySQL连接配置 2. 移除基于病历号前缀的诊所分配逻辑,改为基于数据库表关系 3. 实现患者去重统计,基于最新回访记录计算状态 4. 添加cryptography依赖解决MySQL 8.0认证问题 新增功能: 1. 完整的GitLab CI/CD部署脚本 2. 数据库迁移和完整性检查脚本 3. 自动化部署验证脚本 4. 环境变量配置说明文档 技术改进: - 患者-诊所关系基于patients.clinic_name字段 - Excel导出统计基于唯一患者而非记录数 - 支持环境变量配置数据库连接 - 完整的Docker部署支持
Showing
add_mashan_callbacks.py
0 → 100644
add_test_callbacks.py
0 → 100644
analyze_json_distribution.py
0 → 100644
check_all_data.py
0 → 100644
check_correct_excel.py
0 → 100644
check_docker_db.py
0 → 100644
check_excel_data.py
0 → 100644
check_excel_export.py
0 → 100644
check_final_excel.py
0 → 100644
check_fixed_excel.py
0 → 100644
check_latest_excel.py
0 → 100644
check_mashan_data.py
0 → 100644
check_new_summary.py
0 → 100644
check_unknown_clinic.py
0 → 100644
cleanup_test_data.py
0 → 100644
compare_data.py
0 → 100644
debug_excel_structure.py
0 → 100644
deploy_scripts/deploy.sh
0 → 100644
deploy_scripts/environment_variables.md
0 → 100644
deploy_scripts/migrate_database.sql
0 → 100644
deploy_scripts/verify_deployment.py
0 → 100644
This diff is collapsed.
Click to expand it.
find_patient.py
0 → 100644
fix_mashan_patients.py
0 → 100644
fix_patient_distribution.py
0 → 100644
production_backup_guide.md
0 → 100644
rebuild_patients_from_json.py
0 → 100644
... | ... | @@ -4,6 +4,7 @@ Flask-CORS==4.0.0 |
# 数据库 | ||
PyMySQL==1.1.0 | ||
cryptography==41.0.7 | ||
# 数据处理 | ||
pandas==2.1.4 | ||
... | ... |
start_docker_containers.py
0 → 100644
start_docker_mysql.bat
0 → 100644
test_docker_export.py
0 → 100644
test_export_simple.py
0 → 100644
诊所患者json/学前街门诊.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
项目开发对话记录.md
0 → 100644
Please
register
or
sign in
to comment