|
|
@@ -15,6 +15,22 @@ use Yii;
|
|
|
class ShopController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ //续期要求变更 ssh 20240427
|
|
|
+ public function actionNeedRenewChange()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $shopId = $get['id'] ?? 0;
|
|
|
+ $shop = ShopClass::getById($shopId, true);
|
|
|
+ if (empty($shop)) {
|
|
|
+ util::fail('没有找到门店');
|
|
|
+ }
|
|
|
+ $old = $shop->needRenew;
|
|
|
+ $new = $old == 0 ? 1 : 0;
|
|
|
+ $shop->needRenew = $new;
|
|
|
+ $shop->save();
|
|
|
+ util::complete('修改成功');
|
|
|
+ }
|
|
|
+
|
|
|
//添加员工 ssh 2023429
|
|
|
public function actionAddStaff()
|
|
|
{
|