From 36af5f05861c1071f1923bd41223356bf63d8554 Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Tue, 30 Jan 2024 08:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\260\350\277\220\350\220\245\347\263\273\347\273\237.py" | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git "a/air_case/cmdc_order_list/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.py" "b/air_case/cmdc_order_list/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.py" index 81ae2611..02d6ef46 100644 --- "a/air_case/cmdc_order_list/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.py" +++ "b/air_case/cmdc_order_list/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250_\345\220\216\345\217\260\350\277\220\350\220\245\347\263\273\347\273\237.py" @@ -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) -- GitLab