Commit 32085c29 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 2a337e8e
......@@ -48,7 +48,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区'order by create_time desc LIMIT 1;"))
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区' and create_user='%s' LIMIT 1;"%uxid))
request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body)
......
......@@ -101,7 +101,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区'order by create_time desc LIMIT 1;"))
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区' and create_user='%s' LIMIT 1;"%uxid))
request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body)
......
......@@ -103,7 +103,7 @@ def second_dept_Request(hosGoodsId, type):
GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode = process_tuple(get_id(
"select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区'order by create_time desc LIMIT 1;"))
"select shelf_code from mcms_stock_shelf where address='二级检验科002'and shelf_name='默认库区' and create_user='%s' LIMIT 1;" % uxid))
request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body)
result = commonFuc().http_post(url, request_body, headers)
......
......@@ -72,7 +72,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid3, deptname3, 3)
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='三级检测组003'and shelf_name='默认库区'order by create_time desc LIMIT 1;"))
areaCode =process_tuple(get_id("select shelf_code from mcms_stock_shelf where address='三级检测组003'and shelf_name='默认库区' and create_user='%s' LIMIT 1;" % uxid))
request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid3, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body)
......@@ -167,7 +167,7 @@ def BuyCarSubmit():
deptname3 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3']
# areaCode = get_stockAreaId_new(deptid3, deptname3, 3)
areaCode = process_tuple(get_id(
"select shelf_code from mcms_stock_shelf where address='三级检测组003'and shelf_name='默认库区'order by create_time desc LIMIT 1;"))
"select shelf_code from mcms_stock_shelf where address='三级检测组003'and shelf_name='默认库区' and create_user='%s' LIMIT 1;" % uxid))
request_body = commonFuc().get_business_data(module, "payload43", areaCode, get_hosid(), deptid3)
......
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