shish 3 years ago
parent
commit
dabead90d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-ghs/controllers/ShopController.php

+ 2 - 2
app-ghs/controllers/ShopController.php

@@ -34,7 +34,7 @@ class ShopController extends BaseController
         $shopList = [];
         if (isset($staff->super) && $staff->super == 1) {
             $sjId = $this->sjId ?? 0;
-            $shopList = ShopClass::getAllByCondition(['sjId' => $sjId, 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId', 'id');
+            $shopList = ShopClass::getAllByCondition(['sjId' => $sjId, 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
         }
         $adminId = $this->adminId ?? 0;
         $staffList = ShopAdminClass::getAllByCondition(['adminId' => $adminId], null, '*', null, true);
@@ -51,7 +51,7 @@ class ShopController extends BaseController
             }
         }
         if (!empty($mainIdList)) {
-            $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList], 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId', 'id');
+            $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList], 'ptStyle' => 2], null, 'id,shopName,merchantName,sjId,mainId,ptStyle', 'id');
             if (!empty($addShopList)) {
                 foreach ($addShopList as $addShop) {
                     $addShopId = $addShop['id'] ?? 0;