|
|
@@ -32,7 +32,7 @@ class AdminShopController extends BaseController
|
|
|
$miniCode = isset($respond['miniCode']) ? Yii::$app->params['imgHost'] . $respond['miniCode'] : '';
|
|
|
util::success(['miniCode' => $miniCode]);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//创建管理员 shish 2020.4.20
|
|
|
public function actionGenerateAdmin()
|
|
|
{
|
|
|
@@ -40,5 +40,40 @@ class AdminShopController extends BaseController
|
|
|
AdminShopService::generateAdmin($post);
|
|
|
util::complete();
|
|
|
}
|
|
|
+
|
|
|
+ //收款通知 shish 2020.1.4
|
|
|
+ public function actionUpdateRemind()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = isset($get['id']) ? $get['id'] : 0;
|
|
|
+ $remind = isset($get['remind']) && is_numeric($get['remind']) ? $get['remind'] : 0;
|
|
|
+ $adminShop = AdminShopService::getByCondition(['shopId' => $this->shopId, 'adminId' => $id]);
|
|
|
+ AdminShopService::valid($adminShop, $this->shopId);
|
|
|
+ AdminShopService::updateByCondition(['shopId' => $this->shopId, 'adminId' => $id], ['remind' => $remind]);
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
+
|
|
|
+ //启用与停用 shish 2020.1.4
|
|
|
+ public function actionUpdateStatus()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $id = isset($get['id']) && is_numeric($get['id']) ? $get['id'] : 0;
|
|
|
+ $status = isset($get['status']) ? $get['status'] : 0;
|
|
|
+ $adminShop = AdminShopService::getByCondition(['shopId' => $this->shopId, 'adminId' => $id]);
|
|
|
+ AdminShopService::valid($adminShop, $this->shopId);
|
|
|
+ AdminShopService::updateByCondition(['shopId' => $this->shopId, 'adminId' => $id], ['status' => $status]);
|
|
|
+ util::complete();
|
|
|
+ }
|
|
|
|
|
|
+ //员工列表 shish 2019.12.8
|
|
|
+ public function actionList()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $where = [];
|
|
|
+ $where['shopId'] = $this->shopId;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
+ $list = AdminShopService::getAdminList($where);
|
|
|
+ util::success($list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|