Kirin преди 3 години
родител
ревизия
3f9e111a44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/admin/controller/company/Goods.php

+ 1 - 1
app/admin/controller/company/Goods.php

@@ -313,7 +313,7 @@ class Goods extends AuthController
         }
         }
         $where['audit_time'] = time();
         $where['audit_time'] = time();
         $where['audit_admin'] = $this->adminId;
         $where['audit_admin'] = $this->adminId;
-        SystemStoreStockBill::where('id', 'in', $ids)->update($where);
+        SystemStoreStockBill::where('id', 'in', join(",", $ids))->update($where);
         if (!count($msg)) {
         if (!count($msg)) {
             return Json::successful('批量审核成功');
             return Json::successful('批量审核成功');
         } else {
         } else {