diff --git "a/air_case/cmdc_32st/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_32st/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.py" index 09c292ff15d625e4adad58e0c9baba81bc3a5cbd..a9dd4515354ca4730b7e9348496c8d3cf7698da1 100644 --- "a/air_case/cmdc_32st/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_32st/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -42,16 +42,16 @@ num = 1 # print(productCode) # 获取文件 BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) -file_path = BASE_DIR + "/data/cmdc_files/超发配置导入模板1.xlsx" +file_path = BASE_DIR + "/data/cmdc_files/超发配置导入模板21.xlsx" -# 将商品信息写入文件中 -excel = HandleExcel(file_path, "Sheet1") - -excel.write_data(row=2, column=1, value=productCode) -excel.write_data(row=2, column=2, value=productName) -excel.write_data(row=2, column=3, value=specifications) -excel.write_data(row=2, column=4, value=num) -excel.write_data(row=2, column=5, value=num) +# # 将商品信息写入文件中 +# excel = HandleExcel(file_path, "Sheet1") +# +# excel.write_data(row=2, column=1, value=productCode) +# excel.write_data(row=2, column=2, value=productName) +# excel.write_data(row=2, column=3, value=specifications) +# excel.write_data(row=2, column=4, value=num) +# excel.write_data(row=2, column=5, value=num) # 第三步进行超发配置导入操作 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10") @@ -80,9 +80,9 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db_be") # 查询数据库超发配置数量 sql = "SELECT t.wholeQuantity FROM `cmdc-order`.tc_supernova t " \ - "WHERE companyCode = 00102 and productCode = {}".format(productCode) + "WHERE companyCode = 00102 and materialCode = '507677'" total = int(mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]) -print(sql) + result = {"wholeQuantity": total} # 将接口响应时间添加至result diff --git "a/data/cmdc_files/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\346\250\241\346\235\27721.xlsx" "b/data/cmdc_files/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\346\250\241\346\235\27721.xlsx" new file mode 100644 index 0000000000000000000000000000000000000000..a43ddd9753fb1344daef18df5a8c03bf20ba48a9 Binary files /dev/null and "b/data/cmdc_files/\350\266\205\345\217\221\351\205\215\347\275\256\345\257\274\345\205\245\346\250\241\346\235\27721.xlsx" differ