Commit e433c198 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本,精确查询时,解决因数据库中的数据被删除导致脚本失败的问题

parent 32ada220
...@@ -47,17 +47,20 @@ def test1(): ...@@ -47,17 +47,20 @@ def test1():
print('info',info) print('info',info)
list_a = info['list_a'] list_a = info['list_a']
print('list_a',list_a) print('list_a',list_a)
goodsMfrsName="aa" goodsMfrsName="a"
goodsName="a"
provName="a"
for i in list_a: for i in list_a:
goodsMfrsName=i['goodsMfrsName'] goodsMfrsName=i['goodsMfrsName']
goodsName=i['goodsName'] goodsName=i['goodsName']
provName=i['provName'] provName=i['provName']
break break
hospitalId = commonFuc().get_business_data(module, "hospitalId") hospitalId = commonFuc().get_business_data(module, "hospitalId")
branchId = commonFuc().get_business_data(module, "branchId") branchId = commonFuc().get_business_data(module, "branchId")
# # 请求体 # # 请求体
# print(goodsMfrsName,goodsName,provName,'dddddddddddddddddddddddddddddddddddddddddddddd')
request_body = commonFuc().get_business_data(module, "payload_5",hospitalId,branchId,goodsMfrsName,goodsName,provName) request_body = commonFuc().get_business_data(module, "payload_5",hospitalId,branchId,goodsMfrsName,goodsName,provName)
# 发送请求 # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
...@@ -92,7 +95,7 @@ def test1(): ...@@ -92,7 +95,7 @@ def test1():
# 按器械注册人查询 # 按器械注册人查询
# # 请求体 # # 请求体
request_body = commonFuc().get_business_data(module, "payload_7",hospitalId,branchId) request_body = commonFuc().get_business_data(module, "payload_7",hospitalId,branchId,goodsMfrsName)
print('request_body', request_body) print('request_body', request_body)
# 发送请求 # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
......
...@@ -37,7 +37,7 @@ json_headers2: { ...@@ -37,7 +37,7 @@ json_headers2: {
"payload_4": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":200} "payload_4": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":200}
"payload_5": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"%s","goodsName":"%s","purModes":["10"],"provName":"%s","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_5": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"%s","goodsName":"%s","purModes":["10"],"provName":"%s","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_6": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","purModes":["%s"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_6": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","purModes":["%s"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_7": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"国药器械光谷分公司","goodsName":"","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_7": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"%s","goodsName":"","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_8": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"%s","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_8": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"%s","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_9": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","purModes":["10"],"provName":"国药器械光谷分公司","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_9": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","purModes":["10"],"provName":"国药器械光谷分公司","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_5_1": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"国药集团浙江","goodsName":"000017","purModes":["10"],"provName":"国药器械光谷分公司","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50} "payload_5_1": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"国药集团浙江","goodsName":"000017","purModes":["10"],"provName":"国药器械光谷分公司","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分1</td> <td class='details-col-elapsed'>0分2</td>
<td class="details-col-elapsed">100.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询/log.html' target='_blank'>a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询</a></td> <td class="details-col-elapsed"><a href='../log/a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询/log.html' target='_blank'>a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">1.682</td> <td class="details-col-elapsed">1.962</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment