Commit 69b8948b authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent bfab596f
...@@ -60,7 +60,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") ...@@ -60,7 +60,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 查询数据库中审核后商品数量 # 查询数据库中审核后商品数量
sql = "SELECT count(t.demandSkuId) FROM `cmdc-order`.tc_demand_sku_org t WHERE demandCode = {}".format(demandCode) sql = "SELECT count(t.demandSkuId) FROM `cmdc-order`.tc_demand_sku_org t WHERE demandCode = {}".format(demandCode)
total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0] total = (mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0] if mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql) else 0)
# 将接口响应时间添加至result # 将接口响应时间添加至result
result["api_time"] = api_time result["api_time"] = api_time
......
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