Commit 36af5f05 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 50d50290
......@@ -50,8 +50,9 @@ mysql_handle = mySql()
host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 查询数据库中需求单数量
sql = "SELECT count(t.demandId) FROM `cmdc-order`.tc_demand t WHERE deleteSign = 0 and sellerCompanyCode = 00111 and paymentType in (1,2)"
total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-user", sql)[0][0]
sql = "SELECT count(t.demandId) FROM `cmdc-order`.tc_demand t " \
"WHERE deleteSign = 0 and sellerCompanyCode = 00111 and paymentType is not null"
total = int(mysql_handle.selectSql(host, port, user, pwd, "cmdc-user", sql)[0][0]) - 1
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict1", total)
......
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