feat: 根目录文档、脚本、gitignore

This commit is contained in:
2026-10-08 16:15:33 +08:00
commit e98660ce4e
284 changed files with 26838 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
import io, sys, pymysql
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
for db in ['zentao', 'zentao_prd', 'zentao_dev_2026']:
try:
conn = pymysql.connect(host='192.168.1.161', user='devgps', password='dev@2021GPS', database=db, charset='utf8mb4')
cur = conn.cursor()
cur.execute("SELECT COUNT(*) FROM zt_story WHERE deleted='0' AND releaseddate>='2026-06-01' AND releaseddate<'2026-07-01'")
rel = cur.fetchone()[0]
cur.execute("SELECT COUNT(*) FROM zt_task WHERE deleted='0' AND status='done' AND finishedDate>='2026-06-01' AND finishedDate<'2026-07-01'")
done = cur.fetchone()[0]
cur.execute("SELECT COUNT(*) FROM zt_bug WHERE deleted='0' AND openeddate>='2026-06-01' AND openeddate<'2026-07-01'")
bugs = cur.fetchone()[0]
print(f"{db}: 6月上线需求={rel} 6月done任务={done} 6月Bug={bugs}")
conn.close()
except Exception as e:
print(db, 'ERR', e)