fix: 全量clean编译修复残留class文件问题

This commit is contained in:
2026-06-21 04:58:37 +08:00
parent 94ba3022c8
commit c37f30b989
69 changed files with 169824 additions and 177 deletions

26
import_data.py Normal file
View File

@@ -0,0 +1,26 @@
import psycopg2, sys
sys.stdout.reconfigure(encoding='utf-8')
conn = psycopg2.connect(host='192.168.110.252', port=15432, dbname='postgresql', user='postgresql', password='Jchl1528', options='-c search_path=healthlink_his')
cur = conn.cursor()
# Execute knowledge base SQL
with open(r'D:\his\healthlink-his-server\insert_knowledge_base.sql', 'r', encoding='utf-8') as f:
sql = f.read()
cur.execute(sql)
conn.commit()
cur.execute('SELECT COUNT(*) FROM clinical_knowledge_base')
print('clinical_knowledge_base rows:', cur.fetchone()[0])
# Execute preop discussion SQL
with open(r'D:\his\healthlink-his-server\insert_preop_discussion.sql', 'r', encoding='utf-8') as f:
sql = f.read()
cur.execute(sql)
conn.commit()
cur.execute('SELECT COUNT(*) FROM sys_preop_discussion')
print('sys_preop_discussion rows:', cur.fetchone()[0])
cur.execute('SELECT COUNT(*) FROM sys_preop_participant')
print('sys_preop_participant rows:', cur.fetchone()[0])
cur.close()
conn.close()
print('Done!')