|
|
@@ -14,6 +14,8 @@ class ShopController extends BaseController
|
|
|
public function actionList()
|
|
|
{
|
|
|
$where = [];
|
|
|
+ $where['merchantId'] = $this->merchantId;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
$list = ShopService::getShopList($where);
|
|
|
util::success($list);
|
|
|
}
|
|
|
@@ -85,4 +87,14 @@ class ShopController extends BaseController
|
|
|
readfile($file);
|
|
|
}
|
|
|
|
|
|
+ //删除门店 shish 2020.3.1
|
|
|
+ public function actionDelete()
|
|
|
+ {
|
|
|
+ $id = Yii::$app->request->get('id', 0);
|
|
|
+ $shop = ShopService::getById($id);
|
|
|
+ ShopService::valid($shop, $this->merchantId);
|
|
|
+ ShopService::deleteShop($shop);
|
|
|
+ util::ok();
|
|
|
+ }
|
|
|
+
|
|
|
}
|