add:添加一个单位code

This commit is contained in:
zhangzq
2024-12-01 10:37:48 +08:00
parent 13e35b6adb
commit a0b8c280af
2 changed files with 25 additions and 17 deletions

View File

@@ -2,10 +2,21 @@
托盘库编码FStockPallet
料箱库编码: FStockId
虚拟库编码: FicStockId
-- 清库存
update st_ivt_structattr set vehicle_code = null;
-- 删除组盘信息
update md_pb_vehiclemater set is_delete = '1';
-- 任务
update sch_base_task set `status` = '90' where `status` < 80;
-- 初始化仓库
UPDATE st_ivt_structattr set lock_type = '00' where stor_code = 'FStockId' and vehicle_code is not null;
UPDATE st_ivt_structattr set vehicle_code = null where stor_code = 'FStockId';
-- 初始化流程数据
delete from act_hi_execution;
delete from act_ru_execution;
-- 初始化出入库
delete from st_ivt_structivtflow;
delete from st_ivt_iostorinv;
delete from st_ivt_iostorinvdtl;
-- 初始化单据
delete from pm_form_data;
-- 初始化组盘
delete from md_group_dick;
delete from md_pb_vehiclemater;
-- 初始化任务
delete from sch_base_task;
------------------------------