Commit 3302db10 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 3085d0d1
......@@ -16,8 +16,8 @@ module = "cmdc_rebate"
# 第一步登录后台运营平台获取cmdc_access_token
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username1")
password = commonFuc().get_business_data(module, "password1")
username = commonFuc().get_business_data(module, "username2")
password = commonFuc().get_business_data(module, "password2")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
......@@ -53,7 +53,8 @@ mysql_handle = mySql()
host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 数据库查询待审核返利规则数量
sql = "SELECT t.rebateId FROM `cmdc-order`.tc_rebate t WHERE deleteSign = 0 and isAudit = 1 and auditLevel =2"
sql = "SELECT t.rebateId FROM `cmdc-order`.tc_rebate t " \
"WHERE deleteSign = 0 and isAudit = 1 and auditLevel =2 and filialeCode = 00102"
result = {"total": len(mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql))}
result["api_time"] = api_time
# print(result)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment