提交 d4d5e01e authored 作者: 蒋代伟's avatar 蒋代伟

解除箱垛绑定关系

上级 5da56f7d
...@@ -15790,11 +15790,11 @@ def demolition_stack(request,company_id): ...@@ -15790,11 +15790,11 @@ def demolition_stack(request,company_id):
s = "update codes a set stack_id = (select stack_id from logistics.inventory_stackdetails WHERE label_pk_id = a.label_pk_id limit 1) " s = "update codes a set stack_id = (select stack_id from logistics.inventory_stackdetails WHERE label_pk_id = a.label_pk_id limit 1) "
cur.execute(s) cur.execute(s)
cur.execute("select * from codes") # cur.execute("select * from codes")
print('i--->', # print('i--->',
'label_code,tb,product_id,stack_id,code,label_id,label_pk_id,label_pkg,err,label_code0,from_agent_id') # 'label_code,tb,product_id,stack_id,code,label_id,label_pk_id,label_pkg,err,label_code0,from_agent_id')
for i in cur.fetchall(): # for i in cur.fetchall():
print('i--->', i) # print('i--->', i)
# s = "select b.id from (select label_pk_id,stack_id from codes where label_pk_id is not null and stack_id is not null and label_pkg=3)a " +\ # s = "select b.id from (select label_pk_id,stack_id from codes where label_pk_id is not null and stack_id is not null and label_pkg=3)a " +\
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论