liuhairui 1 долоо хоног өмнө
parent
commit
042f89c388

+ 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')