shish há 10 meses atrás
pai
commit
d3e46f9840
1 ficheiros alterados com 4 adições e 1 exclusões
  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();
         $get = Yii::$app->request->get();
         $homeAmount = $get['homeAmount'] ?? 0;
         $homeAmount = $get['homeAmount'] ?? 0;
         $homeType = $get['homeType'] ?? 0;
         $homeType = $get['homeType'] ?? 0;
+        $shopId = $this->shopId;
+        ShopClass::updateById($shopId, ['homeAmount' => $homeAmount, 'homeType' => $homeType]);
+
         // 批量更新客户信息
         // 批量更新客户信息
         CustomClass::updateByCondition(['ownMainId' => $this->mainId], ['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('修改成功');
         util::complete('修改成功');
     }
     }