Commit 8a75bf92 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 5d1069b7
......@@ -29,7 +29,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 查询数据库客户信息
sql = "SELECT t.userName FROM `cmdc-user`.cmdc_user t " \
"WHERE companyId != 7 and userType = 2 and disableSign = 0 and deleteSign = 0 and platformStatus = 1"
"WHERE companyId != 7 and userType = 2 and disableSign = 0 and deleteSign = 0 and platformStatus = 1 and status = 3"
# 生成随机数
user_random = random.randint(0, len(mysql_handle.selectSql(host, port, user, pwd, "cmdc-user", sql)) - 1)
......
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