|
|
@@ -3,7 +3,7 @@
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
use biz\admin\classes\AdminClass;
|
|
|
-use biz\shop\classes\ShopAdminClass;
|
|
|
+use bizGhs\shop\classes\ShopAdminClass;
|
|
|
use bizHd\admin\services\AdminRoleService;
|
|
|
use bizHd\admin\services\ShopAdminService;
|
|
|
use bizHd\wx\services\WxOpenService;
|
|
|
@@ -126,4 +126,16 @@ class ShopAdminController extends BaseController
|
|
|
util::complete('修改成功');
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+ //删除员工关系 ssh 2021.1.14
|
|
|
+ public function actionDelete()
|
|
|
+ {
|
|
|
+ $id = Yii::$app->request->get('id');
|
|
|
+ $relation = ShopAdminClass::getInfo($id);
|
|
|
+ if ($relation['founder'] == 2) {
|
|
|
+ util::fail("创始人不能删除");
|
|
|
+ }
|
|
|
+ ShopAdminClass::valid($relation, $this->shopId);
|
|
|
+ ShopAdminClass::delRelation($relation);
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+}
|