Commit 77c0344e authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent e242c52f
......@@ -630,8 +630,8 @@ def set_dept_user(dept_id, deptName, type=1):
# stockAreaId = get_stockAreaId(dept_id, stockId)
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;" % (
deptName)))
"select id from mcms_stock_shelf where address='%s' and stock_id='%s' and del_flag=0 order by CREATE_TIME desc LIMIT 1;" % (
stockId,deptName)))
print(stockAreaId)
# ====获取库区id===== 结束==========
# 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