diff --git "a/air_case/cmdc-qos/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.air/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.py" "b/air_case/cmdc-qos/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.air/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.py" index a4856eb59844c17796439576d93d905daf7aa389..788ac826b73fbca2bc4b1c26e1b3d0caa8ba0e24 100644 --- "a/air_case/cmdc-qos/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.air/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.py" +++ "b/air_case/cmdc-qos/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.air/\345\277\253\351\200\237\344\270\213\345\215\225\346\235\203\351\231\220_\345\220\246.py" @@ -19,25 +19,22 @@ username = commonFuc().get_business_data(module, "username") password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() - headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) - # 第二步查询站点对应的companyId url1 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") - request_body1 = commonFuc().get_business_data(module, "payload1") -result1 = requests.post(url1, json=request_body1, headers=headers) -result1 = json.loads(result1.text) - """ + 场景:站点不拥有快速下单权限入口 用例名称:快速下单权限判定接口-站点满足条件显示快速下单入口 输入:companyId 输出:"quickOrderSign": 0 """ - +# 发送请求 +result1 = requests.post(url1, json=request_body1, headers=headers) +result1 = json.loads(result1.text) # 获取站点对应的快速下单标识字段quickOrderSign result1 = result1["data"] diff --git "a/air_case/cmdc_buyercart_handle/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.air/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.py" "b/air_case/cmdc_buyercart_handle/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.air/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.py" index a231aa445bbb21be6fcad3b2fc404d24f840ead1..9d6a68f6ecf03e43396cbe96480e936aa8296f6f 100644 --- "a/air_case/cmdc_buyercart_handle/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.air/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_buyercart_handle/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.air/\350\264\255\347\211\251\350\275\246\346\224\257\346\214\201\350\267\250\347\253\231\345\225\206\345\223\201\344\270\213\345\215\225\351\252\214\350\257\201.py" @@ -73,10 +73,17 @@ request_body = commonFuc().get_business_data(module, "payload30", buyercart_id_1 # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) -if result["data"]: - # # 获取预期结果 - check_dict = commonFuc().get_business_data(module, "checkDict2") - # # 断言实际结果中是否包含预期结果的内容 - commonFuc().check_result(check_dict, result) +# print(result) +if result["success"]: + if result["data"]: + # # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict2") + # # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) + else: + print("下单失败") else: - print("下单失败") + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict2_1") + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" index 3686a1375cc5d76b1661a3163b28f96efc176b32..29add6badc547a2fa6f24e40752f9d16d05ef57c 100644 --- "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" +++ "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" @@ -13,7 +13,6 @@ import json module = "cmdc_demand_create_pc" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") # print(url) # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") @@ -21,6 +20,9 @@ password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) + +# 进行需求单创建操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") request_body = commonFuc().get_business_data(module, "payload") """ 场景:通过快速下单入口提交创建需求单 @@ -31,8 +33,15 @@ request_body = commonFuc().get_business_data(module, "payload") result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) # print(result) -# 获取预期结果 -check_dict = commonFuc().get_business_data(module, "checkDict") -print(check_dict) -# 断言实际结果中是否包含预期结果的内容 -commonFuc().check_result(check_dict, result) +if result["success"]: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict") + print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict_1") + print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) \ No newline at end of file diff --git "a/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..db9dd29691e35b6dfb2fe21a4d59c67228af7513 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,52 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc上传支付凭证功能验证,2289,2289-33,sit,bs +涉及到接口:多采商城支付页面附件上传接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json +import os + + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 获取文件地址 +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/test_file.jpg" + +# 第二步上传附件 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url34") + +# 获取文件 +file = open(file_path, "rb") +files = {"file": file} + +""" + 场景: 上传支付凭证功能验证 + 用例名称:上传支付凭证功能验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.post(url, files=files, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict34") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" "b/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" new file mode 100644 index 0000000000000000000000000000000000000000..4fe79592f42b279f0d78e2551d55dada67d933ba --- /dev/null +++ "b/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" @@ -0,0 +1,58 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品下架拦截验证_订单修改,2289,2289-37,sit,bs +涉及到接口:多采商城需求单修改接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 进行商品下架操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.status = 102 WHERE t.productId = 314" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 第二步需求单编辑修改操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url39") +request_body = commonFuc().get_business_data(module, "payload39") + +""" + 场景: 验证需求单编辑提交时,所含商品下架,是否被拦截成功 + 用例名称:商品下架拦截验证_订单修改 + 输出:{"errMessage": "红外测温仪商品已被下架,请返回重新提交。"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取message +result = {"errMessage": result["data"][0]["errMessage"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict39") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + +# 进行商品上架架操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.status = 101 WHERE t.productId = 314" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) \ No newline at end of file diff --git "a/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..be30623e21a3aaf0c23af3a68287a973bbf1959e --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,61 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc提交订单支付证明功能验证,2289,2289-34,sit,bs +涉及到接口:多采商城提交订单支付证明接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json +import os + + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 获取文件地址 +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/test_file.jpg" + +# 第二步上传附件 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url34") + +# 获取文件 +file = open(file_path, "rb") +files = {"file": file} +# 发送请求 +result = requests.post(url, files=files, headers=headers) +result = json.loads(result.content) + +# 获取上传附件后地址 +file_aliyun = result["data"] + +# 第三步提交支付证明信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url35") +request_body = commonFuc().get_business_data(module, "payload35", file_aliyun) + +""" + 场景: 提交订单支付证明功能验证 + 用例名称:提交订单支付证明功能验证 + 输出:{"success":true,"code":"200","message":"OK","data":1} +""" + +# 发送请求 +result = result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict35") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" new file mode 100644 index 0000000000000000000000000000000000000000..5e0dec503965264341ce21258c4582aa68c5dd33 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -0,0 +1,46 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_审核变动订单_需求单列表,2289,2289-3,sit,bs +涉及到接口:多采商城需求单列表获取接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步在需求单列表进行审核变动订单过滤查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3") +request_body = commonFuc().get_business_data(module, "payload3") + +""" + + 场景: 验证需求单列表查询条件-审核变动订单,正确性 + 用例名称:查询条件验证_审核变动订单_需求单列表 + 输出:{"changeSign":1} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中是否审核变动标识 +result = {"changeSign": result["data"]["list"][0]["changeSign"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict3") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" new file mode 100644 index 0000000000000000000000000000000000000000..db1d4fdcb0d8d87a3ab7b4233a66a0c08abc29d8 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -0,0 +1,47 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_状态_需求单列表,2289,2289-4,sit,bs +涉及到接口:多采商城需求单列表获取接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步在需求单列表进行状态过滤查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url4") +request_body = commonFuc().get_business_data(module, "payload4") + +""" + + 场景: 验证需求单列表查询条件-状态,正确性 + 用例名称:查询条件验证_状态_需求单列表 + 输出:{"orderStatus":102} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中是否审核变动标识 +result = {"orderStatus": result["data"]["list"][0]["orderStatus"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict4") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" new file mode 100644 index 0000000000000000000000000000000000000000..f92bc9f40d854406425d2e33ef768e9d89f9a14a --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -0,0 +1,77 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_需求单列表,2289,2289-2,sit,bs +涉及到接口:多采商城需求单列表获取接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import datetime +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + + +# 此函数用于当x为none时,进行空字符串替换 +def func(x): + if x is None: + x = "" + return x + else: + return x + + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +seller_company_code = result["data"]["list"][random_demand]["sellerCompanyCode"] +startTime = result["data"]["list"][random_demand]["createTime"] +endTime = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") +product_code = func(result["data"]["list"][random_demand]["productCode"]) +product_info_value = func(result["data"]["list"][random_demand]["productName"]) +order_num = result["data"]["list"][random_demand]["demandCode"] +payment_type = result["data"]["list"][random_demand]["paymentType"] +preference_type = result["data"]["list"][random_demand]["preferenceType"] + +# 第三步在需求单列表进行需求单查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2") +request_body = commonFuc().get_business_data(module, "payload2", seller_company_code, startTime, endTime, product_code, + product_info_value, order_num, payment_type, preference_type) +# print(request_body) +""" + 场景: 验证需求单列表查询条件正确性 + 用例名称:查询条件验证_需求单列表 + 输出:{"orderNum":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中订单编号 +result = {"orderNum": result["data"]["list"][0]["demandCode"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict2", order_num) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..7a935bc95bafa6c15892066e93ff68917b760cca --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -0,0 +1,55 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询线下支付账号信息验证,2289,2289-32,sit,bs +涉及到接口:多采商城查询线下支付账号信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步查询线下支付账号信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url33") +request_body = commonFuc().get_business_data(module, "payload33") +# print(request_body) +""" + 场景: 查询线下支付账号信息验证 + 用例名称:查询线下支付账号信息验证 + 输出:{"total":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取账号数量 +result = {"total": result["data"]["total"]} +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 查询数据库中对应公司对应的账号信息 +sql = "SELECT t.accountId FROM `cmdc-cms`.cms_account t WHERE companyId = 7" +total = len(mysql_handle.selectSql(host, port, user, pwd, "cmdc-cms", sql)) + +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict33", total) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..7ef33bae3eb89b632229432f2ea647d10642a31a --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -0,0 +1,44 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc根据用户查询公司信息验证,2289,2289-29,sit,bs +涉及到接口:多采商城根据用户查询公司信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步查询公司信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url30") +request_body = commonFuc().get_business_data(module, "payload30") +# print(request_body) +""" + + 场景: 根据用户查询公司信息验证 + 用例名称:根据用户查询公司信息验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict30") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..a42b794f6f3a8a9beb2b2ed8d3780f1fefa50a53 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" @@ -0,0 +1,58 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc根据需求id获取公司id验证,2289,2289-30,sit,bs +涉及到接口:多采商城验证根据需求id获取公司id接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "36064" + + +# 第三步获取公司id +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url32") +request_body = commonFuc().get_business_data(module, "payload32", demand_id) +# print(request_body) +""" + 场景: 根据需求id获取公司id验证 + 用例名称:根据需求id获取公司id验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) + +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict32") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..a090860e38f536cbdd5ab21e712fddfa62e5a247 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,46 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc模糊查询生产厂家列表接口验证,2289,2289-7,sit,bs +涉及到接口:多采商城需求单列表生产厂家模糊查询接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 设置需要查询的生产厂家 +manufacturer = "A" +# 第二步进行生产厂家模糊查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7") +request_body = commonFuc().get_business_data(module, "payload7", manufacturer) + +""" + 场景: 验证获取需求单列表,生产厂家模糊查询接口连通性 + 用例名称:模糊查询生产厂家列表接口验证 + 输出:{"data":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +print(result) +# 获取查询结果中厂家信息 +result = {"data": result["data"][0][0]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict7", manufacturer) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..29aee8bb8aa786f34d8d76870420d854fbb88a27 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,33 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取公司站点接口验证,2289,2289-5,sit,bs +涉及到接口:多采商城需求单列表公司站点信息获取接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_demand_mall" + +# 获取站点信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url5") + +""" + 场景: 验证多采商城需求单管理列表,公司站点信息获取接口连通性 + 用例名称:获取公司站点接口验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict5") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..7ffe3b98c488214f92b9b14699f808d9546e24ab --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -0,0 +1,58 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取原始需求详情验证,2289,2289-11,sit,bs +涉及到接口:多采商城获取原始需求详情接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] + +# 第三步在需求单列表进行需求单查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10") +request_body = commonFuc().get_business_data(module, "payload10", demand_code) +# print(request_body) +""" + 场景: 获取原始需求详情验证 + 用例名称:获取原始需求详情验证 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取原始需求单中demandCode +result = {"demandCode": result["data"]["demandSkuList"]["list"][0]["demandCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict10", demand_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..8b2c2058dc3faa1416606eaed7ef698da5241970 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -0,0 +1,55 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取审核人员列表验证,2289,2289-10,sit,bs +涉及到接口:多采商城获取审核人员列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] + +# 第三步在需求单列表进行需求单查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url9") +request_body = commonFuc().get_business_data(module, "payload9", demand_code) +# print(request_body) +""" + 场景: 获取审核人员列表验证 + 用例名称:获取审核人员列表验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict9") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..722a917f224f6b157b25452459e8b1b19f96cfaf --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" @@ -0,0 +1,60 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取支付信息验证_支付页面,2289,2289-31,sit,bs +涉及到接口:多采商城支付页面获取支付信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload27_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +code = result["data"]["list"][random_demand]["demandParentCode"] +customer_charge = result["data"]["list"][random_demand]["customerCharge"] + +# 第三步获取支付页面订单支付金额 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url28") +request_body = commonFuc().get_business_data(module, "payload28", code) +# print(request_body) +""" + 场景: 获取支付信息验证_支付页面 + 用例名称:获取支付信息验证_支付页面 + 输出:{"customerCharge":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) +# 获取需求单对应的客户折扣 +result = {"customerCharge": result["data"]["customerCharge"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict28", customer_charge) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" new file mode 100644 index 0000000000000000000000000000000000000000..f9fdb5b006ec9b93ddee0bd39f1dcac9e4253dc0 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" @@ -0,0 +1,34 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取站点信息验证_需求单,2289,2289-12,sit,bs +涉及到接口:多采商城需求单列表站点信息获取接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_demand_mall" + +# 获取站点信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url11") +request_body = commonFuc().get_business_data(module, "payload11") + +""" + 场景: 获取站点信息验证_需求单 + 用例名称:获取站点信息验证_需求单 + 输出:{"companyId":6} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# 获取站点信息中公司id +result = {"companyId": result["data"]["companyId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict11") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" new file mode 100644 index 0000000000000000000000000000000000000000..c0fad1a2fdf9a1041845c84c6f43f5e16474cea9 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取草稿订单详情,2289,2289-38,sit,bs +涉及到接口:多采商城获取草稿订单详情接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload38_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +version = result["data"]["list"][random_demand]["version"] +# print(version) +# 第三步获取草稿订单详情 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url38") +request_body = commonFuc().get_business_data(module, "payload38", version) +# print(request_body) +""" + 场景: 获取草稿订单详情 + 用例名称:获取草稿订单详情 + 输出:{"id":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取草稿订单详情中id +result = {"id": result["data"]["id"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict38", version) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..49065721a6802c30ab625a9886e146f94820fe98 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -0,0 +1,68 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单变动明细列表验证,2289,2289-19,sit,bs +涉及到接口:多采商城获取订单变动明细列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +# demand_code = "17020165859551447" + + +# 第三步获取需求单对应的订单变动明细列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url16") +request_body = commonFuc().get_business_data(module, "payload16", demand_code) +# print(request_body) +""" + 场景: 获取订单变动明细列表验证 + 用例名称:获取订单变动明细列表验证 + 输出:{"demandSubCode":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) +if result["data"]: + # 获取订单明细列表中demandCode + result = {"demandCode": result["data"][0]["demandCode"]} + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict16", demand_code) + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict16_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) + + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..bd854631a402f8c067fe3248590c27da5bf59937 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" @@ -0,0 +1,60 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单变动明细金额验证,2289,2289-20,sit,bs +涉及到接口:多采商城获取订单变动明细列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +demand_code = "17020165859551447" + + +# 第三步获取需求单对应的订单变动明细列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url18") +request_body = commonFuc().get_business_data(module, "payload18", demand_code) +# print(request_body) +""" + 场景: 获取订单变动明细金额验证 + 用例名称:获取订单变动明细金额验证 + 输出:{"isChange":True} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) +# 获取订单明细列表中isChange +result = {"isChange": result["data"]["isChange"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict18") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..34a758d8e5da42fe95f8b76952ce373268dc23e9 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" @@ -0,0 +1,72 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单变动明细验证,2289,2289-18,sit,bs +涉及到接口:多采商城获取订单变动明细接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +demand_code = "17020165859551447" + + +# 第三步获取需求单对应的订单变动明细列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url16") +request_body = commonFuc().get_business_data(module, "payload16", demand_code) +# print(request_body) +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) + +# 获取明细id +demand_change_id = result["data"][0]["demandChangeId"] + +# 第四步查看明细列表中订单变动明细详情 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url17") +request_body = commonFuc().get_business_data(module, "payload17", demand_change_id) + +""" + 场景: 获取订单变动明细验证 + 用例名称:获取订单变动明细验证 + 输出:{"demandChangeId":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取明细demandChangeId +result = {"demandChangeId": result["data"]["list"][0]["demandChangeId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict17", demand_change_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..c546b114472fd6b38d31a30f5e579ed599d5e81b --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单支付金额验证,2289,2289-28,sit,bs +涉及到接口:多采商城支付页面获取订单支付金额接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload27_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +code = result["data"]["list"][random_demand]["demandParentCode"] +customer_charge = result["data"]["list"][random_demand]["customerCharge"] + +# 第三步获取支付页面订单支付金额 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url28") +request_body = commonFuc().get_business_data(module, "payload28", code) +# print(request_body) +""" + 场景: 获取订单支付金额验证 + 用例名称:获取订单支付金额验证 + 输出:{"customerCharge":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取需求单对应的客户折扣 +result = {"customerCharge": result["data"]["customerCharge"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict28", customer_charge) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" new file mode 100644 index 0000000000000000000000000000000000000000..87daa22ca52da3a4851f5976d94ff39619c62ae1 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单数据验证_订单修改,2289,2289-22,sit,bs +涉及到接口:多采商城需求单编辑接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload20_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步获取需求单对应的子单详情 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") +request_body = commonFuc().get_business_data(module, "payload20", demand_id) +# print(request_body) +""" + 场景: 获取订单数据验证_订单修改 + 用例名称:获取订单数据验证_订单修改 + 输出:{"success":true,"code":"200","message":"查询成功"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict20") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..0364fa095d6ca1a238b1d81aa26f9b144e89232e --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,32 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单类型接口验证,2289,2289-6,sit,bs +涉及到接口:多采商城需求单列表订单类型获取接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_demand_mall" + +# 第二步获取站点信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url6") +request_body = commonFuc().get_business_data(module, "payload6") +""" + 场景: 验证多采商城需求单管理列表,获取订单类型接口连通性 + 用例名称:获取订单类型接口验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict6") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..a5a8ab862560fcedd09d266af100387fc67f6a1a --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" @@ -0,0 +1,60 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取订单销售合同配置验证,2289,2289-17,sit,bs +涉及到接口:多采商城获取订单销售合同接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步获取需求单对应的销售合同配置 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url15") +request_body = commonFuc().get_business_data(module, "payload15", demand_id) +# print(request_body) +""" + 场景: 获取订单销售合同配置验证 + 用例名称:获取订单销售合同配置验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict15") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..6f15740398f8d3fb96a33bbbab3697ce756daebf --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取需求列表明细_支付页面,2289,2289-27,sit,bs +涉及到接口:多采商城支付页面获取需求列表明细接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload27_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"] + +# 第三步获取支付页面需求单列表明细 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url27") +request_body = commonFuc().get_business_data(module, "payload27", demand_parent_code) +# print(request_body) +""" + 场景: 获取需求列表明细_支付页面 + 用例名称:获取需求列表明细_支付页面 + 输出:{"demandParentCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取需求单详情中demandParentCode +result = {"demandParentCode": result["data"]["list"][0]["demandParentCode"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict27", demand_parent_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..07becf65055cfcb670c1976a6ed90ed30494920f --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -0,0 +1,66 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取需求单子单列表验证,2289,2289-15,sit,bs +涉及到接口:多采商城获取需求单子单列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +# demand_code = "17022496982880461" +demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"] +# demand_parent_code = "17022496982880461" + +# 第三步获取需求单对应子单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url13") +request_body = commonFuc().get_business_data(module, "payload13", demand_code, demand_parent_code) +# print(request_body) +""" + 场景: 获取需求单子单列表验证 + 用例名称:获取需求单子单列表验证 + 输出:{"demandSubCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +if result["data"]["list"]: + result = {"demandSubCode": result["data"]["list"][0]["demandSubCode"]} + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict13", demand_parent_code) + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict13_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..716aaa8c50782b324868a6e6670c1b63f60fa55d --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -0,0 +1,65 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取需求单子单详情验证,2289,2289-16,sit,bs +涉及到接口:多采商城获取需求单子单详情接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步获取需求单对应的子单详情 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url14") +request_body = commonFuc().get_business_data(module, "payload14", demand_id) +# print(request_body) +""" + 场景: 获取需求单子单详情验证 + 用例名称:获取需求单子单详情验证 + 输出:{"success":true,"code":"200","message":"请求成功,展示操作流水"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) +if result["data"]: + result = {"demandId": result["data"][0]["demandId"]} + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict14", demand_id) + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict14_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..b10f44604e1d549fd42ce85c839ea11e64fc6760 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -0,0 +1,56 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取需求单操作记录信息验证,2289,2289-13,sit,bs +涉及到接口:多采商城获取需求单对应的操作记录接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"] + +# 第三步获取需求单对应的操作记录 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url12") +request_body = commonFuc().get_business_data(module, "payload12", demand_code, demand_parent_code) +# print(request_body) +""" + 场景: 获取需求单操作记录信息验证 + 用例名称:获取需求单操作记录信息验证 + 输出:{"success":true,"code":"200","message":"请求成功,展示操作流水"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict12") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..ef0b693a7e0143bb362dde24360ad53811a13444 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取需求单详情验证,2289,2289-9,sit,bs +涉及到接口:多采商城获取需求单详情接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"] +demand_code = result["data"]["list"][random_demand]["demandCode"] + +# 第三步在需求单列表进行需求单查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url8") +request_body = commonFuc().get_business_data(module, "payload8", demand_parent_code, demand_code) +# print(request_body) +""" + 场景: 验证是否可以正常获取到需求单详情 + 用例名称:获取需求单详情验证 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取需求单详情中订单编号 +result = {"demandCode": result["data"]["demandHead"]["demandCode"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict8", demand_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..779b0ff2e4023b2fab109253ba68aa652f914857 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,57 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc解除订单占用功能验证,2289,2289-24,sit,bs +涉及到接口:多采商城需求单解除订单占用接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步解除订单占用 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url24") +request_body = commonFuc().get_business_data(module, "payload24", demand_id) +# print(request_body) +""" + 场景: 解除订单占用功能验证 + 用例名称:解除订单占用功能验证 + 输出:{"success":true,"code":"200","message":"OK","data":"0"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict24") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..c12523de0bb605cc180fa69e26d009f6a9f6f3ae --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,43 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc订单修改功能验证,2289,2289-25,sit,bs +涉及到接口:多采商城需求单编辑接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步进行需求单编辑修改操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url25") +request_body = commonFuc().get_business_data(module, "payload25") +# print(request_body) +""" + 场景: 订单修改功能验证 + 用例名称:订单修改功能验证 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict25") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" new file mode 100644 index 0000000000000000000000000000000000000000..bffd36d8a91c71890260e9ff83fb93fdfef15387 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -0,0 +1,71 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc订单导出功能验证_需求单列表,2289,2289-8,sit,bs +涉及到接口:多采商城需求单列表订单导出接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.handle_excel import HandleExcel +import requests +import random +import json +import os + + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +order_num = result["data"]["list"][random_demand]["demandCode"] + +# 第三步需求单列表进行订单导出操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url21") +request_body = commonFuc().get_business_data(module, "payload21", order_num) +# print(request_body) +""" + 场景: 验证多采商城需求单列表订单导出功能 + 用例名称:订单导出功能验证_需求单列表 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +# result = json.loads(result.content) +# print(result) + +# 获取文件 +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/需求单管理列表.xlsx" + +# 获取到导出文件存入cmdc_files文件中 +with open(file_path, 'wb') as f: + f.write(result.content) + +# 获取文件中订单编号 +excel = HandleExcel(file_path, "Sheet1") +result = {"demandCode": excel.read_data()[0].get("订单编号")} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict21", order_num) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..a9af44b7ec301cb76ece06d4936ff00366cbc03f --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,42 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc需求单列表获取接口验证,2289,2289-1,sit,bs +涉及到接口:多采商城需求单列表获取接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步查询需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") + +""" + 场景: 验证获取需求单列表接口连通性 + 用例名称:需求单列表获取接口验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict1") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..a757421a2b5bbeb806dafa01d66a18f4182a5d55 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,63 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc需求单取消功能验证,2289,2289-14,sit,bs +涉及到接口:多采商城需求单取消接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 第二步进行需求单取消操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url23") +request_body = commonFuc().get_business_data(module, "payload23") +# print(request_body) +""" + 场景: 需求单取消功能验证 + 用例名称:需求单取消功能验证 + 输出:{"orderStatus":201} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +print(result) +if result["success"]: + # 查询需求单状态 + sql = "SELECT t.orderStatus FROM `cmdc-order`.tc_demand t WHERE t.demandId = 40213" + result = {"orderStatus": mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]} + # print(result) + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict23") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict23_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) + +# 进行需求单状态调整为待审核操作 +sql = "UPDATE `cmdc-order`.tc_demand t SET t.orderStatus = 102, t.auditStatus = 0 WHERE t.demandId = 40213" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-order", sql) \ No newline at end of file diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..539b90794783d1d1d6bfdafe09dc69de772711a4 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" @@ -0,0 +1,58 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc需求单商品返利明细获取验证,2289,2289-26,sit,bs +涉及到接口:多采商城获取需求单商品返利明细接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_code = result["data"]["list"][random_demand]["demandCode"] +# demand_code = "16974216158935068" + +# 第四步查看需求单中商品对应的返利明细 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url26") +request_body = commonFuc().get_business_data(module, "payload26", demand_code) + +""" + 场景: 需求单商品返利明细获取验证 + 用例名称:需求单商品返利明细获取验证 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取返利明细中demandCode +result = {"demandCode": result["data"][0]["demandCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict26", demand_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..88812b773822c207c9bd28cb89812649897cb9c3 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -0,0 +1,76 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc需求单销售合同下载功能验证,2289,2289-23,sit,bs +涉及到接口:多采商城需求单销售合同下载接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.handle_excel import HandleExcel +import requests +import random +import json +import os + + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload22_1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" +demand_code = result["data"]["list"][random_demand]["demandCode"] + + +# 第三步进行需求单销售合同下载 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url22") +request_body = commonFuc().get_business_data(module, "payload22", demand_id) +# print(request_body) +""" + 场景: 需求单销售合同下载功能验证 + 用例名称:需求单销售合同下载功能验证 + 输出:{"demandCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +# result = json.loads(result.content) +# print(result) + +# 获取文件 +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/销售合同导出.xlsx" + +# 获取到导出文件存入cmdc_files文件中 +with open(file_path, 'wb') as f: + f.write(result.content) + +# 获取销售合同文件中合同编号 +excel = HandleExcel(file_path, "Sheet1") +result = {"demandCode": excel.read_data()[0].get("医疗器械产品销售合同 ")[-17:]} +print(excel.read_data()[0].get("医疗器械产品销售合同 ")) +print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict22", demand_code) +print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" new file mode 100644 index 0000000000000000000000000000000000000000..7b8aee52539572169ce3abf30b0623323a0e56b7 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证订单占用功能,2289,2289-21,sit,bs +涉及到接口:多采商城验证订单是否被占用接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步判断需求单是否被占用 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url19") +request_body = commonFuc().get_business_data(module, "payload19", demand_id) +# print(request_body) +""" + 场景: 验证订单占用功能 + 用例名称:验证订单占用功能 + 输出:{"success":true,"code":"200","message":"请求成功,展示操作流水"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +print(result) + +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict19") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" new file mode 100644 index 0000000000000000000000000000000000000000..467fcf36685fd267328bab4d1c59f928820bcff2 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" @@ -0,0 +1,63 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证订单是否已支付,2289,2289-35,sit,bs +涉及到接口:多采商城获取订单支付状态接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_parent_code = result["data"]["list"][random_demand]["demandParentCode"] +proof_sign = result["data"]["list"][random_demand]["proofSign"] + +# 第三步在需求单列表进行需求单查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url36") +request_body = commonFuc().get_business_data(module, "payload36", demand_parent_code) +# print(request_body) +""" + 场景: 验证订单是否已支付 + 用例名称:验证订单是否已支付 + 输出:{"success":true,"code":"200","message":"OK","data":0} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +if proof_sign: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict36") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict36_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" new file mode 100644 index 0000000000000000000000000000000000000000..e9b49d231bcb99c5445791121f0ff0d9a24d37d5 --- /dev/null +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" @@ -0,0 +1,57 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证订单是否被占用,2289,2289-36,sit,bs +涉及到接口:多采商城验证订单是否被占用接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_demand_mall" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 生成随机数 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] +# demand_id = "40187" + + +# 第三步解除订单占用 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url37") +request_body = commonFuc().get_business_data(module, "payload37", demand_id) +# print(request_body) +""" + 场景: 验证订单是否被占用 + 用例名称:验证订单是否被占用 + 输出:{"success":true,"code":"200","message":"OK","data":"0"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict37") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_fresenius_group/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.air/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.py" "b/air_case/cmdc_fresenius_group/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.air/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.py" index df1477dddbece84acbd2f985b9121e5e58b6a82a..67f076ab57ff6b61e5ac661c3bcd61e1e0319b14 100644 --- "a/air_case/cmdc_fresenius_group/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.air/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.py" +++ "b/air_case/cmdc_fresenius_group/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.air/\345\245\227\345\214\205\346\233\264\346\226\260_\345\245\227\345\214\205\345\206\205\345\225\206\345\223\201\351\234\200\346\273\241\350\266\263\345\220\214\344\270\200\344\272\247\345\223\201\347\272\277.py" @@ -51,8 +51,16 @@ request_body = group_json # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) - -# 获取预期结果 -check_dict = commonFuc().get_business_data(module, "checkDict16") -# 断言实际结果中是否包含预期结果的内容 -commonFuc().check_result(check_dict, result) +# print(result) +if result["success"]: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict16_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict16") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" new file mode 100644 index 0000000000000000000000000000000000000000..98b680e98d9b0233d11cfe9b22311da78601c0ac --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" @@ -0,0 +1,54 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品jde停用拦截验证_下单,2288,2288-29,sit,bs +涉及到接口:多采商城提交订单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 进行商品jde状态调整为停用操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.jdeStatus = '0' WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 第二步进行提交订单 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url19") +request_body = commonFuc().get_business_data(module, "payload19") + +""" + 场景: 验证下单时,包含的商品jde状态停用时,是否拦截成功 + 用例名称:商品jde停用拦截验证_下单 + 输出:{"message": "商品证照校验错误"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +print(result) +# 获取message +result = {"message": result["message"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict19") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" new file mode 100644 index 0000000000000000000000000000000000000000..d42f06d0f41e86b4047f09d6ac284a19fc97f9ee --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201jde\345\201\234\347\224\250\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" @@ -0,0 +1,66 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品jde停用拦截验证_再来一单,2288,2288-30,sit,bs +涉及到接口:多采商城再来一单获取原订单信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 查询指定需求单信息 +order_num = "17018438457347575" + +# 第二步获取多采商城需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_demand_list") +request_body = commonFuc().get_business_data(module, "payload_demand_list", order_num) +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取需求单信息 +demand_id = result["data"]["list"][0]["demandId"] + +# 第三步进行再来一单操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") +request_body = commonFuc().get_business_data(module, "payload20", demand_id) + +""" + 场景: 验证使用再来一单功能时,原订单中商品jde已停用,是否进行拦截提醒 + 用例名称:商品jde停用拦截验证_再来一单 + 输出:{"success":false,"code":"ERROR","message":"当前订单无有效商品","data":null,"freshToken":null} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict20") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + +# 把商品对应的jde状态调整为启用状态操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.jdeStatus = 'P' WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.py" new file mode 100644 index 0000000000000000000000000000000000000000..a4d30188dee3a8b7f7fdd65ac391660a8ec9b9e3 --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_a.py" @@ -0,0 +1,54 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品下架拦截验证_下单,2288,2288-24,sit,bs +涉及到接口:多采商城提交订单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 进行商品下架操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.status = 102 WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 第二步进行提交订单 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url19") +request_body = commonFuc().get_business_data(module, "payload19") + +""" + 场景: 验证下单时,商品下架,是否进行拦截 + 用例名称:商品下架拦截验证 + 输出:{"message": "商品证照校验错误"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取message +result = {"message": result["message"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict19") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.py" new file mode 100644 index 0000000000000000000000000000000000000000..935c69e82028183a53027e4d2dee85396520dd9a --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_b.py" @@ -0,0 +1,66 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品下架拦截验证_再来一单,2288,2288-24,sit,bs +涉及到接口:多采商城再来一单获取原订单信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 查询指定需求单信息 +order_num = "17018438457347575" + +# 第二步获取多采商城需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_demand_list") +request_body = commonFuc().get_business_data(module, "payload_demand_list", order_num) +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取需求单信息 +demand_id = result["data"]["list"][0]["demandId"] + +# 第三步进行再来一单操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") +request_body = commonFuc().get_business_data(module, "payload20", demand_id) + +""" + 场景: 验证使用再来一单功能时,原订单中商品已下架,是否进行拦截提醒 + 用例名称:商品下架拦截验证_再来一单 + 输出:{"success":false,"code":"ERROR","message":"当前订单无有效商品","data":null,"freshToken":null} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict20") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + +# 进行商品上架架操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.status = 101 WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) \ No newline at end of file diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..07b575c1a0e67da12d23225d780d09710f0a92a3 --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\345\225\206\345\223\201\346\270\205\345\215\225\350\216\267\345\217\226\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,34 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品清单获取验证_结算页面,2288,2288-19,sit,bs +涉及到接口:多采商城获取商品清单接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_order_handle" + +# 获取商品清单信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url15") +request_body = commonFuc().get_business_data(module, "payload15") + +""" + + 场景: 商品清单获取验证_结算页面 + 用例名称:商品清单获取验证_结算页面 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict15") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" new file mode 100644 index 0000000000000000000000000000000000000000..6999df77b3dec3f1cb4574b16d38179e75de8039 --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\344\270\213\345\215\225_e.py" @@ -0,0 +1,58 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc商品金额调整验证_下单,2288,2288-28,sit,bs +涉及到接口:多采商城提交订单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import random +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 生成随机数字用于商品金额 +amount_product = float(random.randint(100, 1000)) +# print(amount_product) +# 进行商品金额调整操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.referencePrice = {} WHERE t.productId = 7991".format(amount_product) +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 第二步进行提交订单 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url19") +request_body = commonFuc().get_business_data(module, "payload19") + +""" + 场景: 验证进行订单提交时,修改商品金额,订单是否按修改前商品金额计算 + 用例名称:商品金额调整验证_下单 + 输出:{"productAmount":"48.25"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取订单中商品金额 +result = {"productAmount": result["data"]["国药集团上海医疗器械有限公司"]["productAmount"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict22") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" new file mode 100644 index 0000000000000000000000000000000000000000..204c4b793766697903b4bc5b26fe63ef2c6df12c --- /dev/null +++ "b/air_case/cmdc_order_handle/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.air/\345\225\206\345\223\201\351\207\221\351\242\235\350\260\203\346\225\264\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_e.py" @@ -0,0 +1,75 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +import random + +""" +case_tag:cmdc_api,cmdc商品金额调整验证_再来一单,2288,2288-27,sit,bs +涉及到接口:多采商城再来一单获取原订单信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 生成随机数字用于商品金额 +amount_product = float(random.randint(100, 1000)) +# print(amount_product) +# 进行商品金额调整操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.referencePrice = {} WHERE t.productId = 7991".format(amount_product) +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 查询指定需求单信息 +order_num = "17018438457347575" + +# 第二步获取多采商城需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_demand_list") +request_body = commonFuc().get_business_data(module, "payload_demand_list", order_num) +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取需求单信息 +demand_id = result["data"]["list"][0]["demandId"] + +# 第三步进行再来一单操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") +request_body = commonFuc().get_business_data(module, "payload20", demand_id) + +""" + 场景: 验证当原订单中商品价格被修改后,再来一单中商品金额是否调整为最新金额 + 用例名称:商品金额调整验证_再来一单 + 输出:{"productAmount":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取订单中商品金额 +result = {"productAmount": result["data"]["国药集团上海医疗器械有限公司"]["datas"][0]["productAmount"]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict21", amount_product) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.py" "b/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.py" new file mode 100644 index 0000000000000000000000000000000000000000..c8e9473edc2d5708cac4ab0aa1cb0b3cc5cdcd18 --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\344\270\213\345\215\225_c.py" @@ -0,0 +1,54 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc控销商品拦截验证_下单,2288,2288-26,sit,bs +涉及到接口:多采商城提交订单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 进行商品控销操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.isControlSales = 1 WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) + +# 第二步进行提交订单 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url19") +request_body = commonFuc().get_business_data(module, "payload19") + +""" + 场景: 验证下单时,包含控销商品,是否进行拦截 + 用例名称:控销商品拦截验证 + 输出:{"message": "商品证照校验错误"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取message +result = {"message": result["message"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict19") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.py" "b/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.py" new file mode 100644 index 0000000000000000000000000000000000000000..b1ebb084eb710e4858504fe110c8ce4bb77c7fc1 --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.air/\346\216\247\351\224\200\345\225\206\345\223\201\346\213\246\346\210\252\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225_d.py" @@ -0,0 +1,66 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc控销商品拦截验证_再来一单,2288,2288-25,sit,bs +涉及到接口:多采商城再来一单获取原订单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +from common.db.db import mySql +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 数据库操作 +mysql_handle = mySql() +# 获取conf.ini文件中配置的数据库信息 +host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") + +# 查询指定需求单信息 +order_num = "17018438457347575" + +# 第二步获取多采商城需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_demand_list") +request_body = commonFuc().get_business_data(module, "payload_demand_list", order_num) +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 获取需求单信息 +demand_id = result["data"]["list"][0]["demandId"] + +# 第三步进行再来一单操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") +request_body = commonFuc().get_business_data(module, "payload20", demand_id) + +""" + 场景: 验证使用再来一单功能时,原订单中包含控销商品,是否进行拦截提醒 + 用例名称:控销商品拦截验证_再来一单 + 输出:{"success":false,"code":"ERROR","message":"当前订单无有效商品","data":null,"freshToken":null} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict20") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + +# 进行去除商品控销状态操作 +sql = "UPDATE `cmdc-product`.ic_product t SET t.isControlSales = 0 WHERE t.productId = 7991" +mysql_handle.executeUpdate(host, port, user, pwd, "cmdc-product", sql) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..cfce58f7c81abdb4e5ab817c97ce08679cce358e --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242jde\351\205\215\347\275\256\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,55 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询jde配置接口验证,2288,2288-1,sit,bs +涉及到接口:多采商城查询jde配置接口 +""" + +from common.common_func import commonFuc +import requests +import random +import json + + +module = "cmdc_order_handle" + +# # 第一步登录多采商城获取token +# # 获取登录所需账号密码 +# username = commonFuc().get_business_data(module, "username1") +# password = commonFuc().get_business_data(module, "password1") +# # 获取登录后Cmdc_access_token +# cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +# headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) +# 第二步获取站点列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_query_website") +request_body = commonFuc().get_business_data(module, "payload_query_website") +# 发送请求 +result = requests.post(url, json=request_body) +result = json.loads(result.content) +print(result) +# 生成随机数 +random_website = random.randint(0, len(result["data"])-1) + +# 获取站点信息 +companyId = result["data"][random_website]["companyId"] + +# 第三步根据公司id获取对应jde配置信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_jde_config") +request_body = commonFuc().get_business_data(module, "payload_jde_config", companyId) + +""" + 场景:查询jde配置接口验证 + 用例名称:查询jde配置接口验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict_jde_config") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..1e8744c2ab8f59508e0309233f39f66a425aa90e --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\345\225\206\345\223\201\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,62 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询商品信息接口验证,2288,2288-2,sit,bs +涉及到接口:多采商城查询商品信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录后台运营平台获取cmdc_access_token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username1") +password = commonFuc().get_business_data(module, "password1") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcDoLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) +# 第二步查询商品信息管理中已上架商品 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_product") +request_body = commonFuc().get_business_data(module, "payload_product") + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 获取商品信息 +product_id = result["data"]["list"][0]["productId"] + +# 第三步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第四步查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1", product_id) + +""" + 场景:查询商品信息接口验证 + 用例名称:查询商品信息接口验证 + 输出:{"productId":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +result = {"productId": result["data"]["productId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict1", product_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..2e4b87f1d8521b05b9561809cb82f1d29cc393ea --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\346\270\205\345\215\225_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,50 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_商品清单_结算页面,2288,2288-20,sit,bs +涉及到接口:多采商城获取商品清单接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_order_handle" + +# 第一步获取商品清单信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url15") +request_body = commonFuc().get_business_data(module, "payload15") +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) + +# 获取商品信息 +product_code = result["data"]["list"][0]["productCode"] +product_name = result["data"]["list"][0]["productName"] +material_code = result["data"]["list"][0]["materialCode"] +specifications = result["data"]["list"][0]["specifications"] + +# 第二步进行商品查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url16") +request_body = commonFuc().get_business_data(module, "payload16", product_code, product_name, material_code, specifications) + +""" + + 场景: 查询条件验证_商品清单_结算页面 + 用例名称:查询条件验证_商品清单_结算页面 + 输出:{"productCode":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取查询结果中商品信息 +result = {"productCode": result["data"]["list"][0]["productCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict16", product_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.py" new file mode 100644 index 0000000000000000000000000000000000000000..360e3d20c471da81bdee74f559513fb2c4abfc3a --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_a.py" @@ -0,0 +1,53 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_收货地址列表_a,2288,2288-12,sit,bs +涉及到接口:多采商城获取收货地址列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取结算页面收货地址列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7") +request_body = commonFuc().get_business_data(module, "payload7") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取收货信息 +receiver_name = result["data"]["addresses"]["list"][0]["receiverName"][-2:] + +# 第三步根据查询条件查询收货列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url8") +request_body = commonFuc().get_business_data(module, "payload8", receiver_name) +""" + 场景:验证收货地址列表查询条件是否可正常使用,支持姓名、电话、收货地址模糊匹配 + 用例名称:查询条件验证_收货地址列表 + 输出:{"receiverName":"%s"};{"address":"%s"};{"mobile":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中收货人姓名 +result = {"receiverName": result["data"]["addresses"]["list"][0]["receiverName"][-2:]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict8_1", receiver_name) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.py" new file mode 100644 index 0000000000000000000000000000000000000000..d9adf2ef17477a760f52a46f16b776b98895f5cc --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_b.py" @@ -0,0 +1,54 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_收货地址列表_b,2288,2288-12,sit,bs +涉及到接口:多采商城获取收货地址列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取结算页面收货地址列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7") +request_body = commonFuc().get_business_data(module, "payload7") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取收货信息 +address = result["data"]["addresses"]["list"][0]["address"][-2:] + +# 第三步根据查询条件查询收货列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url8") +request_body = commonFuc().get_business_data(module, "payload8", address) + +""" + 场景:验证收货地址列表查询条件是否可正常使用,支持姓名、电话、收货地址模糊匹配 + 用例名称:查询条件验证_收货地址列表 + 输出:{"receiverName":"%s"};{"address":"%s"};{"mobile":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中收货人姓名 +result = {"address": result["data"]["addresses"]["list"][0]["address"][-2:]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict8_2", address) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.py" new file mode 100644 index 0000000000000000000000000000000000000000..0eed8dc7c546ee40fb4b630093c55039d8856a10 --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_c.py" @@ -0,0 +1,54 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询条件验证_收货地址列表_c,2288,2288-12,sit,bs +涉及到接口:多采商城获取收货地址列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取结算页面收货地址列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7") +request_body = commonFuc().get_business_data(module, "payload7") +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取收货信息 +mobile = result["data"]["addresses"]["list"][0]["mobile"][-2:] + +# 第三步根据查询条件查询收货列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url8") +request_body = commonFuc().get_business_data(module, "payload8", mobile) + +""" + 场景:验证收货地址列表查询条件是否可正常使用,支持姓名、电话、收货地址模糊匹配 + 用例名称:查询条件验证_收货地址列表 + 输出:{"receiverName":"%s"};{"address":"%s"};{"mobile":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中收货人姓名 +result = {"mobile": result["data"]["addresses"]["list"][0]["mobile"][-2:]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict8_3", mobile) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..76a1f1d7d7a1a497fd6c0853838a2d3c2e1b3834 --- /dev/null +++ "b/air_case/cmdc_order_handle/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\224\250\346\210\267\345\234\260\345\235\200\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,42 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc查询用户地址接口验证,2288,2288-21,sit,bs +涉及到接口:多采商城结算页面查询用户收货地址接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步查询用户收货地址信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url17") +request_body = commonFuc().get_business_data(module, "payload17") + +""" + 场景: 验证多采商城结算页面查询用户收货地址信息接口连通性 + 用例名称:查询用户地址接口验证 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict17") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) \ No newline at end of file diff --git "a/air_case/cmdc_order_handle/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..c66f4d121105f4d57b0ea52595a95051ebf8a174 --- /dev/null +++ "b/air_case/cmdc_order_handle/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\347\211\251\346\226\231\347\274\226\347\240\201\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,47 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc物料编码模糊查询验证_结算页面,2288,2288-16,sit,bs +涉及到接口:多采商城物料编码模糊查询接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 生成随机数据 +random_code = random.randint(0, 9) +# 第二步进行物料编码模糊匹配查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url12") +request_body = commonFuc().get_business_data(module, "payload12", random_code) + +""" + 场景:验证结算页面物料编码模糊查询接口连通性 + 用例名称:物料编码模糊查询验证_结算页面 + 输出:{"data":["%s"]} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中数据 +result = {"data": result["data"][0][0]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict12", random_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.air/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.py" "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.air/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.py" new file mode 100644 index 0000000000000000000000000000000000000000..0ce7330d1a19400523ab12aad9c2a29f0f4b59db --- /dev/null +++ "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.air/\350\216\267\345\217\226\345\216\237\350\256\242\345\215\225\344\277\241\346\201\257\346\216\245\345\217\243\351\252\214\350\257\201_\345\206\215\346\235\245\344\270\200\345\215\225.py" @@ -0,0 +1,59 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取原订单信息接口验证_再来一单,2288,2288-22,sit,bs +涉及到接口:多采商城需求单列表、获取原订单信息等接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +order_num = "" + +# 第二步获取多采商城需求单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url_demand_list") +request_body = commonFuc().get_business_data(module, "payload_demand_list", order_num) +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) + +# 生成随机数字,用于后续获取需求单 +random_demand = random.randint(0, len(result["data"]["list"]) - 1) +# 获取需求单信息 +demand_id = result["data"]["list"][random_demand]["demandId"] + +# 第三步获取原订单信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url18") +request_body = commonFuc().get_business_data(module, "payload18", demand_id) + +""" + 场景: 验证再来一单功能获取原订单信息接口连通性 + 用例名称:获取原订单信息接口验证_再来一单 + 输出:{"success":true,"code":"200","message":"ok"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict18") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..1bae197ee6cfff14a41d288a004902a68de43587 --- /dev/null +++ "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\346\224\266\346\254\276\350\264\246\345\217\267\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -0,0 +1,47 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取收款账号接口验证,2288,2288-31,sit,bs +涉及到接口:多采商城获取收款账号接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 公司信息 +company_id = 6 +# 第二步获取公司对应的收款账号 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url23") +request_body = commonFuc().get_business_data(module, "payload23", company_id) + +""" + 场景:验证获取收款账号接口连通性 + 用例名称:获取收款账号接口验证 + 输出:{"companyId":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取收款账号中公司信息 +result = {"companyId": result["data"]["list"][0]["companyId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict23", company_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..130258cf56c540907bbe0f5a8845ab41537776af --- /dev/null +++ "b/air_case/cmdc_order_handle/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\266\350\264\247\345\234\260\345\235\200\345\210\227\350\241\250_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,44 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc获取收货地址列表_结算页面_a,2288,2288-11,sit,bs +涉及到接口:多采商城获取收货地址列表接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步获取结算页面收货地址列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url7") +request_body = commonFuc().get_business_data(module, "payload7") + +""" + 场景:验证下单时是否可正常获取到收货地址列表数据 + 用例名称:获取收货地址列表_结算页面 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict7") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..4ef68150f37120f3bda5167d1e16dc737afd204a --- /dev/null +++ "b/air_case/cmdc_order_handle/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\350\247\204\346\240\274\345\236\213\345\217\267\346\250\241\347\263\212\346\237\245\350\257\242\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,48 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc规格型号模糊查询验证_结算页面,2288,2288-14,sit,bs +涉及到接口:多采商城规格型号模糊查询接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 生成随机数据 +random_code = random.randint(0, 8) +# 第二步进行规格型号模糊匹配查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10") +request_body = commonFuc().get_business_data(module, "payload10", random_code) + +""" + 场景:验证结算页面规格型号模糊查询接口连通性 + 用例名称:规格型号模糊查询验证_结算页面 + 输出:{"data":["%s"]} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中数据 +result = {"data": result["data"][0][0]} +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict10", random_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..33b02c0bc8776955c11baaf02bb4e7d54dbb4009 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207Excel\345\244\215\345\210\266\346\267\273\345\212\240\345\225\206\345\223\201\345\212\237\350\203\275\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,49 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc通过Excel复制添加商品功能验证_结算页面,2288,2288-16,sit,bs +涉及到接口:多采商城通过Excel复制添加商品接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import random +import json + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 生成随机数据 +random_code = random.randint(0, 10) +product_code = "13977315" +material_code = "00-8800-000-10" +# 第二步通过Excel复制添加商品 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url14") +request_body = commonFuc().get_business_data(module, "payload14", product_code, material_code, random_code) + +""" + 场景:验证结算页面通过Excel复制添加商品接口连通性 + 用例名称:通过Excel复制添加商品功能验证_结算页面 + 输出:{"productCode":"%s"} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取查询结果中数据 +result = {"productCode": result["data"]["data"][0]["productCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict14", product_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..65523d4c15271cf55459581fe657044a7091bac7 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\345\225\206\345\223\201\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,36 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc通过商品编码查询商品验证_结算页面,2288,2288-13,sit,bs +涉及到接口:多采商城根据商品编码查询商品信息接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_order_handle" + +# 根据商品编码查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url9") +request_body = commonFuc().get_business_data(module, "payload9") + +""" + + 场景: 验证结算页面通过商品编码查询商品信息接口连通性 + 用例名称:通过商品编码查询商品验证_结算页面 + 输出:{"productCode":"13977315"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取查询结果中商品code +result = {"productCode": result["data"]["list"][0]["productCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict9") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..c4cf70b0ed1116d9f99ed7aa21ee127f634e2ace --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\347\211\251\346\226\231\347\274\226\347\240\201\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,38 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc通过物料编码查询商品验证_结算页面,2288,2288-17,sit,bs +涉及到接口:多采商城根据物料编码查询商品信息接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_order_handle" + +# 规格型号 +material_code = "00-8800-000-10" +# 根据物料编码查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url13") +request_body = commonFuc().get_business_data(module, "payload13", material_code) + +""" + + 场景: 验证结算页面通过物料编码查询商品信息接口连通性 + 用例名称:通过物料编码查询商品验证_结算页面 + 输出:{"materialCode":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取查询结果中商品对应的物料编码 +result = {"materialCode": result["data"]["list"][0]["materialCode"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict13", material_code) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) \ No newline at end of file diff --git "a/air_case/cmdc_order_handle/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..b510f866ec96f47ec65b5753fb187e07ed121bdc --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\200\232\350\277\207\350\247\204\346\240\274\345\236\213\345\217\267\346\237\245\350\257\242\345\225\206\345\223\201\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,39 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc通过规格型号查询商品验证_结算页面,2288,2288-15,sit,bs +涉及到接口:多采商城根据商品编码查询商品信息接口 +""" + +from common.common_func import commonFuc +import requests +import json + +module = "cmdc_order_handle" + +# 规格型号 +specification = "10.63cm(长)×1.88cm(宽)" +# 根据规格型号查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url11") +request_body = commonFuc().get_business_data(module, "payload11", specification) + +""" + + 场景: 验证结算页面通过规格型号查询商品信息接口连通性 + 用例名称:通过规格型号查询商品验证_结算页面 + 输出:{"specifications":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body) +result = json.loads(result.content) +# print(result) +# 获取查询结果中商品对应的规格型号 +result = {"specifications": result["data"]["list"][0]["specifications"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict11", specification) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" "b/air_case/cmdc_order_handle/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..9033744614bfa690a722e2d82da63523839f4d66 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.air/\351\231\204\344\273\266\344\270\212\344\274\240\346\216\245\345\217\243\351\252\214\350\257\201_\347\273\223\347\256\227\351\241\265\351\235\242.py" @@ -0,0 +1,52 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc附件上传接口验证_结算页面,2288,2288-10,sit,bs +涉及到接口:多采商城附件上传接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json +import os + + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 获取文件地址 +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/test_file.jpg" + +# 第二步上传附件 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url6") + +# 获取文件 +file = open(file_path, "rb") +files = {"file": file} + +""" + 场景: 验证结算页面附件上传接口能否正常使用 + 用例名称:附件上传接口验证_结算页面 + 输出:{"success":true,"code":"200","message":"OK"} +""" + +# 发送请求 +result = requests.post(url, files=files, headers=headers) +result = json.loads(result.content) +# print(result) +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict6") +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.air/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.py" "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.air/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.py" new file mode 100644 index 0000000000000000000000000000000000000000..e18cb586efe739d0ca5bf45cf64ca15e95076371 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.air/\351\252\214\350\257\201\344\270\213\345\215\225\346\227\266\344\270\215\344\274\240\345\234\260\345\235\200\344\277\241\346\201\257.py" @@ -0,0 +1,50 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证下单时不传地址信息,2288,2288-8,sit,bs +涉及到接口:多采商城下单接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + + +module = "cmdc_order_handle" + +# 第一步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第二步下单 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url5") +request_body = commonFuc().get_business_data(module, "payload5") + +""" + 场景:验证下单时不选择收货地址,是否可以正常提交 + 用例名称:验证下单时不传地址信息 + 输出:{"success":false,"code":"3021","message":"国药集团联合医疗器械有限公司收件人不能为空","data":null,"freshToken":null} +""" + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +if result["code"] == "3021": + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict5") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict5_1") + # print(check_dict) + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) \ No newline at end of file diff --git "a/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..d15aa050dad674b860f861018c6b39419c2effb4 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\344\270\213\346\236\266\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" @@ -0,0 +1,62 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证已下架商品详情,2288,2288-3,sit,bs +涉及到接口:多采商城查询商品信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录后台运营平台获取cmdc_access_token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username1") +password = commonFuc().get_business_data(module, "password1") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcDoLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) +# 第二步查询商品信息管理中已下架商品 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2") +request_body = commonFuc().get_business_data(module, "payload2") + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 获取商品信息 +product_id = result["data"]["list"][0]["productId"] + +# 第三步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第四步查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1", product_id) + +""" + 场景: 验证是否可以查询已下架商品详情 + 用例名称:验证已下架商品详情 + 输出:{"productId":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +result = {"productId": result["data"]["productId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict1", product_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..5b722b7cf918b0eefbb0eb0c0b5e7bae8fd866f6 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\345\267\262\345\244\261\346\225\210\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" @@ -0,0 +1,63 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证已失效商品详情,2288,2288-5,sit,bs +涉及到接口:多采商城查询商品信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录后台运营平台获取cmdc_access_token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username1") +password = commonFuc().get_business_data(module, "password1") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcDoLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) +# 第二步查询商品信息管理中已失效商品 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url4") +request_body = commonFuc().get_business_data(module, "payload4") + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 获取商品信息 +product_id = result["data"]["list"][0]["productId"] + +# 第三步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第四步查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1", product_id) + +""" + 场景: 验证是否可以查询已失效商品详情 + 用例名称:验证已失效商品详情 + 输出:{"productId":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +result = {"productId": result["data"]["productId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict1", product_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) + diff --git "a/air_case/cmdc_order_handle/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..ebddbf7d26a4846004da0e7d78feee0d990d5a94 --- /dev/null +++ "b/air_case/cmdc_order_handle/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.air/\351\252\214\350\257\201\346\216\247\351\224\200\345\225\206\345\223\201\350\257\246\346\203\205\346\237\245\350\257\242.py" @@ -0,0 +1,62 @@ +# -*- encoding=utf8 -*- +__author__ = "liguangyu" + +""" +case_tag:cmdc_api,cmdc验证控销商品详情,2288,2288-4,sit,bs +涉及到接口:多采商城查询商品信息接口 +""" + +from common.common_func import commonFuc +from air_case.cmdc_login.后台管理系统登录.后台管理系统登录 import CmdcDoLogin +from air_case.cmdc_login.多采商城登录.多采商城登录 import CmdcMaiiLogin +import requests +import json + +module = "cmdc_order_handle" + +# 第一步登录后台运营平台获取cmdc_access_token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username1") +password = commonFuc().get_business_data(module, "password1") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcDoLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) +# 第二步查询商品信息管理中控销商品 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3") +request_body = commonFuc().get_business_data(module, "payload3") + +# 发送请求 +result = requests.post(url, json=request_body, headers=headers) +result = json.loads(result.content) + +# 获取商品信息 +product_id = result["data"]["list"][0]["productId"] + +# 第三步登录多采商城获取token +# 获取登录所需账号密码 +username = commonFuc().get_business_data(module, "username") +password = commonFuc().get_business_data(module, "password") +# 获取登录后Cmdc_access_token +cmdc_access_token = CmdcMaiiLogin(username, password).get_token() +headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 第四步查询商品信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") +request_body = commonFuc().get_business_data(module, "payload1", product_id) + +""" + 场景: 验证是否可以查询控销商品详情 + 用例名称:验证控销商品详情 + 输出:{"productId":"%s"} +""" + +# 发送请求 +result = requests.get(url, params=request_body, headers=headers) +result = json.loads(result.content) +# print(result) +result = {"productId": result["data"]["productId"]} +# 获取预期结果 +check_dict = commonFuc().get_business_data(module, "checkDict1", product_id) +# print(check_dict) +# 断言实际结果中是否包含预期结果的内容 +commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_purchase_list/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.air/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.py" "b/air_case/cmdc_purchase_list/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.air/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.py" index b6ab63898677eff826f10da0e6f6a1af9b327120..4ba8613dadba30523b2bf2c4271491317a905429 100644 --- "a/air_case/cmdc_purchase_list/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.air/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.py" +++ "b/air_case/cmdc_purchase_list/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.air/\351\207\207\350\264\255\345\215\225\346\237\245\350\257\242.py" @@ -14,7 +14,6 @@ import json module = "cmdc_purchase_list" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") # print(url) # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") @@ -22,6 +21,9 @@ password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 获取采购单列表 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") request_body = commonFuc().get_business_data(module, "payload1") """ diff --git "a/air_case/cmdc_query_customer/\345\256\242\346\210\267\346\237\245\350\257\242.air/\345\256\242\346\210\267\346\237\245\350\257\242.py" "b/air_case/cmdc_query_customer/\345\256\242\346\210\267\346\237\245\350\257\242.air/\345\256\242\346\210\267\346\237\245\350\257\242.py" index 9a45831f14b07942ae5a018a5f2cea329e7f8471..c3a997507ed591270aac54863193ac102d297568 100644 --- "a/air_case/cmdc_query_customer/\345\256\242\346\210\267\346\237\245\350\257\242.air/\345\256\242\346\210\267\346\237\245\350\257\242.py" +++ "b/air_case/cmdc_query_customer/\345\256\242\346\210\267\346\237\245\350\257\242.air/\345\256\242\346\210\267\346\237\245\350\257\242.py" @@ -14,14 +14,16 @@ import json module = "cmdc_query_customer" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") -# print(url) + # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) + +# 进行客户查询操作 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url") request_body = commonFuc().get_business_data(module, "payload1") """ diff --git "a/air_case/cmdc_rebate/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.air/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.py" "b/air_case/cmdc_rebate/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.air/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.py" index 1c5009b06173c76df33020e0b7afbce75762170a..6847b6c0a0783da3cd7cfc04d81b4e2279df0927 100644 --- "a/air_case/cmdc_rebate/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.air/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_rebate/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.air/a_\350\277\224\345\210\251\350\247\204\345\210\231\346\226\260\345\242\236\351\252\214\350\257\201.py" @@ -64,8 +64,14 @@ request_body = commonFuc().get_business_data(module, "payload21", customer_name, # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) -print(result) -# 获取预期结果 -check_dict = commonFuc().get_business_data(module, "checkDict21") -# 断言实际结果中是否包含预期结果的内容 -commonFuc().check_result(check_dict, result) +# print(result) +if result["success"]: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict21") + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict22") + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_rebate/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.air/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_rebate/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.air/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.py" index 0528b06397b784b52fc9ed6d07c03c23db008ea5..522678551a4d2bacce73d76c0c206e69461ad5c8 100644 --- "a/air_case/cmdc_rebate/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.air/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_rebate/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.air/g_\350\277\224\345\210\251\350\247\204\345\210\231\345\210\240\351\231\244\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -32,7 +32,7 @@ result = json.loads(result.content) # 获取指定返利规则信息 rebate_id = result["data"]["list"][0]["rebateid"] -# 第三步进行返利规则启用操作 +# 第三步进行返利规则删除操作 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url25") request_body = commonFuc().get_business_data(module, "payload25", rebate_id) diff --git "a/air_case/cmdc_special_fresenius_group/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.air/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.py" "b/air_case/cmdc_special_fresenius_group/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.air/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.py" index 88df161a0fa7e255bf09a9007a941e41035b9298..7fa4cddb4e25f87514b76e18999891cc60027175 100644 --- "a/air_case/cmdc_special_fresenius_group/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.air/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.py" +++ "b/air_case/cmdc_special_fresenius_group/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.air/\345\215\225\344\270\252\346\226\260\345\242\236\351\252\214\350\257\201_\345\245\227\345\214\205\346\255\243\344\273\267_\346\214\207\345\256\232\345\256\242\346\210\267.py" @@ -100,7 +100,14 @@ result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) print(result) -# 获取预期结果 -check_dict = commonFuc().get_business_data(module, "checkDict20") -# 断言实际结果中是否包含预期结果的内容 -commonFuc().check_result(check_dict, result) +# 进行结果判断 +if result["success"]: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict20") + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) +else: + # 获取预期结果 + check_dict = commonFuc().get_business_data(module, "checkDict20_2") + # 断言实际结果中是否包含预期结果的内容 + commonFuc().check_result(check_dict, result) diff --git "a/air_case/cmdc_special_fresenius_group/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.air/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.py" "b/air_case/cmdc_special_fresenius_group/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.air/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.py" index 224750dbe823fb0bf96971eed9678a10b59a1c63..a123ac7b03710345eaba61a96bff4d5f80a4e63f 100644 --- "a/air_case/cmdc_special_fresenius_group/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.air/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_special_fresenius_group/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.air/\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265_\345\245\227\345\214\205\345\215\217\350\256\256\344\273\267\346\230\276\347\244\272\351\252\214\350\257\201.py" @@ -23,17 +23,17 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke # 第二步套包协议价查询 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3") -request_body = commonFuc().get_business_data(module, "payload49") +request_body = commonFuc().get_business_data(module, "payload49_1") # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) - +# print(result) # 获取商品信息 product_code = result["data"]["list"][0]["products"][0]["productCode"] company_code = result["data"]["list"][0]["companyCode"] document_no = result["data"]["list"][0]["documentNo"] group_price = result["data"]["list"][0]["groupPrice"] -print(product_code) +# print(product_code) # 第三步登录多采商城获取token信息 # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") @@ -61,10 +61,10 @@ request_body = commonFuc().get_business_data(module, "payload47", product_code, # 发送请求 result = requests.get(url, params=request_body, headers=headers) result = json.loads(result.content) -print(result) +# print(result) # 获取商品详情页中套包正价信息 result = {"groupPrice": result["data"][1]["groupPrice"], "documentNo": result["data"][1]["documentNo"]} -print(result) +# print(result) # # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict48", group_price, document_no) # # 断言实际结果中是否包含预期结果的内容 diff --git "a/air_case/cmdc_special_fresenius_group/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.air/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.py" "b/air_case/cmdc_special_fresenius_group/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.air/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.py" index 4812f2b2a541cbee4941a6445591e04f4a6e27a1..144667d7e21216becdc232c89fceeba8b9725c74 100644 --- "a/air_case/cmdc_special_fresenius_group/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.air/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.py" +++ "b/air_case/cmdc_special_fresenius_group/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.air/\346\211\271\351\207\217\346\226\260\345\242\236_\345\245\227\345\214\205\345\225\206\345\223\201\347\256\241\347\220\206.py" @@ -36,10 +36,10 @@ result = requests.post(url, headers=headers, json=request_body) result = json.loads(result.content) # 随机获取不相同两个商品信息 -product_id_a = random.randint(1, len(result["data"]["list"]) - 1) +product_id_a = random.randint(1, len(result["data"]["list"]) - 2) product_code_a = result["data"]["list"][product_id_a]["productCode"] product_name_a = result["data"]["list"][product_id_a]["productName"] -product_id_b = random.randint(product_id_a + 1, len(result["data"]["list"])) +product_id_b = random.randint(product_id_a + 1, len(result["data"]["list"]) - 1) product_code_b = result["data"]["list"][product_id_b]["productCode"] product_name_b = result["data"]["list"][product_id_b]["productName"] diff --git "a/air_case/cmdc_special_fresenius_group/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.air/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.py" "b/air_case/cmdc_special_fresenius_group/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.air/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.py" index 48f9bbcaea4aebc03a31fe66e49a3bf654134af5..9d8e152f75301624ab42ba6f554e58c3c35e6837 100644 --- "a/air_case/cmdc_special_fresenius_group/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.air/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_special_fresenius_group/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.air/\347\211\271\344\273\267\345\215\225\345\223\201\346\226\260\345\242\236\351\252\214\350\257\201.py" @@ -49,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) # 获取商品信息 -product_detail = result["data"]["list"][random.randint(1, len(result["data"]["list"]))] +product_detail = result["data"]["list"][random.randint(1, len(result["data"]["list"]))-1] product_detail["activityUnitAmount"] = customer_quantity # 随机生成日期 diff --git "a/air_case/cmdc_userinfo_query/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.air/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.py" "b/air_case/cmdc_userinfo_query/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.air/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.py" index 6e1de437879050c98f14633e6e3eabed5594fea2..568b4f51bbabe9d4323864dcba1aa52eef70a6dd 100644 --- "a/air_case/cmdc_userinfo_query/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.air/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.py" +++ "b/air_case/cmdc_userinfo_query/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.air/\347\224\250\346\210\267\344\277\241\346\201\257\346\237\245\350\257\242.py" @@ -15,14 +15,15 @@ import json module = "cmdc_userinfo_query" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") -print(url) # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) + +# 进行用户信息查询 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") request_body = commonFuc().get_business_data(module, "payload1") """ diff --git "a/air_case/cmdc_website/\347\253\231\347\202\271\345\210\207\346\215\242.air/\347\253\231\347\202\271\345\210\207\346\215\242.py" "b/air_case/cmdc_website/\347\253\231\347\202\271\345\210\207\346\215\242.air/\347\253\231\347\202\271\345\210\207\346\215\242.py" index e40496a0951900fc64bc138c4d295c25f605b42b..00024e1156dce0cb32014f328e30d6c826d3bd55 100644 --- "a/air_case/cmdc_website/\347\253\231\347\202\271\345\210\207\346\215\242.air/\347\253\231\347\202\271\345\210\207\346\215\242.py" +++ "b/air_case/cmdc_website/\347\253\231\347\202\271\345\210\207\346\215\242.air/\347\253\231\347\202\271\345\210\207\346\215\242.py" @@ -15,7 +15,6 @@ import json module = "cmdc_website" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2") # print(url) # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username1") @@ -23,6 +22,9 @@ password = commonFuc().get_business_data(module, "password1") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) + +# 进行站点切换 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2") request_body = commonFuc().get_business_data(module, "payload2") """ diff --git "a/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.py" "b/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.py" index ec624dc5d0b0263da1ed0d08ab9c3e74c2fb5fcf..7394909fb8f1ee14df96e5ae3dccf983bad46868 100644 --- "a/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.py" +++ "b/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257.py" @@ -15,7 +15,6 @@ import json module = "cmdc_website" -url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") # print(url) # 获取登录所需账号密码 username = commonFuc().get_business_data(module, "username") @@ -23,6 +22,9 @@ password = commonFuc().get_business_data(module, "password") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) + +# 获取站点信息 +url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url1") request_body = commonFuc().get_business_data(module, "payload1") """ diff --git "a/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.air/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.py" "b/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.air/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.py" index c970049371f020d6228ad93597d1ba2081197ad5..40b6ccd3edc6ff8fe2018f28bfa751f38751c49f 100644 --- "a/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.air/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.py" +++ "b/air_case/cmdc_website/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.air/\350\216\267\345\217\226\347\253\231\347\202\271\345\225\206\345\223\201.py" @@ -21,6 +21,7 @@ password = commonFuc().get_business_data(module, "password1") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcMaiiLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) + # 第二步切换至子站点 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2") request_body = commonFuc().get_business_data(module, "payload2") diff --git a/data/cmdc_buyercart_handle/data b/data/cmdc_buyercart_handle/data index 6fcbaddd17a3fb0adafd40753c1cd7d82f185703..0f21294fd2a12c88ed06ea0d8fb587694a17b87b 100644 --- a/data/cmdc_buyercart_handle/data +++ b/data/cmdc_buyercart_handle/data @@ -32,6 +32,7 @@ checkDict1: {"success":true,"code":"200","message":"OK"} "payload30": {"国药集团联合医疗器械有限公司":{"datas":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1000086,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"15000.0000","productAmount":15000,"payableAmount":15000,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9036,"productName":"脉搏血氧测量仪","productCode":"10357517","productNature":"01","brandName":null,"optionStr":"Rad-5v","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/0a2741f8-6870-483e-ba10-07b7d21ca05c.png","lineNumber":null,"price":15000,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":15000,"measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9197","manufacturer":"迈心诺公司/Masimo Corporation","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":1695697442000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":15000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-5v","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":2,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0.17,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.17,"rebateType":0,"paymentAmountWholeLine":15000,"discountAmountWholeLine":0,"payableAmountWholeLine":15000,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"Rad-5v","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":2,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"preDisSign":0,"shareType":null,"singleRebateSign":null,"cf":false,"notice":null,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":15000,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false}],"addressConfig":1,"openPreTaxAmount":1,"notice":"888品类齐全,轻松购物快多仓直发,极速配送好正品行货,精致服务省天天低价,畅选无忧品类齐全,轻松购物快多仓直发,极速配送好正品行货,精致服务省天天低价,畅选无忧品类齐全,轻松购物快多仓直发,极速配送好正品行货,精致服务省天天低价,畅选无忧品类齐全,轻松购物快多仓直发,极速配送好正品行货,精致服务省天天低价,畅选无忧品类齐全,轻松购物快多仓直发,极速配送好正品行货,精致服","promotionOrRebate":1,"promotionType":1,"showChangePromotionOrRebate":false,"couponTotalAmount":0,"activityTotalAmount":0,"totalQuantity":1,"totalPrice":15000,"discountAmount":0,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9036,"productName":"脉搏血氧测量仪","productCode":"10357517","productNature":"01","brandName":null,"optionStr":"Rad-5v","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/0a2741f8-6870-483e-ba10-07b7d21ca05c.png","lineNumber":null,"price":15000,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":15000,"measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9197","manufacturer":"迈心诺公司/Masimo Corporation","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":1695697442000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":15000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-5v","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":2,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0.17,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"productPrice":"15000.0000","fileList":[],"showInfo":false,"pageStart":1,"pageSize":5,"receiveInfo":[{"addressId":16309,"addressNo":19199,"addressName":"武汉市洪山区高新大道777号","provinceCode":null,"userId":null,"companyId":null,"receiverName":"萧峰","address":"","isDefault":0,"type":null,"postcode":null,"mobile":"13878900987","updateDate":null,"updateTime":null,"flag":null,"deleteSign":null,"province":null,"city":null,"area":null,"dateTime":null,"provinceStr":null,"cityStr":null,"areaStr":null,"isJde":0}],"defaultBankInfo":{"accountId":32,"companyId":2,"companyName":"国药集团联合医疗器械有限公司","registeredAddress":"北京市顺义区金航中路3号院社科中心1号楼3单元2层301","bank":"中国工商银行北京支行","accountName":"国药集团联合医疗器械有限公司","accountNumber":"108902839271937437","disableSign":0,"deleteSign":0,"createTime":"2021-01-12 16:12:03","updateTime":"2021-01-12 16:12:33","createBy":2,"updateBy":2,"realName":"子公司1admin"},"addressList":[{"addressId":16309,"addressNo":19199,"addressName":null,"provinceCode":null,"userId":null,"companyId":2,"receiverName":"萧峰","address":"武汉市洪山区高新大道777号","isDefault":0,"type":3,"postcode":null,"mobile":"13878900987","updateDate":123258,"updateTime":174051,"flag":null,"deleteSign":null,"province":0,"city":0,"area":0,"dateTime":null,"provinceStr":"","cityStr":"","areaStr":"","isJde":0,"cityList":[],"areaList":[]}],"selecteAddresId":16309,"receiverNote":"萧峰","receiverPhoneNote":"13878900987","receiverAddressNote":"武汉市洪山区高新大道777号","addressNoNote":19199,"province":0,"city":0,"cityList":[],"area":0,"areaList":[],"paymentAmount":"15000.0000","taxRate":0.17,"demands":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1000086,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"15000.0000","productAmount":15000,"payableAmount":15000,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9036,"productName":"脉搏血氧测量仪","productCode":"10357517","productNature":"01","brandName":null,"optionStr":"Rad-5v","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/0a2741f8-6870-483e-ba10-07b7d21ca05c.png","lineNumber":null,"price":15000,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":15000,"measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9197","manufacturer":"迈心诺公司/Masimo Corporation","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":1695697442000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":15000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-5v","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":2,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0.17,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0,"orderType":null}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.17,"rebateType":0,"paymentAmountWholeLine":15000,"discountAmountWholeLine":0,"payableAmountWholeLine":15000,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"Rad-5v","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":2,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"preDisSign":0,"shareType":null,"singleRebateSign":null,"cf":false,"notice":null,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":15000,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"pSign":0}],"orderStatus":102,"userReceiveId":"","userReceiveId2":"","productAmount":15000,"paymentType":0,"accountId":32,"receiveBankName":"国药集团联合医疗器械有限公司","receiveBankAccount":"108902839271937437","addressNumber":19199,"receiverName":"萧峰","receiverContact":"13878900987","receiverAddress":"武汉市洪山区高新大道777号","buyerCartIds":["%s","%s"],"sellerCompanyCode":"00102","companyId":2},"国药集团北京医疗器械有限公司":{"datas":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1000086,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"30.0000","productAmount":30,"payableAmount":30,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":1190,"productName":"百能速干手消毒凝胶","productCode":"13768100","productNature":"03","brandName":null,"optionStr":"500ml/瓶","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2020/12/29/72e7cb48-580b-455d-b56d-bddb14b8fc6c.JPG","lineNumber":null,"price":30,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":30,"measuringUnit":"瓶","auxiliaryMeasuringUnit":"BT","procurementMeasuringUnit":"BT","pricingMeasuringUnit":"BT","materialCode":"","manufacturer":"杭州朗索医用消毒剂有限公司","produceRegisterNum":null,"riskRank":"","productClassify":"9998","createTime":null,"updateTime":1695697596000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":30,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"500ml/瓶","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0,"rebateType":0,"paymentAmountWholeLine":30,"discountAmountWholeLine":0,"payableAmountWholeLine":30,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"500ml/瓶","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"preDisSign":0,"shareType":null,"singleRebateSign":null,"cf":false,"notice":null,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":30,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"_rebateType":false,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100}],"addressConfig":2,"openPreTaxAmount":0,"promotionOrRebate":1,"promotionType":1,"showChangePromotionOrRebate":false,"couponTotalAmount":0,"activityTotalAmount":0,"totalQuantity":1,"totalPrice":30,"discountAmount":0,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":1190,"productName":"百能速干手消毒凝胶","productCode":"13768100","productNature":"03","brandName":null,"optionStr":"500ml/瓶","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2020/12/29/72e7cb48-580b-455d-b56d-bddb14b8fc6c.JPG","lineNumber":null,"price":30,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":30,"measuringUnit":"瓶","auxiliaryMeasuringUnit":"BT","procurementMeasuringUnit":"BT","pricingMeasuringUnit":"BT","materialCode":"","manufacturer":"杭州朗索医用消毒剂有限公司","produceRegisterNum":null,"riskRank":"","productClassify":"9998","createTime":null,"updateTime":1695697596000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":30,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"500ml/瓶","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"productPrice":"30.0000","fileList":[],"showInfo":false,"pageStart":1,"pageSize":5,"receiveInfo":[],"defaultBankInfo":{"accountId":52,"companyId":3,"companyName":"国药集团联合医疗器械有限公司","registeredAddress":"北京市东城区","bank":"建设银行19","accountName":"建设银行北京支行19","accountNumber":"62231478523685414","disableSign":0,"deleteSign":0,"createTime":"2021-01-25 11:17:26","updateTime":"2021-01-25 11:17:26","createBy":2,"realName":"子公司1admin"},"addressList":[{"addressId":5243,"addressNo":0,"addressName":null,"provinceCode":null,"userId":null,"companyId":3,"receiverName":"叶二娘","address":"嵩山少林室","isDefault":1,"type":5,"postcode":null,"mobile":"13223233434","updateDate":null,"updateTime":0,"flag":null,"deleteSign":null,"province":1681,"city":1797,"area":null,"dateTime":null,"provinceStr":"湖北省","cityStr":"仙桃市","areaStr":null,"isJde":0,"cityList":[{"areaId":1682,"areaCode":"420100","areaName":"武汉市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1696,"areaCode":"420200","areaName":"黄石市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1703,"areaCode":"420300","areaName":"十堰市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1712,"areaCode":"420500","areaName":"宜昌市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1726,"areaCode":"420600","areaName":"襄阳市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1736,"areaCode":"420700","areaName":"鄂州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1740,"areaCode":"420800","areaName":"荆门市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1746,"areaCode":"420900","areaName":"孝感市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1754,"areaCode":"421000","areaName":"荆州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1763,"areaCode":"421100","areaName":"黄冈市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1774,"areaCode":"421200","areaName":"咸宁市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1781,"areaCode":"421300","areaName":"随州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1785,"areaCode":"422800","areaName":"恩施土家族苗族自治州","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1794,"areaCode":"429005","areaName":"潜江市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1795,"areaCode":"429021","areaName":"神农架林区","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1796,"areaCode":"429006","areaName":"天门市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1797,"areaCode":"429004","areaName":"仙桃市","level":null,"cityCode":null,"center":null,"parentId":null}],"areaList":[]}],"selecteAddresId":5243,"receiverNote":"叶二娘","receiverPhoneNote":"13223233434","receiverAddressNote":"湖北省仙桃市嵩山少林室","addressNoNote":0,"province":1681,"city":1797,"cityList":[{"areaId":1682,"areaCode":"420100","areaName":"武汉市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1696,"areaCode":"420200","areaName":"黄石市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1703,"areaCode":"420300","areaName":"十堰市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1712,"areaCode":"420500","areaName":"宜昌市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1726,"areaCode":"420600","areaName":"襄阳市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1736,"areaCode":"420700","areaName":"鄂州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1740,"areaCode":"420800","areaName":"荆门市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1746,"areaCode":"420900","areaName":"孝感市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1754,"areaCode":"421000","areaName":"荆州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1763,"areaCode":"421100","areaName":"黄冈市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1774,"areaCode":"421200","areaName":"咸宁市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1781,"areaCode":"421300","areaName":"随州市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1785,"areaCode":"422800","areaName":"恩施土家族苗族自治州","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1794,"areaCode":"429005","areaName":"潜江市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1795,"areaCode":"429021","areaName":"神农架林区","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1796,"areaCode":"429006","areaName":"天门市","level":null,"cityCode":null,"center":null,"parentId":null},{"areaId":1797,"areaCode":"429004","areaName":"仙桃市","level":null,"cityCode":null,"center":null,"parentId":null}],"area":null,"areaList":[],"paymentAmount":"30.0000","taxRate":0.17,"demands":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1000086,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"30.0000","productAmount":30,"payableAmount":30,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":1000086,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":1190,"productName":"百能速干手消毒凝胶","productCode":"13768100","productNature":"03","brandName":null,"optionStr":"500ml/瓶","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2020/12/29/72e7cb48-580b-455d-b56d-bddb14b8fc6c.JPG","lineNumber":null,"price":30,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":30,"measuringUnit":"瓶","auxiliaryMeasuringUnit":"BT","procurementMeasuringUnit":"BT","pricingMeasuringUnit":"BT","materialCode":"","manufacturer":"杭州朗索医用消毒剂有限公司","produceRegisterNum":null,"riskRank":"","productClassify":"9998","createTime":null,"updateTime":1695697596000,"deleteSign":0,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":30,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"500ml/瓶","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":"%s","userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":130,"productTax":"","taxRate":0,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":0,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":0,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"purchaseEntryId":null,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"sort":0,"circleArea":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0,"orderType":null}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0,"rebateType":0,"paymentAmountWholeLine":30,"discountAmountWholeLine":0,"payableAmountWholeLine":30,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"500ml/瓶","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"preDisSign":0,"shareType":null,"singleRebateSign":null,"cf":false,"notice":null,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":30,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"_rebateType":false,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"pSign":0}],"orderStatus":102,"userReceiveId":"","userReceiveId2":"","productAmount":30,"paymentType":0,"accountId":52,"receiveBankName":"建设银行北京支行19","receiveBankAccount":"62231478523685414","buyerCartIds":["%s","%s"],"sellerCompanyCode":"00103","companyId":3}} #预期结果 checkDict2: {"success":true,"code":"200","message":null} +checkDict2_1: {"success":False,"code":"30452","message":"用户证照校验错误"} #查询已添加至购物车商品对应的id #商品-国联公司-脉搏血氧测量仪 diff --git a/data/cmdc_demand_create_pc/data b/data/cmdc_demand_create_pc/data index 78f088eb1267c42ad63f92b3f429aa645782c2c4..8892c4fbf12570bbaef55711ff775ed44ec2fcc4 100644 --- a/data/cmdc_demand_create_pc/data +++ b/data/cmdc_demand_create_pc/data @@ -15,6 +15,7 @@ json_headers: { "payload": {"国药集团北京医疗器械有限公司":{"datas":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1127254,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"230.0000","productAmount":230,"payableAmount":230,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":"","storageType":"999","suppDist":null,"productId":314,"productName":"红外测温仪","productCode":"12043728","productNature":null,"brandName":null,"optionStr":"YHW-3","imageUrl":null,"lineNumber":null,"price":230,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":230,"measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"江苏鱼跃医用仪器有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":230,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"YHW-3","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":[],"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":null,"userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":1,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":230,"discountAmountWholeLine":0,"payableAmountWholeLine":230,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"YHW-3","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":230,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false}],"addressConfig":2,"openPreTaxAmount":0,"promotionOrRebate":1,"promotionType":1,"showChangePromotionOrRebate":false,"couponTotalAmount":0,"activityTotalAmount":0,"totalQuantity":1,"totalPrice":230,"discountAmount":0,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":"","storageType":"999","suppDist":null,"productId":314,"productName":"红外测温仪","productCode":"12043728","productNature":null,"brandName":null,"optionStr":"YHW-3","imageUrl":null,"lineNumber":null,"price":230,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":230,"measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"江苏鱼跃医用仪器有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":230,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"YHW-3","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":[],"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":null,"userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":1,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0}],"productPrice":"230.0000","fileList":[],"showInfo":false,"pageStart":1,"pageSize":5,"defaultBankInfo":{"accountId":1,"companyId":3,"companyName":"国药集团北京医疗器械有限公司","registeredAddress":"北京市朝阳区安定路39号长新大厦16层","bank":"招商银行股份有限公司北京东直门支行 ","accountName":"国药集团北京医疗器械有限公司","accountNumber":"110927396010401 ","disableSign":0,"deleteSign":0,"createTime":"2020-12-30 17:18:49","updateTime":"2021-05-28 09:54:12","createBy":2,"updateBy":2,"realName":"北京医疗器械公司1admin"},"addressList":[{"addressId":3278,"addressNo":93465,"addressName":null,"provinceCode":null,"userId":null,"companyId":3,"receiverName":"郭红声","address":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","isDefault":0,"type":3,"postcode":null,"mobile":"15887223281","updateDate":120211,"updateTime":100440,"flag":null,"deleteSign":null,"province":0,"city":0,"area":0,"dateTime":null,"provinceStr":"","cityStr":"","areaStr":"","isJde":0,"cityList":[],"areaList":[]}],"selecteAddresId":3278,"receiverNote":"郭红声","receiverPhoneNote":"15887223281","receiverAddressNote":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","addressNoNote":93465,"province":0,"city":0,"cityList":[],"area":0,"areaList":[],"receiveInfo":[{"addressId":3278,"addressNo":93465,"addressName":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","provinceCode":null,"userId":null,"companyId":null,"receiverName":"郭红声","address":"","isDefault":0,"type":null,"postcode":null,"mobile":"15887223281","updateDate":null,"updateTime":null,"flag":null,"deleteSign":null,"province":null,"city":null,"area":null,"dateTime":null,"provinceStr":null,"cityStr":null,"areaStr":null,"isJde":0}],"paymentAmount":"230.0000","taxRate":null,"demands":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1127254,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"230.0000","productAmount":230,"payableAmount":230,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":"","storageType":"999","suppDist":null,"productId":314,"productName":"红外测温仪","productCode":"12043728","productNature":null,"brandName":null,"optionStr":"YHW-3","imageUrl":null,"lineNumber":null,"price":230,"rebateId":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":230,"measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"江苏鱼跃医用仪器有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":100,"realPay":230,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"YHW-3","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":[],"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"lockType":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":3,"buyerCartId":null,"userReceiveIdx":"","userReceiveIdx2":"","limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":1,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"rebate":false,"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":0,"orderType":null}],"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":230,"discountAmountWholeLine":0,"payableAmountWholeLine":230,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"YHW-3","pageStart":null,"pageSize":null,"changeSgin":null,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":230,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"pSign":0}],"orderStatus":102,"userReceiveId":"","userReceiveId2":"","productAmount":230,"paymentType":0,"accountId":1,"receiveBankName":"国药集团北京医疗器械有限公司","receiveBankAccount":"110927396010401 ","addressNumber":93465,"receiverName":"郭红声","receiverContact":"15887223281","receiverAddress":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","buyerCartIds":[null],"sellerCompanyCode":"00103","companyId":3}} #预期结果 checkDict: {"success":true,"code":"200","message":null} +checkDict_1: {"success":false,"code":"30461","message":"商品证照校验错误"} #需求单草稿订单创建接口地址 "url2": "/product/public/draft/add" diff --git a/data/cmdc_demand_mall/data b/data/cmdc_demand_mall/data new file mode 100644 index 0000000000000000000000000000000000000000..fa1262dee83a565b80407cb794fcb05d655e6ca9 --- /dev/null +++ b/data/cmdc_demand_mall/data @@ -0,0 +1,310 @@ +# 多采商城登录信息 +"username": "BJ0621" +"password": "Aa123456" + +#后台运营管理系统登录信息(子站点上海医疗器械有限公司) +"username1": "Admin00111" +"password1": "Aa123456" + + +#后台管理系统headers +json_headers: { + "Content-Type": "application/json", + "Cmdc_access_token": "%s" +} + +#文件上传headers +json_headers_file: { + "Cmdc_access_token": "%s" +} + +#多采商城headers +json_headers1: { + "Cmdc_access_token": "%s", + "Sourcetype": "mall" +} + +#测试场景一:需求单列表获取接口验证 +"url1": "/order/public/ownListDemand" +"payload1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":null,"shipmentType":null,"pageStart":5,"pageSize":10} +#预期结果 +checkDict1: {"success":true,"code":"200","message":"OK"} + + +#测试场景二:查询条件验证_需求单列表 +"url2": "/order/public/ownListDemand" +"payload2": {"sellerCompanyCodes":["%s"],"startTime":"%s","endTime":"%s","productCode":"%s","productInfoValue":"%s","manufacturerList":null,"orderNum":"%s","paymentType":"%s","preferenceType":"%s","changeSign":null,"mainOrderStatus":null,"shipmentType":null,"pageStart":1,"pageSize":10} +#预期结果 +checkDict2: {"orderNum":"%s"} + +#测试场景三:查询条件验证_审核变动订单_需求单列表 +"url3": "/order/public/ownListDemand" +"payload3": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":1,"mainOrderStatus":null,"shipmentType":0,"pageStart":1,"pageSize":10} +#预期结果 +checkDict3: {"changeSign":1} + +#测试场景四:查询条件验证_状态_需求单列表 +"url4": "/order/public/ownListDemand" +"payload4": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":2,"shipmentType":null,"pageStart":1,"pageSize":10} +#预期结果 +checkDict4: {"orderStatus":102} + + +#测试场景五:获取公司站点接口验证 +"url5": "/user/public/queryCompanyOptionsByCompanyCode" +"payload5": {} +#预期结果 +checkDict5: {"success":true,"code":"200","message":"OK"} + +#测试场景六:获取订单类型接口验证 +"url6": "/user/public/getOrderTypeByUserId" +"payload6": {"userId":69} +#预期结果 +checkDict6: {"success":true,"code":"200","message":"OK"} + +#测试场景七:模糊查询生产厂家列表接口验证 +"url7": "/product/public/getTipsList" +"payload7": {"sign":1,"inputValue":"%s"} +#预期结果 +checkDict7: {"data":"%s"} + + +#测试场景八:获取需求单详情验证 +"url8": "/order/public/getDemandDetailVo" +"payload8": {"demandParentCode":"%s","demandCode":"%s"} +#预期结果 +checkDict8: {"demandCode":"%s"} + +#测试场景九:获取审核人员列表验证 +"url9": "/order/public/auditStay/getAuditStayList" +"payload9": {"demandCode":"%s"} +#预期结果 +checkDict9: {"success":true,"code":"200","message":"OK"} + + +#测试场景十:获取原始需求详情验证 +"url10": "/order/demandOrg/public/getChangeDemand" +"payload10": {"demandCode":"%s"} +#预期结果 +checkDict10: {"demandCode":"%s"} + + +#测试场景十一:获取站点信息验证_需求单 +"url11": "/cms/public/website/queryWebsiteByCompanyIdNoCode" +"payload11": {"companyId":6} +#预期结果 +checkDict11: {"companyId":6} + + + +#测试场景十二:获取需求单操作记录信息验证 +"url12": "/order/public/getOperationFlow" +"payload12": {"demandCode":"%s","demandParentCode":"%s","AuditCompanyNameCode":"00111"} +#预期结果 +checkDict12: {"success":true,"code":"200","message":"请求成功,展示操作流水"} + + +#测试场景十三:获取需求单子单列表验证 +"url13": "/order/public/demandSubSku/list" +"payload13": {"demandCode":"%s","pageStart":1,"pageSize":9999999,"total":1,"demandSubCode":"%s"} +#预期结果 +checkDict13: {"demandSubCode":"%s"} +checkDict13_1: {"success":True,"code":"200"} + + +#测试场景十四:获取需求单子单详情验证 +"url14": "/order/public/demandSub/detail" +"payload14": {"demandId":"%s"} +#预期结果 +checkDict14: {"demandId":"%s"} +checkDict14_1: {"success":True,"code":"200"} + + +#测试场景十五:获取销售订单合同配置验证 +"url15": "/order/public/contract/config" +"payload15": {"demandId":"%s"} +#预期结果 +checkDict15: {"success":true,"code":"200","message":"OK"} + + +#测试场景十六:获取订单变动明细列表验证 +"url16": "/order/mall/demandChange/list" +"payload16": {"demandCode":"%s","frontIdent":1} +#预期结果 +checkDict16_1: {"success":true,"code":"200","message":"OK"} +checkDict16: {"demandCode":"%s"} + + +#测试场景十七:获取订单变动明细验证 +"url17": "/order/mall/demandChangeDetail/page" +"payload17": {"frontIdent":1,"demandChangeId":"%s","pageSize":10,"pageNum":1,"total":0} +#预期结果 +checkDict17: {"demandChangeId":"%s"} + + +#测试场景十八:获取订单变动明细金额验证 +"url18": "/order/mall/demandChange/calPrice" +"payload18": {"demandCode":"%s","frontIdent":1} +#预期结果 +checkDict18_1: {"success":true,"code":"200","message":"OK"} +checkDict18: {"isChange":True} + + +#测试场景十九:验证订单是否被占用 +"url19": "/order/public/demandTakeUp" +"payload19": {"demandId":"%s","type":1} +#预期结果 +checkDict19: {"success":True,"code":"200","message":"OK","data":"占用成功"} + +#测试场景二十:获取订单数据验证_订单修改 +"url20": "/order/public/getOrderModifyData" +"payload20": {"demandId":"%s"} +#预期结果 +checkDict20: {"success":true,"code":"200","message":"查询成功"} +# 获取待审核需求单报文 +"payload20_1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":2,"shipmentType":null,"pageStart":1,"pageSize":10} + + +#测试场景二十一:订单导出功能验证_需求单列表 +"url21": "/order/public/exportOwnListDemand" +"payload21": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"%s","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":null,"shipmentType":null,"pageStart":1,"pageSize":10} +#预期结果 +checkDict21: {"demandCode":"%s"} + + +#测试场景二十二:需求单销售合同下载功能验证 +"url22": "/order/public/back/exportSalesContract" +"payload22": {"demandId":"%s","productName":null,"manufacturer":null,"materialCode":null,"produceRegisterNum":null,"productLineName":null,"pageSize":10,"pageStart":1,"excelType":1} +#预期结果 +checkDict22: {"demandCode":"%s"} +# 获取ERP处理中需求单报文 +"payload22_1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":5,"shipmentType":null,"pageStart":1,"pageSize":10} + +#测试场景二十三:需求单取消功能验证 +"url23": "/order/public/customerCancel" +"payload23": {"demandId":40213,"demandParentId":38196,"demandParentCode":"s2312120700012","demandCode":"17023358016932833","customerId":69,"customerName":"国药集团云南医疗器械有限公司","customerCode":1127254,"loginName":"BJ0621","realName":"郭红声","addressNumber":null,"mobile":"15887223281","productName":null,"productCode":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","paymentType":0,"receiveBankName":"建设银行北京支行19","receiveBankAccount":"62231478523685414","paymentAmount":45,"productAmount":45,"payableAmount":0,"refundAmount":0,"cancelAmount":0,"discountAmount":0,"orderStatus":102,"refundStatus":null,"receiverName":"郭红声","receiverContact":"15887223281","receiverAddress":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":"测试","flhsStatus":0,"pushJdeStatus":null,"createTime":"2023-12-12 07:03:21","updateTime":"2023-12-12 07:03:21","submitTime":"2023-12-12 07:03:22","pushJdeTime":null,"successTime":null,"auditStatus":0,"deleteSign":0,"firstOrderFlag":0,"demandItems":[{"demandSkuId":201118,"demandId":40213,"distributionId":null,"companyCode":null,"demandCode":"17023358016932833","demandParentId":38196,"sellerCompanyId":3,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","customerCode":1127254,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":822,"productName":"医用防护口罩","productCode":"13295500","productNature":null,"brandName":null,"optionStr":"密合型拱形(13.5cm×12cm)","imageUrl":null,"lineNumber":1,"price":20,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":0,"lackQuantity":0,"cancelQuantity":0,"cancelAmount":0,"refundQuantity":0,"refundAmount":0,"discountQuantity":0,"discountAmount":0,"subtotal":20,"measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"YYPS20210031","manufacturer":"北京中北博健科贸有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":"2023-12-11T23:03:21.000+0000","updateTime":"2023-12-11T23:03:21.000+0000","deleteSign":0,"calCancelFlag":0,"refundFlag":0,"discountRate":1,"realPay":20,"promotionPrice":0,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":0,"returnAmount":0,"customerId":null,"prescription":null,"specifications":null,"lineCodeDelete":null,"sdOutStorage":0,"licenseNo":"京食药监械生产许20020039号","demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":"13295500","activityCarDataVoList":null,"productReplaceLogs":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"replaceSgin":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":[],"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":1,"changeSgin":null,"addSgin":0,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":null,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":0,"fulCancelQuantity":0,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":null,"taxRate":null,"demandSplitSign":null,"hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false},{"demandSkuId":201119,"demandId":40213,"distributionId":null,"companyCode":null,"demandCode":"17023358016932833","demandParentId":38196,"sellerCompanyId":3,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","customerCode":1127254,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":160,"productName":"一次性使用手术衣","productCode":"10980792","productNature":null,"brandName":null,"optionStr":"普通型 M120cm×140cm","imageUrl":null,"lineNumber":2,"price":25,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":0,"lackQuantity":0,"cancelQuantity":0,"cancelAmount":0,"refundQuantity":0,"refundAmount":0,"discountQuantity":0,"discountAmount":0,"subtotal":25,"measuringUnit":"件","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"稳健医疗用品股份有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":"2023-12-11T23:03:21.000+0000","updateTime":"2023-12-11T23:03:21.000+0000","deleteSign":0,"calCancelFlag":0,"refundFlag":0,"discountRate":1,"realPay":25,"promotionPrice":0,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":0,"returnAmount":0,"customerId":null,"prescription":null,"specifications":null,"lineCodeDelete":null,"sdOutStorage":0,"licenseNo":"鄂食药监械生产许20100306号","demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":"10980792","activityCarDataVoList":null,"productReplaceLogs":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"replaceSgin":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":[],"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":2,"changeSgin":null,"addSgin":0,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":null,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":0,"fulCancelQuantity":0,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":null,"taxRate":null,"demandSplitSign":null,"hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":null,"discountAmountWholeLine":null,"payableAmountWholeLine":null,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":0,"payCertUrl":null,"rebateAmount":0,"demandCance":0,"soAdd":0,"soCance":0,"orderReturn":0,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":0,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":1,"orderSource":1,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":null,"pageStart":null,"pageSize":null,"changeSgin":0,"yapei":2,"companyId":3,"userReceiveId2":null,"preemptConfig":null,"productSpec":null,"secondAuditSign":0,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":null,"rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":[],"imageUrls":null,"total":null,"submitTimeStr":"2023-12-12 07:03:22","updateTimeStr":"2023-12-12 07:03:21","auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":"","newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":0,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":1,"groupChangeSign":0,"custModify":0,"demandSubCode":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":0,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":15,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":"叶二娘","receiverPhoneNote":"13223233434","receiverAddressNote":"湖北省仙桃市嵩山少林室","flag":null,"sourceStr":null,"addressNoNote":0,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":"0","detail":{"ypTotalPrice":"0","payableAmount":"0.0000","isChange":false,"rebateAmount":"0.00","returnPrice":"0","rebateChangePrice":"0","changePrice":"0","activityChangePrice":"0","ypPromotionTotal":"0","nowAmount":"0"},"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":0,"snSgin":0,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":2,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":"ac17023358014592533","forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":8,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":1,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":"0","confirmReceiptTime":null,"afterSaleDays":30,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":[{"receiverNote":"叶二娘","receiverPhoneNote":"13223233434","receiverAddressNote":"湖北省仙桃市嵩山少林室"}],"splitOrMerge":0,"spitOrderSign":1,"productAmountWholeLine":null,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"proofURLList":[],"updateSgin":0,"soList":[]} +#预期结果 +checkDict23: {"orderStatus":201} +checkDict23_1: {"success": False, "code": "demand", "message": "该订单已提交过,请稍后操作"} + +#测试场景二十四:解除订单占用功能验证 +"url24": "/order/public/removeDemandTakeUp" +"payload24": {"demandId":"%s","type":1} +#预期结果 +checkDict24: {"success":true,"code":"200","message":"OK","data":"0"} + + +#测试场景二十五:订单修改功能验证 +"url25": "/order/public/orderModify" +"payload25": {"datas":[{"demandId":40174,"demandParentId":38157,"demandParentCode":"s2312110700012","demandCode":"17022493988974979","customerId":69,"customerName":"国药集团云南医疗器械有限公司","customerCode":1127254,"loginName":"BJ0621","realName":"郭红声","addressNumber":null,"mobile":"15887223281","productName":null,"productCode":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","paymentType":0,"receiveBankName":"建设银行北京支行19","receiveBankAccount":"62231478523685414","paymentAmount":"45.00","productAmount":45,"payableAmount":"45.00","refundAmount":0,"cancelAmount":0,"discountAmount":0,"orderStatus":102,"refundStatus":null,"receiverName":"郭红声","receiverContact":"15887223281","receiverAddress":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":0,"pushJdeStatus":null,"createTime":"2023-12-11 07:03:18","updateTime":"2023-12-11 07:03:18","submitTime":"2023-12-11 07:03:19","pushJdeTime":null,"successTime":null,"auditStatus":0,"deleteSign":0,"firstOrderFlag":0,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":200989,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":"17022493988974979","demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","customerCode":1127254,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":822,"productName":"医用防护口罩","productCode":"13295500","productNature":null,"brandName":null,"optionStr":"密合型拱形(13.5cm×12cm)","imageUrl":null,"lineNumber":null,"price":20,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"20.00","measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"YYPS20210031","manufacturer":"北京中北博健科贸有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":20,"promotionPrice":0,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":null,"lineCodeDelete":1,"sdOutStorage":0,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":"13295500","activityCarDataVoList":null,"productReplaceLogs":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"replaceSgin":0,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":"1","ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":1,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":null,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":null,"taxRate":null,"demandSplitSign":null,"hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":0,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"orderType":null},{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":200990,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":"17022493988974979","demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","customerCode":1127254,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":160,"productName":"一次性使用手术衣","productCode":"10980792","productNature":null,"brandName":null,"optionStr":"普通型 M120cm×140cm","imageUrl":null,"lineNumber":null,"price":25,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"25.00","measuringUnit":"件","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"稳健医疗用品股份有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":25,"promotionPrice":0,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":null,"lineCodeDelete":1,"sdOutStorage":0,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":"10980792","activityCarDataVoList":null,"productReplaceLogs":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"replaceSgin":0,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":"1","ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":2,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":null,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":null,"taxRate":null,"demandSplitSign":null,"hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":0,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"orderType":null}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":45,"discountAmountWholeLine":null,"payableAmountWholeLine":null,"discountRate":100,"singleRebateAmount":null,"isRebateEdit":0,"payCertUrl":null,"rebateAmount":0,"demandCance":0,"soAdd":0,"soCance":0,"orderReturn":0,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":0,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":1,"orderSource":1,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":null,"pageStart":1,"pageSize":5,"changeSgin":0,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":0,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":null,"rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":[],"imageUrls":null,"total":null,"submitTimeStr":"2023-12-11 07:03:19","updateTimeStr":"2023-12-11 07:03:18","auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":0,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":0,"groupChangeSign":0,"custModify":0,"demandSubCode":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":0,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":"郭红声","receiverPhoneNote":"15887223281","receiverAddressNote":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","flag":null,"sourceStr":null,"addressNoNote":93465,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":0,"snSgin":0,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":"ac17022493986807758","forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":8,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":1,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":"0","confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":0,"spitOrderSign":1,"productAmountWholeLine":null,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"totalPriceNum":0,"settementQuantity":2,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"selecteAddresId":3278}]} +#预期结果 +checkDict25: {"success":true,"code":"200","message":"修改成功"} + +#测试场景二十六:需求单商品返利明细获取验证 +"url26": "/order/public/demandRebateSku/demandCode" +"payload26": {"demandCode":"%s"} +#预期结果 +checkDict26: {"demandCode":"%s"} + + +#测试场景二十七:获取需求列表明细_支付页面 +"url27": "/order/mall/listDemand" +"payload27": {"demandParentCode":"%s"} +#预期结果 +checkDict27: {"demandParentCode":"%s"} +# 获取待支付需求单报文 +"payload27_1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":4,"shipmentType":null,"pageStart":1,"pageSize":10} + + +#测试场景二十八:获取订单支付金额验证 +"url28": "/order/public/allPayMoeny" +"payload28": {"code":"%s"} +#预期结果 +checkDict28: {"customerCharge":"%s"} + + +#测试场景二十九:获取支付信息验证_支付页面 +"url29": "/order/public/toPayList" +"payload29": {"code":"%s"} +#预期结果 +checkDict29: {"customerCharge":"%s"} + +#测试场景三十:根据用户查询公司信息验证 +"url30": "/user/public/queryCompanyByUser" +"payload30": {} +#预期结果 +checkDict30: {"success":true,"code":"200","message":"OK"} + +#测试场景三十一:根据需求id获取公司id验证 +"url31": "/order/mall/getCompanyIdByDemandId" +"payload31": {"demandId":"%s"} +#预期结果 +checkDict31: {"success":true,"code":"200","message":"OK"} + +#测试场景三十二:根据需求id获取公司id验证 +"url32": "/order/mall/getCompanyIdByDemandId" +"payload32": {"demandId":"%s"} +#预期结果 +checkDict32: {"success":true,"code":"200","message":"OK"} + +#测试场景三十三:查询线下支付账号信息验证 +"url33": "/cms/mall/account/queryPageByCompanyId" +"payload33": {"pageSize":9,"pageNumber":1,"companyId":"7","sort":"0200002919200155850"} +#预期结果 +checkDict33: {"total":"%s"} + + +#测试场景三十四:上传支付凭证功能验证 +"url34": "/product/public/fileUpload" +"payload34": {} +#预期结果 +checkDict34: {"success":true,"code":"200","message":"OK"} + + +#测试场景三十五:提交订单支付证明功能验证 +"url35": "/order/public/uploadOrderProof" +"payload35": {"demandParentCode":"s2309011600016","proofRemark":"","proofURL":"%s","receiveBankAccount":"0200002919200155850","receiveBankName":"国药集团联合医疗器械有限公司"} +#预期结果 +checkDict35: {"success":true,"code":"200","message":"OK","data":1} + +#测试场景三十六:验证订单是否已支付 +"url36": "/order/public/payStatus" +"payload36": {"orderNo":"%s"} +#预期结果 +checkDict36_1: {"success":true,"code":"200","message":"OK","data":1} +checkDict36: {"success":true,"code":"200","message":"OK","data":0} + +#测试场景三十七:验证订单是否被占用 +"url37": "/order/public/isDemandTakeUp" +"payload37": {"demandId":"%s","type":2} +#预期结果 +checkDict37: {"success":true,"code":"200","message":"OK","data":0} + +#测试场景三十八:获取草稿订单详情 +"url38": "/product/public/draft/detail" +"payload38": {"id":"%s"} +#预期结果 +checkDict38: {"id":"%s"} +# 获取草稿订单报文 +"payload38_1": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":8,"shipmentType":null,"pageStart":1,"pageSize":10} + +#测试场景三十九:商品下架拦截验证_订单修改 +"url39": "/order/public/orderModify" +"payload39": {"datas":[{"demandId":40218,"demandParentId":38201,"demandParentCode":"s2312120700029","demandCode":"17023358707481373","customerId":69,"customerName":"国药集团云南医疗器械有限公司","customerCode":1127254,"loginName":"BJ0621","realName":"郭红声","addressNumber":93465,"mobile":"15887223281","productName":null,"productCode":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","paymentType":0,"receiveBankName":"国药集团北京医疗器械有限公司","receiveBankAccount":"110927396010401","paymentAmount":"230.00","productAmount":230,"payableAmount":"230.00","refundAmount":0,"cancelAmount":0,"discountAmount":0,"orderStatus":102,"refundStatus":null,"receiverName":"郭红声","receiverContact":"15887223281","receiverAddress":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":0,"pushJdeStatus":null,"createTime":"2023-12-12 07:04:30","updateTime":"2023-12-12 07:04:30","submitTime":"2023-12-12 07:04:31","pushJdeTime":null,"successTime":null,"auditStatus":0,"deleteSign":0,"firstOrderFlag":0,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":201126,"demandId":null,"distributionId":null,"companyCode":"00103","demandCode":"17023358707481373","demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":"国药集团北京医疗器械有限公司","sellerCompanyCode":"00103","customerCode":1127254,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":314,"productName":"红外测温仪","productCode":"12043728","productNature":null,"brandName":null,"optionStr":"YHW-3","imageUrl":null,"lineNumber":null,"price":230,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"230.00","measuringUnit":"支","auxiliaryMeasuringUnit":null,"procurementMeasuringUnit":null,"pricingMeasuringUnit":null,"materialCode":"","manufacturer":"江苏鱼跃医用仪器有限公司","produceRegisterNum":null,"riskRank":null,"productClassify":null,"createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":230,"promotionPrice":0,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":null,"lineCodeDelete":1,"sdOutStorage":0,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":null,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":"12043728","activityCarDataVoList":null,"productReplaceLogs":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"replaceSgin":0,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":"1","ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":1,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":null,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":null,"taxRate":null,"demandSplitSign":null,"hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":1,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":0,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"orderType":null}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":230,"discountAmountWholeLine":null,"payableAmountWholeLine":null,"discountRate":100,"singleRebateAmount":null,"isRebateEdit":0,"payCertUrl":null,"rebateAmount":0,"demandCance":0,"soAdd":0,"soCance":0,"orderReturn":0,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":0,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":1,"orderSource":1,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":null,"pageStart":1,"pageSize":5,"changeSgin":0,"yapei":2,"companyId":3,"preemptConfig":null,"productSpec":null,"secondAuditSign":0,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":null,"rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":[],"imageUrls":null,"total":null,"submitTimeStr":"2023-12-12 07:04:31","updateTimeStr":"2023-12-12 07:04:30","auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":0,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":0,"groupChangeSign":0,"custModify":0,"demandSubCode":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":0,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":"郭红声","receiverPhoneNote":"15887223281","receiverAddressNote":"云南省昆明市高新技术开发区产业基地B1-02-01地块物流园二期项目1号库M1-2-1,M1-2-2号","flag":null,"sourceStr":null,"addressNoNote":93465,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":0,"snSgin":0,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":"ac17023358705126089","forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":8,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":1,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":"0","confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":0,"spitOrderSign":1,"productAmountWholeLine":null,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"totalPriceNum":0,"settementQuantity":1,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"selecteAddresId":3278}]} +#预期结果 +checkDict39: {"errMessage": "红外测温仪商品已被下架,请返回重新提交。"} + + + + + + + + + + + + + + + diff --git a/data/cmdc_files/test_file.jpg b/data/cmdc_files/test_file.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c3ed9fcb7eca5b62ee4132c2e8947750fbb9ebec Binary files /dev/null and b/data/cmdc_files/test_file.jpg differ diff --git a/data/cmdc_fresenius_group/data b/data/cmdc_fresenius_group/data index 9fb9d2928e83c5380d495240fa5ca2119ea666c3..9209df9b054573a3b87b73a901d13dfaa5aa400a 100644 --- a/data/cmdc_fresenius_group/data +++ b/data/cmdc_fresenius_group/data @@ -130,7 +130,7 @@ checkDict15: {"success":false,"code":"FRESENIUS_GROUP_ERROR","message":"组成 #预期结果 checkDict16: {"success":false,"code":"FRESENIUS_GROUP_ERROR","message":"组成一个套包内商品需满足套包在同一产品线下","data":null,"freshToken":null} "other_product": {"productCode":"10057881","productName":"造口护理用品附件","manufacturer":"Coloplast A/S","manufacturerCode":"7000118","optionStr":"12070","storageCondition":"999","activityUnitAmount":null,"price":15.2,"measuringUnit":"个","materialCode":"","description":"","quantity":"1","manufacturerProductNo":null,"manufacturerProductDesc":null,"produceRegisterNum":"国械注进20152664141","productLineName":"康乐保","productLineCode":"3111"} - +checkDict16_1: {"success":true,"code":"200","message":"OK","data":true} #测试场景十七:套包更新验证 diff --git a/data/cmdc_order_handle/data b/data/cmdc_order_handle/data new file mode 100644 index 0000000000000000000000000000000000000000..61baeef989cb5f58f743b173b8b74bb2e5a6c172 --- /dev/null +++ b/data/cmdc_order_handle/data @@ -0,0 +1,209 @@ +# 多采商城登录信息 +"username": "BJ0621" +"password": "Aa123456" + +#后台运营管理系统登录信息(子站点上海医疗器械有限公司) +"username1": "Admin00111" +"password1": "Aa123456" + + +#后台管理系统headers +json_headers: { + "Content-Type": "application/json", + "Cmdc_access_token": "%s" +} + +#文件上传headers +json_headers_file: { + "Cmdc_access_token": "%s" +} + +#多采商城headers +json_headers1: { + "Cmdc_access_token": "%s", + "Sourcetype": "mall" +} + +#测试场景一:查询jde配置接口验证 +#站点查询接口信息 +"url_query_website": "/cms/public/website/queryAll" +"payload_query_website": {} +#查询jde配置接口信息 +"url_jde_config": "/user/public/queryJdeConfigByCode" +"payload_jde_config": {"companyId":"%s"} +#预期结果 +checkDict_jde_config: {"success":true,"code":"200","message":"OK"} + + +#测试场景一:查询商品信息接口验证 +#查询已上架商品信息 +"url_product": "/product/mall/queryProductInfoByPage" +"payload_product": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":8869,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null,"status":101} +#查询商品信息接口验证 +"url1": "/product/mall/queryProductInfoById" +"payload1": {"productId":"%s"} +#预期结果 +checkDict1: {"productId":"%s"} + +#测试场景二:验证查询已下架商品 +#查询已下架商品信息 +"url2": "/product/mall/queryProductInfoByPage" +"payload2": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":null,"isExistImage":null,"jdeStatus":null,"isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":482,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":null,"startTime":null,"endTime":null,"status":102} + +#测试场景三:验证查询控销商品 +#查询控销商品信息 +"url3": "/product/queryControlSalesProduct" +"payload3": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":"1","isExistImage":null,"jdeStatus":"P","isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":411,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":null,"startTime":null,"endTime":null} + +#测试场景四:验证查询已失效商品 +#查询已上架商品信息 +"url4": "/product/mall/queryProductByJdeStatus" +"payload4": {"isFbList":0,"filialeCode":null,"productName":null,"productCode":null,"specifications":null,"materialCode":null,"manufacturer":null,"lineName":null,"riskRank":null,"isRelease":null,"isExistImage":null,"jdeStatus":null,"isGift":null,"description":null,"tbsj":[],"pageNum":1,"pageSize":8,"total":3440,"firstQuery":true,"flag":true,"preInvalidStatus":null,"isControlSales":"0","startTime":null,"endTime":null} + +#测试场景五:验证下单时不传地址信息 +#下单接口信息 +"url5": "/order/public/saveAllDemandOrder" +"payload5": {"国药集团联合医疗器械有限公司":{"datas":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1068927,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"40000.00","productAmount":40000,"payableAmount":20000,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9038,"productName":"脉搏碳氧血氧测量仪","productCode":"10416500","productNature":"01","brandName":null,"optionStr":"Rad-57","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/8453e463-ac86-4e1d-bbe8-9dfd6b8e020f.png","lineNumber":null,"price":20000,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":"2","sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"40000.00","measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9216","manufacturer":"迈心诺公司","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":40000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-57","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":7,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"fresenuis":false,"selectGiftArr":[],"selectZeroGiftObj":{"mainProductList":[],"giftProductList":[]}}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":20000,"discountAmountWholeLine":0,"payableAmountWholeLine":20000,"discountRate":100,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"Rad-57","pageStart":1,"pageSize":5,"changeSgin":null,"yapei":2,"companyId":7,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":null,"groupChangeSign":null,"custModify":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":20000,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"settementQuantity":2,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"lastSaveDemanadItems":null,"totalPriceNum":0}],"addressConfig":2,"openPreTaxAmount":1,"notice":"站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示站点级提示","remark":null,"receiverPhoneNote":"13888715120","promotionOrRebate":1,"promotionType":1,"productLineCodes":[""],"addressIsCommon":true,"showChangePromotionOrRebate":false,"couponTotalAmount":0,"activityTotalAmount":0,"totalQuantity":2,"totalPrice":40000,"discountAmount":0,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9038,"productName":"脉搏碳氧血氧测量仪","productCode":"10416500","productNature":"01","brandName":null,"optionStr":"Rad-57","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/8453e463-ac86-4e1d-bbe8-9dfd6b8e020f.png","lineNumber":null,"price":20000,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":"2","sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"40000.00","measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9216","manufacturer":"迈心诺公司","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":40000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-57","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":7,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"fresenuis":false,"selectGiftArr":[],"selectZeroGiftObj":{"mainProductList":[],"giftProductList":[]}}],"productPrice":40000,"fileList":[],"showInfo":false,"pageStart":1,"pageSize":5,"receiveInfo":[],"defaultBankInfo":{"accountId":5,"companyId":7,"companyName":"国药集团联合医疗器械有限公司","registeredAddress":"北京市顺义区金航中路3号院天竺万科中心1号楼3单元2层201(北京天竺综合保税区)","bank":"中国工商银行股份有限公司北京新街口支行","accountName":"国药集团联合医疗器械有限公司","accountNumber":"0200002919200155850","disableSign":0,"deleteSign":0,"createTime":"2021-06-03 09:46:49","updateTime":"2021-06-03 09:46:49","createBy":114378,"realName":"国药集团联合医疗器械有限公司admin"},"addressList":[],"selecteAddresId":16464,"receiverNote":null,"receiverAddressNote":null,"addressNoNote":105378,"province":0,"city":0,"cityList":[],"area":0,"areaList":[],"paymentAmount":"40000.0000","taxRate":null,"draftDemandId":null,"demands":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1068927,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"40000.00","productAmount":40000,"payableAmount":20000,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00102","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"","productLineName":"","propertyStr":null,"storageType":"999","suppDist":null,"productId":9038,"productName":"脉搏碳氧血氧测量仪","productCode":"10416500","productNature":"01","brandName":null,"optionStr":"Rad-57","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/16/8453e463-ac86-4e1d-bbe8-9dfd6b8e020f.png","lineNumber":null,"price":20000,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":null,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":"2","sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":"40000.00","measuringUnit":"台","auxiliaryMeasuringUnit":"PF","procurementMeasuringUnit":"PF","pricingMeasuringUnit":"PF","materialCode":"9216","manufacturer":"迈心诺公司","produceRegisterNum":null,"riskRank":"002","productClassify":"6821-2","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":40000,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"Rad-57","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":7,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":false,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":1,"userBalance":0,"fresenuis":false,"selectGiftArr":[],"selectZeroGiftObj":{"mainProductList":[],"giftProductList":[]},"orderType":null}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":null,"rebateAmountList":null,"productLineCode":"","productLineName":"","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":0,"paymentAmountWholeLine":20000,"discountAmountWholeLine":0,"payableAmountWholeLine":20000,"discountRate":100,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":null,"liquidCode":null,"shipmentTypeStr":null,"specifications":"Rad-57","pageStart":1,"pageSize":5,"changeSgin":null,"yapei":2,"companyId":7,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"0","rebateControlSign":0,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":null,"countFormula":null,"countNumber":null,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":null,"singleRebateSign":null,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":null,"groupChangeSign":null,"custModify":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":20000,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"settementQuantity":2,"userBalancePrice":0,"isEdit":true,"discountRateOne":100,"_rebateType":false,"lastSaveDemanadItems":null,"totalPriceNum":0,"pSign":0}],"orderStatus":102,"userReceiveId":null,"userReceiveId2":null,"productAmount":40000,"paymentType":0,"accountId":5,"version":null,"receiveBankName":"国药集团联合医疗器械有限公司","receiveBankAccount":"0200002919200155850","addressNumber":105378,"receiverName":"","receiverContact":"","receiverAddress":"","buyerCartIds":[""],"sellerCompanyCode":"00102","companyId":7}} +#预期结果 +checkDict5: {"success":false,"code":"3021","message":"国药集团联合医疗器械有限公司收件人不能为空","data":null,"freshToken":null} +checkDict5_1: {"success":false,"code":"30452","message":"用户证照校验错误"} + +#测试场景六:附件上传接口验证_结算页面 +#接口信息 +"url6": "/order/mall/demandFileUpload" +#预期结果 +checkDict6: {"success":true,"code":"200","message":"OK"} + + +#测试场景七:获取收货地址列表_结算页面 +#接口信息 +"url7": "/user/mall/getAddressList" +"payload7": {"companyId":7,"pageStart":null,"pageSize":null,"userId":69,"productLineCode":"","defaultMobile":""} +#预期结果 +checkDict7: {"success":true,"code":"200","message":"OK"} + + +#测试场景八:查询条件验证_收货地址列表 +#接口信息 +"url8": "/user/mall/getAddressList" +"payload8": {"companyId":7,"pageStart":null,"pageSize":null,"userId":69,"productLineCode":"","defaultMobile":"","searchValue":"%s"} +#预期结果 +checkDict8_1: {"receiverName":"%s"} +checkDict8_2: {"address":"%s"} +checkDict8_3: {"mobile":"%s"} + + +#测试场景九:通过商品编码查询商品验证_结算页面 +#接口信息 +"url9": "/product/public/listQuickOrderProduct" +"payload9": {"type":1,"companyCode":"00102","userNo":"1068927","productCode":"13977315"} +#预期结果 +checkDict9: {"productCode":"13977315"} + +#测试场景十:规格型号模糊查询验证_结算页面 +#接口信息 +"url10": "/product/public/getMaterialCodeList" +"payload10": {"allMaterialSign":2,"companyCode":"00102","userNo":"1068927","materialCodeInput":"%s"} +#预期结果 +checkDict10: {"data":"%s"} + + +#测试场景十一:通过规格型号查询商品验证_结算页面 +#接口信息 +"url11": "/product/public/listQuickOrderProduct" +"payload11": {"type":1,"companyCode":"00102","userNo":"1068927","specificationsExact":"%s"} +#预期结果 +checkDict11: {"specifications":"%s"} + +#测试场景十二:物料编码模糊查询验证_结算页面 +#接口信息 +"url12": "/product/public/getMaterialCodeList" +"payload12": {"allMaterialSign":1,"companyCode":"00102","userNo":"1068927","materialCodeInput":"%s"} +#预期结果 +checkDict12: {"data":"%s"} + +#测试场景十三:通过物料编码查询商品验证_结算页面 +#接口信息 +"url13": "/product/public/listQuickOrderProduct" +"payload13": {"type":1,"companyCode":"00102","userNo":"1068927","materialCodeExact":"%s"} +#预期结果 +checkDict13: {"materialCode":"%s"} + + +#测试场景十四:通过Excel复制添加商品功能验证_结算页面 +#接口信息 +"url14": "/product/public/listQuickOrderProductExcel" +"payload14": {"queryList":[{"productCode":"%s","materialCode":"%s","quantity":"%s"}],"productLineCode":"","companyCode":"00102","userNo":1068927} +#预期结果 +checkDict14: {"productCode":"%s"} + +#测试场景十五:商品清单获取验证_结算页面 +#接口信息 +"url15": "/product/public/listQuickOrderProduct" +"payload15": {"productCode":null,"productName":null,"materialCode":null,"specifications":null,"productLineName":null,"pageSize":null,"pageNum":null,"total":null,"productLineCode":null,"companyCode":"00102","userNo":"1068927"} +#预期结果 +checkDict15: {"success":true,"code":"200","message":"OK"} + +#测试场景十六:查询条件验证_商品清单_结算页面 +#接口信息 +"url16": "/product/public/listQuickOrderProduct" +"payload16": {"productCode":"%s","productName":"%s","materialCode":"%s","specifications":"%s","productLineName":null,"pageSize":null,"pageNum":null,"total":null,"productLineCode":null,"companyCode":"00102","userNo":"1068927"} +#预期结果 +checkDict16: {"productCode":"%s"} + +#测试场景十七:查询用户地址接口验证 +#接口信息 +"url17": "/user/mall/queryUserAddress" +"payload17": {"companyId":7} +#预期结果 +checkDict17: {"success":true,"code":"200","message":"OK"} + + +#测试场景十八:订单保存接口验证_再来一单 +#多采商城需求单列表接口信息 +"url_demand_list": "/order/public/ownListDemand" +"payload_demand_list": {"sellerCompanyCodes":[],"materialCode":"","productCode":"","productInfoValue":"","manufacturerList":null,"orderNum":"%s","paymentType":null,"preferenceType":null,"changeSign":null,"mainOrderStatus":null,"shipmentType":null,"pageStart":null,"pageSize":null} + +#接口信息 +"url18": "/order/public/saveSameOrder" +"payload18": {"demandId":"%s"} +#预期结果 +checkDict18: {"success":true,"code":"200","message":"ok"} + + +#测试场景十九:商品下架拦截验证_下单 +#接口信息 +"url19": "/order/public/saveAllDemandOrder" +"payload19": {"国药集团上海医疗器械有限公司":{"datas":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1126384,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"48.2500","productAmount":48.25,"payableAmount":48.25,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00111","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"3111","productLineName":"康乐保","propertyStr":null,"storageType":"999","suppDist":null,"productId":7991,"productName":"水胶体油纱","productCode":"10056338","productNature":"01","brandName":null,"optionStr":"3915","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/13/be146b0a-4998-4e03-b250-17ed8d846f8b.jpg","lineNumber":null,"price":48.25,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":0,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":48.25,"measuringUnit":"个","auxiliaryMeasuringUnit":"EA","procurementMeasuringUnit":"EA","pricingMeasuringUnit":"EA","materialCode":"","manufacturer":"Coloplast A/S","produceRegisterNum":null,"riskRank":"003","productClassify":"6864","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":48.25,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"3915","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":6,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":true,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":1852.1,"useLimitEnd":1,"maxuseLimit":48.25}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":[{"rebateoperaskuid":null,"filialecode":"00111","rebateid":111,"customercode":null,"transactionamount":null,"transactiontype":null,"rebateStartTime":null,"rebateValidity":null,"balance":null,"deletesign":null,"note":null,"createtime":null,"updatetime":null,"demandId":null,"demandCode":null,"relevanceName":null,"rebateName":null,"customerCompanyName":null,"lineCodeDelete":null,"rebateTripId":null,"monNum":null,"relevanceCode":"3111","pageSize":null,"pageNum":null,"startTime":null,"endTime":null,"userId":null,"customerCodeList":null,"filialeCodeList":null,"companyName":null,"reSign":null,"demandParentCode":null,"distributionCode":null,"frontNote":null,"backNote":null,"cancelId":null,"effectivetype":null,"validityperiodSign":null,"soCode":null,"rebatename":"康乐保20230619","useLimitStart":0,"useLimitEnd":1,"istax":1,"taxround":0,"isdisposable":0,"productCode":null,"isOperated":null,"userPrice":null,"rebateFalg":null}],"rebateAmountList":null,"productLineCode":"3111","productLineName":"康乐保","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":1,"paymentAmountWholeLine":48.25,"discountAmountWholeLine":0,"payableAmountWholeLine":48.25,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":1852.1,"liquidCode":null,"shipmentTypeStr":null,"specifications":"3915","pageStart":1,"pageSize":5,"changeSgin":null,"yapei":2,"companyId":6,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"1","rebateControlSign":1,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":1,"countFormula":1,"countNumber":0,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":1,"singleRebateSign":0,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":null,"groupChangeSign":null,"custModify":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":48.25,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"settementQuantity":1,"userBalancePrice":1852.1,"isEdit":true,"discountRateOne":100,"_rebateType":true}],"addressConfig":2,"openPreTaxAmount":0,"remark":null,"receiverPhoneNote":"/","promotionOrRebate":1,"promotionType":1,"productLineCodes":["3111"],"addressIsCommon":true,"showChangePromotionOrRebate":false,"couponTotalAmount":0,"activityTotalAmount":0,"totalQuantity":1,"totalPrice":48.25,"discountAmount":0,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00111","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"3111","productLineName":"康乐保","propertyStr":null,"storageType":"999","suppDist":null,"productId":7991,"productName":"水胶体油纱","productCode":"10056338","productNature":"01","brandName":null,"optionStr":"3915","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/13/be146b0a-4998-4e03-b250-17ed8d846f8b.jpg","lineNumber":null,"price":48.25,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":0,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":48.25,"measuringUnit":"个","auxiliaryMeasuringUnit":"EA","procurementMeasuringUnit":"EA","pricingMeasuringUnit":"EA","materialCode":"","manufacturer":"Coloplast A/S","produceRegisterNum":null,"riskRank":"003","productClassify":"6864","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":48.25,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"3915","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":6,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":true,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":1852.1,"useLimitEnd":1,"maxuseLimit":48.25}],"productPrice":"48.2500","fileList":[],"showInfo":false,"pageStart":1,"pageSize":5,"defaultBankInfo":{"accountId":3,"companyId":6,"companyName":"国药集团上海医疗器械有限公司","registeredAddress":"上海市宝山区江杨南路880号厂房7幢V008","bank":"中国光大银行上海彭浦支行","accountName":"国药集团上海医疗器械有限公司","accountNumber":"36830188000041806","disableSign":0,"deleteSign":0,"createTime":"2021-05-06 10:46:15","updateTime":"2021-05-06 10:46:15","createBy":2795,"realName":"国药集团上海医疗器械有限公司admin"},"receiveInfo":[{"addressId":27568,"addressNo":82429,"addressName":"昆明高新技术产业开发区马金铺高登路1676号水科技园标准工业厂房1号办公楼4层405室,2号工业厂房一层101、102、103、104-2室","provinceCode":null,"userId":null,"companyId":null,"receiverName":"/","address":"","isDefault":1,"type":null,"postcode":null,"mobile":"/","updateDate":null,"updateTime":null,"flag":null,"deleteSign":null,"province":null,"city":null,"area":null,"dateTime":null,"provinceStr":null,"cityStr":null,"areaStr":null,"isJde":0}],"addressList":[{"addressId":27568,"addressNo":82429,"addressName":null,"provinceCode":null,"userId":null,"companyId":6,"receiverName":"/","address":"昆明高新技术产业开发区马金铺高登路1676号水科技园标准工业厂房1号办公楼4层405室,2号工业厂房一层101、102、103、104-2室","isDefault":1,"type":3,"postcode":null,"mobile":"/","updateDate":120035,"updateTime":93623,"flag":null,"deleteSign":null,"province":0,"city":0,"area":0,"dateTime":null,"provinceStr":"","cityStr":"","areaStr":"","isJde":0,"cityList":[],"areaList":[]}],"selecteAddresId":27568,"receiverNote":"/","receiverAddressNote":"昆明高新技术产业开发区马金铺高登路1676号水科技园标准工业厂房1号办公楼4层405室,2号工业厂房一层101、102、103、104-2室","addressNoNote":82429,"province":0,"city":0,"cityList":[],"area":0,"areaList":[],"paymentAmount":"48.2500","taxRate":null,"draftDemandId":null,"demands":[{"demandId":null,"demandParentId":null,"demandParentCode":null,"demandCode":null,"customerId":null,"customerName":null,"customerCode":1126384,"loginName":null,"realName":null,"addressNumber":null,"mobile":null,"productName":null,"productCode":null,"sellerCompanyName":null,"sellerCompanyCode":null,"paymentType":null,"receiveBankName":null,"receiveBankAccount":null,"paymentAmount":"48.2500","productAmount":48.25,"payableAmount":48.25,"refundAmount":null,"cancelAmount":null,"discountAmount":0,"orderStatus":null,"refundStatus":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"remark":null,"revokedReason":null,"auditById":null,"auditByName":null,"auditTime":null,"auditRemark":null,"flhsStatus":null,"pushJdeStatus":null,"createTime":null,"updateTime":null,"submitTime":null,"pushJdeTime":null,"successTime":null,"auditStatus":null,"deleteSign":null,"firstOrderFlag":null,"demandItems":[{"maxProductNum":999999,"minProductNum":1,"addMinProductNum":1,"minProductNumSign":false,"isMultiple":false,"quantityTip":"","demandSkuId":null,"demandId":null,"distributionId":null,"companyCode":"00111","demandCode":null,"demandParentId":null,"sellerCompanyId":null,"sellerCompanyName":null,"sellerCompanyCode":null,"customerCode":null,"productLineCode":"3111","productLineName":"康乐保","propertyStr":null,"storageType":"999","suppDist":null,"productId":7991,"productName":"水胶体油纱","productCode":"10056338","productNature":"01","brandName":null,"optionStr":"3915","imageUrl":"https://pro-cmdc.oss-cn-beijing.aliyuncs.com/productFile/2021/04/13/be146b0a-4998-4e03-b250-17ed8d846f8b.jpg","lineNumber":null,"price":48.25,"rebateId":null,"rebateDetail":null,"useMaxLimit":null,"useLimitStart":0,"useBalance":null,"originalPrice":null,"biddingDiscountTax":null,"salesDiscountTax":null,"quantity":1,"sumQuantity":null,"sendQuantity":null,"lackQuantity":null,"cancelQuantity":null,"cancelAmount":null,"refundQuantity":null,"refundAmount":null,"discountQuantity":null,"discountAmount":null,"subtotal":48.25,"measuringUnit":"个","auxiliaryMeasuringUnit":"EA","procurementMeasuringUnit":"EA","pricingMeasuringUnit":"EA","materialCode":"","manufacturer":"Coloplast A/S","produceRegisterNum":null,"riskRank":"003","productClassify":"6864","createTime":null,"updateTime":null,"deleteSign":null,"calCancelFlag":null,"refundFlag":null,"discountRate":1,"realPay":48.25,"promotionPrice":null,"promotionTotalPrice":0,"demandParentCode":null,"regionId":null,"regionName":null,"spitSign":null,"activityAmount":0,"couponAmount":0,"activityUnitAmount":0,"couponUnitAmount":null,"activityBasicId":null,"couponSgin":null,"couponSgin2":null,"returnQuantity":null,"returnAmount":null,"customerId":null,"prescription":null,"specifications":"3915","lineCodeDelete":null,"sdOutStorage":null,"licenseNo":null,"demandCodes":null,"areaName":null,"agreementPriceId":0,"offerPrice":null,"orderMark":null,"totalPrice":null,"productLimitBuyList":null,"giftSign":0,"giftProductCode":null,"activityCarDataVoList":null,"orderSource":null,"receiverName":null,"receiverContact":null,"receiverAddress":null,"rebateTripId":null,"allSign":null,"salesReturn":null,"nowAmount":null,"taxSign":0,"plusMinuKey":null,"rebateRule":null,"areaPrice":null,"lockType":null,"estimatedDeliveryDate":null,"licenseInfoFeignDtos":null,"receivedQty":null,"rebateSign":null,"ippMiniPurchaseNum":null,"ippMultipleSign":null,"ippPurchaseMultiple":null,"ippStatus":null,"lineNumberOrg":null,"changeSgin":null,"addSgin":null,"ptbfa1":null,"ptbfa2":null,"ptbfa3":null,"ptbfa4":null,"ptbfa5":null,"yapeiPriceId":null,"ypLinePromotion":null,"yapeiPrice":null,"companyId":6,"buyerCartId":null,"userReceiveIdx":null,"userReceiveIdx2":null,"limitNum":null,"productLimitBuyId":null,"alreadyBuyNum":null,"limitBuySign":0,"proposeNum":null,"takeEffectRange":null,"takeEffectTime":null,"endTime1":null,"groupId":null,"fsGroupId":null,"proposalQuantity":null,"proposalSign":0,"manufacturerUserNo":null,"manufacturerUserDesc":null,"manufacturerProductNo":null,"manufacturerProductDesc":null,"manufacturerUserId":null,"manufacturerProductId":null,"busProductCode":null,"paidTime":null,"customerName":null,"paymentAmount":null,"specQuantity":null,"disQuantity":null,"fulfilledQuantity":null,"fulCancelQuantity":null,"couponId":null,"couponId2":null,"limitS":null,"starts":null,"ends":null,"userId":null,"productTax":"","taxRate":0.13,"demandSplitSign":"1","hospitalHopeDate":null,"uniqueKey":null,"productType":null,"activityRuleId":null,"allowanceBeginTime":null,"allowanceEndTime":null,"sign":null,"differenceActivityUserId":null,"groupNumber":null,"groupName":null,"skuGroup":null,"subList":null,"dataJson":null,"skuMergeSign":null,"freseniusPriceId":null,"quantityAndGroupAll":null,"booleaTime":null,"spitSgin":0,"groupSpitSign":0,"sort":0,"circleArea":null,"purchaseEntryId":null,"mustInstallDate":false,"installedDate":null,"installedDateStr":null,"demandLines":null,"subLineNumber":null,"demandSubCode":null,"propertyName":null,"propertyVal":null,"propertyNote":null,"sendManualSign":0,"activityType":0,"giftSettlementMethod":null,"giftInitQuantity":null,"packageCode":null,"giftGroupQuantity":null,"siteCompanyCode":null,"hospitalOrderType":null,"isCollectionAllocation":null,"recDifferenceQty":null,"orderStatus":null,"distributionType":null,"groupCode":null,"groupProductType":null,"pSign":0,"backSign":0,"description":"","stockNumber":null,"priceChange":false,"rebate":true,"giftList":[],"purchaseZeroProductList":[],"prePromotionPrice":null,"prepromotionTotalPrice":0,"preDiscountRate":null,"userBalance":1852.1,"useLimitEnd":1,"maxuseLimit":48.25,"orderType":null}],"expireDemandSkus":null,"demandSubItems":null,"rebateDetail":[{"rebateoperaskuid":null,"filialecode":"00111","rebateid":111,"customercode":null,"transactionamount":null,"transactiontype":null,"rebateStartTime":null,"rebateValidity":null,"balance":null,"deletesign":null,"note":null,"createtime":null,"updatetime":null,"demandId":null,"demandCode":null,"relevanceName":null,"rebateName":null,"customerCompanyName":null,"lineCodeDelete":null,"rebateTripId":null,"monNum":null,"relevanceCode":"3111","pageSize":null,"pageNum":null,"startTime":null,"endTime":null,"userId":null,"customerCodeList":null,"filialeCodeList":null,"companyName":null,"reSign":null,"demandParentCode":null,"distributionCode":null,"frontNote":null,"backNote":null,"cancelId":null,"effectivetype":null,"validityperiodSign":null,"soCode":null,"rebatename":"康乐保20230619","useLimitStart":0,"useLimitEnd":1,"istax":1,"taxround":0,"isdisposable":0,"productCode":null,"isOperated":null,"userPrice":null,"rebateFalg":null}],"rebateAmountList":null,"productLineCode":"3111","productLineName":"康乐保","auditLoginName":null,"showPurchaseNo":false,"isRebate":null,"isShowReate":null,"taxRate":0.13,"rebateType":1,"paymentAmountWholeLine":48.25,"discountAmountWholeLine":0,"payableAmountWholeLine":48.25,"discountRate":null,"singleRebateAmount":null,"isRebateEdit":null,"payCertUrl":null,"rebateAmount":null,"demandCance":null,"soAdd":null,"soCance":null,"orderReturn":null,"needCustomerConfirm":false,"measuringUnit":null,"productId":null,"version":null,"mainVersion":null,"agencyConfigId":null,"confirmSign":null,"replySign":null,"agencySign":null,"editIng":null,"editIngStr":null,"jdeType":null,"isElectronicSeal":null,"contractAgreementNo":null,"alesDepartmentNo":null,"alesDepartmentName":null,"salesPersonNo":null,"salesPersonName":null,"customerNote":null,"otherNote":null,"contractAgreementCode":null,"projectName":null,"projectCode":null,"regionId":null,"regionName":null,"productLineBindSign":null,"shipVia":null,"orderSource":null,"userBalance":1852.1,"liquidCode":null,"shipmentTypeStr":null,"specifications":"3915","pageStart":1,"pageSize":5,"changeSgin":null,"yapei":2,"companyId":6,"preemptConfig":null,"productSpec":null,"secondAuditSign":null,"secondAuditById":null,"secondAuditByName":null,"secondAuditTime":null,"secondAuditRemark":null,"secondAuditStatus":null,"rebateRule":"1","rebateControlSign":1,"rebateId":null,"preferenceType":null,"preferenceName":null,"disPrice":null,"lineNum":0,"auditStaySign":0,"fileList":null,"imageUrls":null,"total":null,"submitTimeStr":null,"updateTimeStr":null,"auditTimeStr":null,"acceptTime":null,"acceptTimeStr":null,"paidTime":null,"paidTimeStr":null,"erpHandingTime":null,"erpHandingTimeStr":null,"partShippingTime":null,"partShippingTimeStr":null,"allShippingTime":null,"allShippingTimeStr":null,"pushJdeTimeStr":null,"successTimeStr":null,"onlinePaySuccessTime":null,"onlinePaySuccessTimeStr":null,"bankTransactionSerial":null,"newIsTax":1,"countFormula":1,"countNumber":0,"noTaxRebateAmount":0,"isCollectionAllocation":0,"siteCompanyCode":null,"hospitalOrderType":null,"proofTime":null,"proofURL":null,"proofRemark":null,"proofSign":0,"customerCancelSign":null,"cancelRecords":null,"cancelCount":0,"updateNewTime":null,"updateNewTimeStr":null,"fsDedUseSign":null,"notice":null,"shareType":1,"singleRebateSign":0,"cf":false,"isPre":null,"showDemandAuditLineLabel":false,"orderType":null,"newDiscountRate":null,"oldOrderType":null,"oldNewDiscountRate":null,"pendding":null,"modifySign":null,"refuseType":null,"groupChangeSign":null,"custModify":null,"pushJdeStatusDemandSub":null,"circleGiftSign":0,"delay":null,"limitS":null,"starts":null,"ends":null,"completedS":null,"confirmDays":null,"remindS":null,"skuGroupList":null,"groupProductType":0,"purchaseId":null,"purchaseCode":null,"sdCancelTime":null,"sdTipSign":0,"receiverNote":null,"receiverPhoneNote":null,"receiverAddressNote":null,"flag":null,"sourceStr":null,"addressNoNote":null,"detailIsSpit":false,"spitSgin":null,"distributionType":null,"rebateValidity":null,"orderChangeType":null,"logoIcon":null,"detail":null,"changeBigType":null,"promotionType":1,"activityTotalAmount":0,"couponTotalAmount":0,"userReceiveId":null,"editSgin":null,"snSgin":null,"jdeOutAmount":null,"totalAllPaAmount":null,"diffShowSgin":0,"lineCodeDelete":null,"startTime":null,"endTime":null,"changeSign":null,"distributionId":null,"limitBuySign":0,"companyType":null,"afterSale":null,"csId":null,"sdStatusNodeParamList":null,"ypPromotionTotal":null,"acrossMainCode":null,"forceApprovedSign":0,"circleGiftContinueSgin":0,"customerCharge":null,"onlinePaySign":0,"recodeDemandSkuList":null,"mergeDemandSkuList":null,"inventoryNode":null,"customCode":null,"terminalSource":null,"potentialClientsId":null,"settlementStatus":null,"firstOrderAuditStatus":null,"confirmReceiptSign":null,"confirmReceiptTime":null,"afterSaleDays":null,"deliveryCompletedTime":null,"taxSign":0,"orderSplitSign":0,"demandRebateSkuList":null,"confirmTime":null,"customerPurchaseNo":null,"mustInstallDate":false,"secondAddressList":null,"splitOrMerge":null,"spitOrderSign":null,"productAmountWholeLine":48.25,"auditCompanyName":null,"auditCompanyNameCode":null,"edit":false,"editProductListFlag":false,"ratio":null,"showMoreAttribute":false,"lastNoTaxDiscountAmount":0,"lastDiscountAmount":0,"showInfo":false,"addressConfig":2,"isExpire":false,"settementQuantity":1,"userBalancePrice":1852.1,"isEdit":true,"discountRateOne":100,"_rebateType":true,"pSign":0}],"orderStatus":102,"userReceiveId":null,"userReceiveId2":null,"productAmount":48.25,"paymentType":0,"accountId":3,"version":null,"receiveBankName":"国药集团上海医疗器械有限公司","receiveBankAccount":"36830188000041806","addressNumber":82429,"receiverName":"/","receiverContact":"/","receiverAddress":"昆明高新技术产业开发区马金铺高登路1676号水科技园标准工业厂房1号办公楼4层405室,2号工业厂房一层101、102、103、104-2室","buyerCartIds":[""],"sellerCompanyCode":"00111","companyId":6}} +#预期结果 +checkDict19: {"message": "商品证照校验错误"} + + +#测试场景二十:商品下架拦截验证_再来一单 +#再来一单接口信息 +"url20": "/order/public/saveSameOrder" +"payload20": {"demandId":"%s"} +#预期结果 +checkDict20: {"success":false,"code":"ERROR","message":"当前订单无有效商品","data":null,"freshToken":null} + + +#测试场景二十一:商品金额调整验证_再来一单 +#验证当原订单中商品价格被修改后,再来一单中商品金额是否调整为最新金额 + +#预期结果 +checkDict21: {"productAmount":"%s"} + + +#测试场景二十二:商品金额调整验证_下单 +#验证进行订单提交时,修改商品金额,订单是否按修改前商品金额计算 + +#预期结果 +checkDict22: {"productAmount":"48.25"} + + +#测试场景二十三:获取收款账号接口验证 +#接口信息 +"url23": "/cms/mall/account/queryPageByCompanyId" +"payload23": {"pageSize":null,"pageNumber":null,"companyId":"%s"} +#预期结果 +checkDict23: {"companyId":"%s"} \ No newline at end of file diff --git a/data/cmdc_purchase_list/data b/data/cmdc_purchase_list/data index 2ed571ff297e0d5f8298f5891ade0112b799fab4..eff26c1d7ea32265e731cbbc95002cf889694219 100644 --- a/data/cmdc_purchase_list/data +++ b/data/cmdc_purchase_list/data @@ -1,7 +1,3 @@ -#采购单查询接口 -"url": "/order/purchase/list" - - # 后台运营管理系统登录信息 "username": "Admin00111" "password": "Aa123456" @@ -10,6 +6,9 @@ json_headers1: { "Content-Type": "application/json", "Cmdc_access_token": "%s" } + +#采购单查询接口 +"url": "/order/purchase/list" "payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8} #预期结果 checkDict2: {"success":true,"code":"200","message":null} diff --git a/data/cmdc_special_fresenius_group/data b/data/cmdc_special_fresenius_group/data index 60fe937f8864ed04beef677dfbe59d084a34cb67..8d087195b647742e6ceaa5e59d1965bc20618d47 100644 --- a/data/cmdc_special_fresenius_group/data +++ b/data/cmdc_special_fresenius_group/data @@ -175,6 +175,7 @@ checkDict19: {"groupPriceStatus": 0} #预期结果 checkDict20: {"success":true,"code":"200","message":"OK"} checkDict20_1: {"success":false,"code":"FRESENIUS_GROUP_ERROR","message":"本次新增组内商品编码已存在于其他组里,请核对已建立的组","data":null,"freshToken":null} +checkDict20_2: {"success":false,"code":"fresenius_agreement_price","message":"该套包面向该客户已存在套包正价记录,无需重复添加!","data":null,"freshToken":null} #测试场景:新老编码组停用 @@ -301,6 +302,7 @@ checkDict47: {"groupPrice":"%s","groupName":"%s"} checkDict48: {"groupPrice":"%s","documentNo":"%s"} #查询指定套包协议特价信息 "payload49": {"groupCode":"","groupName":"","productCode":"","productInfo":"","materialCode":"","manufacturerList":[],"productLineName":"","description":"","manufacturerProductDesc":"","manufacturerProductNo":"","customerCode":"","customerName":"","manufacturerUserNo":"","manufacturerUserDesc":"","documentNo":"协议套包","companyCode":"","groupType":0,"status":null,"pageStart":1,"pageSize":8} +"payload49_1": {"groupCode":"","groupName":"","productCode":"","productInfo":"","materialCode":"","manufacturerList":[],"productLineName":"","description":"","manufacturerProductDesc":"","manufacturerProductNo":"","customerCode":"","customerName":"","manufacturerUserNo":"","manufacturerUserDesc":"","documentNo":"套包协议特价商品显示验证","companyCode":"","groupType":0,"status":null,"pageStart":1,"pageSize":8} #测试场景:代客下单_套包清单_查询条件验证 diff --git a/log/runtime.txt b/log/runtime.txt index da73db73e579c2313cca0f90686a603ae32484e3..9c69c7e53cc94b0487486e769ce8eb8eeb023c8a 100644 --- a/log/runtime.txt +++ b/log/runtime.txt @@ -1,55 +1 @@ -查询赠品 1695341383430 1695341383724 liguangyu -查询失效商品 1695341384600 1695341384617 liguangyu -查询控销商品 1695341384633 1695341384651 liguangyu -查询已上架商品 1695341384667 1695341384689 liguangyu -需求单_获取用户信息失败 1695341384705 1695341385259 liguangyu -需求单-草稿订单删除 1695341385277 1695341387469 liguangyu -获取需求单列表 1695341387487 1695341389446 liguangyu -需求单-草稿订单删除-逆向 1695341389468 1695341391342 liguangyu -需求单删除 1695341391362 1695341392901 liguangyu -重复删除需求单 1695341392919 1695341394639 liguangyu -删除其他状态下需求单 1695341394659 1695341396211 liguangyu -删除不存在的需求单 1695341396229 1695341397377 liguangyu -需求单审核通过_代客下单 1695341397397 1695341404105 liguangyu -需求单审核通过_快速下单 1695341404119 1695341412518 liguangyu -需求单创建 1695341412538 1695341414487 liguangyu -需求草稿订单创建 1695341414505 1695341416671 liguangyu -新增赠品_控销_商品至常购清单列表 1695341416690 1695341418596 liguangyu -新增不存在的商品至常购清单列表 1695341418615 1695341419290 liguangyu -新增赠品至常购清单列表 1695341419306 1695341421315 liguangyu -获取用户常购清单列表 1695341421332 1695341425024 liguangyu -常购清单列表商品移除 1695341425048 1695341428888 liguangyu -新增JDE已停用的商品至常购清单列表 1695341428904 1695341430797 liguangyu -新增控销商品至常购清单列表 1695341430813 1695341432656 liguangyu -添加跨站点商品至常购清单列表 1695341432673 1695341433626 liguangyu -新增商品至常购清单列表 1695341433646 1695341435762 liguangyu -新增已失效商品至常购清单列表 1695341435783 1695341437875 liguangyu -客户查询 1695341437892 1695341439033 liguangyu -审核不存在的需求单 1695341439053 1695341440000 liguangyu -重复审核 1695341440016 1695341442815 liguangyu -审核其他状态的需求单 1695341442838 1695341444398 liguangyu -需求单审核不通过 1695341444418 1695341445828 liguangyu -需求单创建 1695341445842 1695341448060 liguangyu -需求单删除操作 1695341448077 1695341449480 liguangyu -获取需求单列表 1695341449498 1695341454095 liguangyu -需求单取消操作 1695341454118 1695341455477 liguangyu -新增跨站点商品至购物车 1695341455494 1695341457125 liguangyu -新增已控销商品至购物车列表 1695341457144 1695341459274 liguangyu -购物车新增商品 1695341459290 1695341461465 liguangyu -添加JDE已停用的商品至购物车列表 1695341461484 1695341463728 liguangyu -购物车数量修改验证 1695341463749 1695341466697 liguangyu -购物车商品移除 1695341466715 1695341468735 liguangyu -新增赠品至购物车 1695341468755 1695341469929 liguangyu -新增不存在商品至购物车列表 1695341469952 1695341470828 liguangyu -获取购物车列表 1695341470846 1695341472525 liguangyu -新增已失效商品至购物车列表 1695341472545 1695341474619 liguangyu -新增赠品_控销_商品至购物车 1695341474635 1695341476709 liguangyu -用户信息查询 1695341476728 1695341477685 liguangyu -商品列表_快速下单 1695341477706 1695341479429 liguangyu -商品列表_代客下单 1695341479449 1695341481128 liguangyu -获取客户列表 1695341481149 1695341482426 liguangyu -采购单查询 1695341482446 1695341483593 liguangyu -快速下单权限_否 1695341483614 1695341484605 liguangyu -快速下单权限_能 1695341484623 1695341485617 liguangyu -获取站点信息 1695341485636 1695341486392 liguangyu -站点切换 1695341486412 1695341487156 liguangyu +商品下架拦截验证_订单修改 1702431554548 1702431564240 liguangyu