You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
688 B

# -*- coding: utf-8 -*-
"""票 05:F14 前置态精确复位(B2→2 供 release;APL→1 公海供 assign)。"""
import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
import pymysql
conn = pymysql.connect(host='8.129.84.155', port=3306, user='root', password='Itc@123456',
database='crm', charset='utf8mb4', autocommit=True)
cur = conn.cursor()
cur.execute("UPDATE opportunity SET opp_status=2 WHERE id='748556132468916224'") # B2 报告厅音视频
print('B2 -> 2', cur.rowcount)
cur.execute("UPDATE opportunity SET opp_status=1 WHERE id='748556129620983808'") # APL 展厅多媒体
print('APL -> 1', cur.rowcount)
conn.close()