cqpCow 1 year ago
parent
commit
5c790afbb9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Service/InventoryService.php

+ 2 - 2
app/Service/InventoryService.php

@@ -249,8 +249,8 @@ class InventoryService extends Service
 
         try {
             DB::beginTransaction();
-            foreach ($data as $value){
-                InventoryOrderAsset::whereIn('id',$value['id'])
+            foreach ($data['data'] as $value){
+                InventoryOrderAsset::where('id',$value['id'])
                     ->where('del_time',0)
                     ->update([
                         'remark' => $value['remark'],