public function actionView($id)
 {
     $id = new MongoId($id);
     $store = Store::findByPk($id);
     if (empty($store)) {
         throw new BadRequestHttpException(Yii::t('common', 'data_error'));
     }
     $location = $store->getStoreLocation();
     $result = $store->toArray();
     $result['location'] = $location;
     $accountId = $this->getAccountId();
     $result['storeGoods'] = StoreGoods::getTotal($id, $accountId);
     $result['staff'] = Staff::getTotal($id, $accountId);
     return $result;
 }