فهرست منبع

删除订单物料信息

liuhairui 1 هفته پیش
والد
کامیت
042f89c388
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      application/api/controller/WorkOrder.php

+ 12 - 0
application/api/controller/WorkOrder.php

@@ -279,6 +279,18 @@ class WorkOrder extends Api
                 ->whereIn('订单编号', $orderNos)
                 ->whereNull('Mod_rq')
                 ->update($softDelete);
+            Db::table('工单_bom资料')
+                ->whereIn('BOM_工单编号', $orderNos)
+                ->whereNull('Mod_rq')
+                ->update($softDelete);
+            Db::table('工单关联表')
+                ->whereIn('订单编号', $orderNos)
+                ->whereNull('Mod_rq')
+                ->update($softDelete);
+            Db::table('工单_面料资料')
+                ->whereIn('BOM_工单编号', $orderNos)
+                ->whereNull('Mod_rq')
+                ->update($softDelete);
             Db::table('工单_工艺资料')
                 ->whereIn('订单编号', $orderNos)
                 ->whereNull('Mod_rq')