Commit 0be92c5d authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent fd962811
......@@ -47,8 +47,8 @@ mysql_handle = mySql()
host, port, user, pwd = mysql_handle.getConf(db="cmdc_db_be")
# 查询数据库中客户返利信息
sql = "SELECT count(t.rebateId) FROM `cmdc-order`.tc_rebate t " \
"WHERE deleteSign = 0 and auditStatus = 102 and status = 101 and rebateId in " \
sql = "SELECT count(1) FROM `cmdc-order`.tc_rebate t " \
"WHERE deleteSign = 0 and auditStatus = 102 and rebateId in " \
"(SELECT t.rebateId FROM `cmdc-order`.tc_rebate_user t WHERE customerCode = 1022777 and deleteSign = 0)"
total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]
......
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