Files
hospital-front/pac/conf-example/app-qingyang.yml
T
lianlonggangandClaude 535162e63a feat: Kotlin+Solon 重构医院前置机(业务+被控端+Agent+升级流程)
主程序(com.hospital.front):
- Kotlin 2.0.21 + Solon 3.10.7 + MyBatis-Plus + HikariCP + Logback
- HospitalAdapter 策略模式:5 家医院(xinglongyuan/qingyang/ningxia/yanan/jinghe)+ dev Mock
- 三方言 Mapper:bsm(Oracle)/ nx / ya(SqlServer),存储过程参数原样迁移
- 20 个业务接口(/order/*)+ 11 个被控端接口(/api/admin/*,Token 鉴权+脱敏+防穿越)
- 全局异常处理、Result 统一响应、业务开关热更新

Agent(com.hospital.agent,独立进程,单 jar 双 main):
- WebSocket 主动出站连 B 端(指数退避重连),心跳转发主程序健康
- ProcessGuard 看门狗:3 次探测失败自动拉起主程序
- UpgradeCommand:下载→SHA256 校验→备份→替换→拉起→健康检查→失败自动回滚
- 命令分发:PING/日志/配置/重启等 10 类命令

部署(pac/):
- Windows Server 脚本(start.bat/agent.bat/WinSW 服务),纯 ASCII 注释防 GBK 错乱
- 5 家医院配置模板 + agent.properties

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-21 12:35:05 +08:00

33 lines
943 B
YAML
Raw 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.
# ====================================
# 庆阳医院(先与 jinghe 一致,正式环境再调整) 配置
# 文件路径:D:\hospital-front\conf\app-qingyang.yml
# 启动:set HOSPITAL=qingyang && bin\start.bat start
# ====================================
hospital:
active: qingyang
# 医院业务 ID(HIS 系统分配,正式环境核对)
hospital.id: CHANGE_ME_HOSPITAL_ID
# 业务开关
hm:
type: bsm
ver: V2
allsecondFlag: false
occFlag: false
# 数据源(HikariCPSolon 默认连接池;db1! 中 ! 表示默认数据源)
solon.dataSources:
db1!:
class: "com.zaxxer.hikari.HikariDataSource"
jdbcUrl: jdbc:oracle:thin:@CHANGE_ME:1521/ORCL
username: CHANGE_ME
password: ${DB_PWD:CHANGE_ME}
minimumIdle: 2
maximumPoolSize: 10
connectionTimeout: 30000
# 驱动说明:Oracle 由 jdbcUrl 自动识别;SqlServer 需加 driverClassName
# Oracle 驱动按 jdbcUrl 自动识别