Commit cdb004ad authored by 肖 和生's avatar 肖 和生
Browse files

Merge remote-tracking branch 'remotes/origin/master' into core_flow

parents 9678386d 32085c29
...@@ -48,7 +48,7 @@ def second_dept_Request(hosGoodsId, type): ...@@ -48,7 +48,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'] # hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2) # 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) request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body) print('我要请领_手工请领_列表查询', 'request_body', request_body)
......
...@@ -101,7 +101,7 @@ def second_dept_Request(hosGoodsId, type): ...@@ -101,7 +101,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'] # hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2) # 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) request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body) print('我要请领_手工请领_列表查询', 'request_body', request_body)
......
...@@ -103,7 +103,7 @@ def second_dept_Request(hosGoodsId, type): ...@@ -103,7 +103,7 @@ def second_dept_Request(hosGoodsId, type):
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2) # areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode = process_tuple(get_id( 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) request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid2, areaCode)
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)
......
...@@ -72,7 +72,7 @@ def second_dept_Request(hosGoodsId, type): ...@@ -72,7 +72,7 @@ def second_dept_Request(hosGoodsId, type):
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'] # hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId = hosGoodsId.replace(get_hosid(), '') GoodsId = hosGoodsId.replace(get_hosid(), '')
# areaCode = get_stockAreaId_new(deptid3, deptname3, 3) # 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) request_body = commonFuc().get_business_data(module, "payload39", GoodsId, get_hosid(), deptid3, areaCode)
print('我要请领_手工请领_列表查询', 'request_body', request_body) print('我要请领_手工请领_列表查询', 'request_body', request_body)
...@@ -167,7 +167,7 @@ def BuyCarSubmit(): ...@@ -167,7 +167,7 @@ def BuyCarSubmit():
deptname3 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3'] deptname3 = FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid3']
# areaCode = get_stockAreaId_new(deptid3, deptname3, 3) # areaCode = get_stockAreaId_new(deptid3, deptname3, 3)
areaCode = process_tuple(get_id( 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) request_body = commonFuc().get_business_data(module, "payload43", areaCode, get_hosid(), deptid3)
......
...@@ -630,8 +630,8 @@ def set_dept_user(dept_id, deptName, type=1): ...@@ -630,8 +630,8 @@ def set_dept_user(dept_id, deptName, type=1):
# stockAreaId = get_stockAreaId(dept_id, stockId) # stockAreaId = get_stockAreaId(dept_id, stockId)
stockAreaId = process_tuple(get_id( stockAreaId = process_tuple(get_id(
"select id from mcms_stock_shelf where address='%s' and del_flag=0 order by CREATE_TIME desc LIMIT 1;" % ( "select id from mcms_stock_shelf where address='%s' and stock_id='%s' and del_flag=0 order by CREATE_TIME desc LIMIT 1;" % (
deptName))) deptName,stockId)))
print(stockAreaId) print(stockAreaId)
# ====获取库区id===== 结束========== # ====获取库区id===== 结束==========
# dept_query_all() # dept_query_all()
......
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