feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# -*- 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()
|
||||
|
||||
prods = [r[0] for r in q("SELECT id FROM zt_product WHERE program=139")]
|
||||
prod_in = ','.join(map(str, prods))
|
||||
stories = q(f"""SELECT id, product, assignedTo FROM zt_story
|
||||
WHERE product IN ({prod_in}) AND releaseddate>='2026-06-01' AND releaseddate<'2026-07-01' AND deleted='0'""")
|
||||
print(f"139 车服 6月上线需求 {len(stories)} 个")
|
||||
sids = ','.join(str(s[0]) for s in stories) or '0'
|
||||
|
||||
bugs = q(f"""SELECT id, severity, openedby, openeddate, LEFT(title,30) FROM zt_bug
|
||||
WHERE bug_type='prod' AND story IN ({sids}) AND deleted='0'""")
|
||||
print(f"关联 prod Bug {len(bugs)} 个:")
|
||||
for b in bugs: print(b)
|
||||
|
||||
own = q(f"""SELECT id, bug_type, severity FROM zt_bug
|
||||
WHERE openedby='weidongxia' AND bug_type IN ('releaseBug','prod') AND deleted='0'
|
||||
AND openeddate>='2026-06-01' AND openeddate<'2026-07-01'""")
|
||||
print(f"\n魏冬霞本人 6月提的线上 Bug {len(own)} 个:", own)
|
||||
Reference in New Issue
Block a user