shish 9 月之前
父節點
當前提交
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('修改成功');
     }