feat(admin): 获取管理员详情时增加门店是否营业字段

- 在获取管理员详情时,添加了门店是否营业(is_operated)的信息
- 通过 SystemStore 模型查询门店状态,并将结果添加到
This commit is contained in:
mkm 2025-02-11 17:51:56 +08:00
parent 2ebf1dbb62
commit 78bf3ac5a8

View File

@ -23,6 +23,7 @@ use app\common\model\auth\AdminJobs;
use app\common\model\auth\AdminRole;
use app\common\model\auth\AdminSession;
use app\common\cache\AdminTokenCache;
use app\common\model\system_store\SystemStore;
use app\common\model\system_store\SystemStoreStaff;
use app\common\service\FileService;
use support\exception\BusinessException;
@ -229,7 +230,7 @@ class AdminLogic extends BaseLogic
if ($action == 'detail') {
return $admin;
}
$result['is_operated'] =SystemStore::where('id',$admin['store_id'])->value('is_operated');
$result['user'] = $admin;
// 当前管理员角色拥有的菜单
$result['menu'] = MenuLogic::getMenuByAdminId($params['id']);