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
+26
View File
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
import io, sys, pymysql
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
conn = pymysql.connect(host='192.168.1.161', user='devgps', password='dev@2021GPS',
database='zentao_dev_2026', charset='utf8mb4')
cur = conn.cursor()
def q(sql):
cur.execute(sql); return cur.fetchall()
print("-- zt_user 是否有 realname --")
cur.execute("SHOW COLUMNS FROM zt_user")
cols = [r[0] for r in cur.fetchall()]
print([c for c in cols if 'name' in c.lower() or 'product' in c.lower() or 'type' in c.lower() or 'role' in c.lower()])
print()
for r in q("SELECT account, realname, user_type, product_ids FROM zt_user WHERE account IN ('sunying','zhangfubin','sunqingfang','luoyulu','zhouxueli')"):
print(r)
print("\n-- 孙颖 6月测试需求范围(assignedTo=test 任务 或 expand.test_person 指定)当月上线需求 --")
rows = q("""
SELECT DISTINCT s.id, s.product, s.assignedTo, e.test_person
FROM zt_story s
LEFT JOIN zt_story_expand e ON e.story_id=s.id
WHERE s.releaseddate>='2026-06-01' AND s.releaseddate<'2026-07-01' AND s.deleted='0'
AND (s.assignedTo='sunying' OR e.test_person LIKE '%孙颖%')
""")
print("孙颖 6月上线测试需求:", len(rows))
for r in rows[:30]: print(r)