feat: 根目录文档、脚本、gitignore
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
# -*- 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()
|
||||
cur.execute("SELECT id, account, INSTR(scope_json,'6.04'), INSTR(scope_json,'productDefectRate') FROM zt_month_score WHERE date_str='2026-06'")
|
||||
rows = cur.fetchall()
|
||||
print(f"2026-06 快照 {len(rows)} 条:")
|
||||
for r in rows: print(f" id={r[0]} account={r[1]} 含6.04={'是' if r[2] else '否'} 含productDefectRate={'是' if r[3] else '否'}")
|
||||
Reference in New Issue
Block a user