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

开发在数据库中对部门请领的表增加了字段,create_from,所以需要调整脚本

parent e7b7a431
...@@ -2073,8 +2073,10 @@ def get_stockAreaId_new_fromDb(deptName, type=1): ...@@ -2073,8 +2073,10 @@ def get_stockAreaId_new_fromDb(deptName, type=1):
# 获取库房id==========结束============ # 获取库房id==========结束============
# ====获取库区id===== 开始========== # ====获取库区id===== 开始==========
if type==1:
sql = "select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';" % (stockId, deptName) sql="select shelf_code from mcms_stock_shelf where stock_Id='%s' and shelf_no like '%%%s%%' and default_flag=1 and stock_type=1;"% (stockId,deptName)
else:
sql = "select shelf_code from mcms_stock_shelf where stock_Id='%s'and address='%s';" % (stockId, deptName)
print(sql) print(sql)
shelfCode = get_id(sql) shelfCode = get_id(sql)
return shelfCode return shelfCode
......
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