shish 10 месяцев назад
Родитель
Сommit
d3e46f9840
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      app-ghs/controllers/CustomController.php

+ 4 - 1
app-ghs/controllers/CustomController.php

@@ -873,10 +873,13 @@ class CustomController extends BaseController
         $get = Yii::$app->request->get();
         $homeAmount = $get['homeAmount'] ?? 0;
         $homeType = $get['homeType'] ?? 0;
+        $shopId = $this->shopId;
+        ShopClass::updateById($shopId, ['homeAmount' => $homeAmount, 'homeType' => $homeType]);
+
         // 批量更新客户信息
         CustomClass::updateByCondition(['ownMainId' => $this->mainId], ['homeAmount' => $homeAmount, 'homeType' => $homeType]);
         //批量更新供货商信息
-        GhsClass::updateByCondition(['shopId' => $this->shopId], ['homeAmount' => $homeAmount, 'homeType' => $homeType]);
+        GhsClass::updateByCondition(['shopId' => $shopId], ['homeAmount' => $homeAmount, 'homeType' => $homeType]);
         util::complete('修改成功');
     }