from __future__ import annotations

ROLE_DISPLAY_ORDER = {
    "manager": 1,
    "finance": 2,
    "approver": 3,
    "executive": 4,
    "auditor": 5,
    "user": 6,
}

ROLE_DEFINITIONS = [
    {
        "role_code": "user",
        "name": "使用者",
        "description": "可以发起报销、查看个人单据和使用 AI 助手。",
    },
    {
        "role_code": "finance",
        "name": "财务人员",
        "description": "可以处理复核、查看财务知识与风险校验结果。",
    },
    {
        "role_code": "manager",
        "name": "管理员",
        "description": "可以维护员工档案、组织结构和角色权限。",
    },
    {
        "role_code": "executive",
        "name": "高级管理人员",
        "description": "可以查看跨部门数据看板与关键审批结果。",
    },
    {
        "role_code": "approver",
        "name": "审批负责人",
        "description": "可以处理审批中心中的待审单据。",
    },
    {
        "role_code": "auditor",
        "name": "审计观察员",
        "description": "可以查看变更记录和权限调整历史。",
    },
]

ROLE_PERMISSION_MAP = {
    "user": ["可发起差旅申请与报销", "可查看个人单据与票据识别结果"],
    "finance": ["可处理财务复核任务", "可查看风险校验与财务知识库"],
    "manager": ["可维护员工档案与组织结构", "可配置系统角色与访问边界"],
    "executive": ["可查看跨部门经营看板", "可处理高金额报销最终审批"],
    "approver": ["可处理本部门待审单据", "可查看审批链路与 SLA 状态"],
    "auditor": ["可查看权限变更与审计留痕", "可导出员工权限观察记录"],
}

ORGANIZATION_DEFINITIONS = [
    {
        "unit_code": "ORG-ROOT",
        "name": "星海科技",
        "unit_type": "company",
        "parent_code": None,
        "cost_center": "CC-0000",
        "location": "上海",
        "manager_name": "李文静",
    },
    {
        "unit_code": "EXEC-OFFICE",
        "name": "总经办",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-1001",
        "location": "上海",
        "manager_name": "李文静",
    },
    {
        "unit_code": "FIN-SSC",
        "name": "财务共享中心",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-2108",
        "location": "上海",
        "manager_name": "张晓晴",
    },
    {
        "unit_code": "HR-OD",
        "name": "人力与组织",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-3206",
        "location": "杭州",
        "manager_name": "陈硕",
    },
    {
        "unit_code": "SALES-SOUTH",
        "name": "华南销售部",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-4102",
        "location": "深圳",
        "manager_name": "陈嘉",
    },
    {
        "unit_code": "SALES-EAST",
        "name": "华东销售部",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-4108",
        "location": "上海",
        "manager_name": "秦墨然",
    },
    {
        "unit_code": "MKT-BRAND",
        "name": "市场品牌部",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-5203",
        "location": "北京",
        "manager_name": "刘思雨",
    },
    {
        "unit_code": "RND-CENTER",
        "name": "产品研发中心",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-6105",
        "location": "北京",
        "manager_name": "吴磊",
    },
    {
        "unit_code": "OPS-ADMIN",
        "name": "行政采购部",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-7204",
        "location": "南京",
        "manager_name": "梁雨辰",
    },
    {
        "unit_code": "AUDIT-RISK",
        "name": "风控与审计部",
        "unit_type": "department",
        "parent_code": "ORG-ROOT",
        "cost_center": "CC-8102",
        "location": "上海",
        "manager_name": "顾承宇",
    },
]

EMPLOYEE_DEFINITIONS = [
    {
        "employee_no": "E10018",
        "name": "李文静",
        "gender": "女",
        "birth_date": "1987-03-26",
        "phone": "13900187688",
        "email": "wenjing.li@xfinance.com",
        "join_date": "2018-06-21",
        "location": "上海",
        "position": "高级财务总监",
        "grade": "D2",
        "organization_unit_code": "EXEC-OFFICE",
        "manager_employee_no": None,
        "finance_owner_name": "集团财务",
        "cost_center": "CC-1001",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-05 16:20",
        "last_sync_at": "2026-05-05 16:20",
        "role_codes": ["executive", "approver"],
    },
    {
        "employee_no": "E10234",
        "name": "张晓晴",
        "gender": "女",
        "birth_date": "1994-08-12",
        "phone": "13810234567",
        "email": "xiaoqing.zhang@xfinance.com",
        "join_date": "2021-03-15",
        "location": "上海",
        "position": "费用运营经理",
        "grade": "M3",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10018",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-2108",
        "employment_status": "在职",
        "sync_state": "待生效",
        "spotlight": True,
        "updated_at": "2026-05-06 10:24",
        "last_sync_at": "2026-05-06 10:24",
        "role_codes": ["manager", "finance", "approver"],
        "history": [
            {
                "action": "新增“审批负责人”角色",
                "owner": "系统管理员 · 王敏",
                "occurred_at": "2026-05-06 10:24",
            },
            {
                "action": "调整财务归口为华东财务组",
                "owner": "组织管理员 · 陈硕",
                "occurred_at": "2026-05-05 18:10",
            },
        ],
    },
    {
        "employee_no": "E10258",
        "name": "孙楠",
        "gender": "男",
        "birth_date": "1992-09-17",
        "phone": "13722580312",
        "email": "nan.sun@xfinance.com",
        "join_date": "2020-11-09",
        "location": "上海",
        "position": "财务分析师",
        "grade": "P5",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10234",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-2111",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-04 15:18",
        "last_sync_at": "2026-05-04 15:18",
        "role_codes": ["finance"],
    },
    {
        "employee_no": "E10271",
        "name": "周悦宁",
        "gender": "女",
        "birth_date": "1993-04-21",
        "phone": "13622711986",
        "email": "yuening.zhou@xfinance.com",
        "join_date": "2021-07-05",
        "location": "上海",
        "position": "财务系统专员",
        "grade": "P5",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10234",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-2112",
        "employment_status": "在职",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 09:35",
        "last_sync_at": "2026-05-07 09:10",
        "role_codes": ["finance", "auditor"],
    },
    {
        "employee_no": "E10289",
        "name": "高嘉禾",
        "gender": "女",
        "birth_date": "1996-02-14",
        "phone": "13522895642",
        "email": "jiahe.gao@xfinance.com",
        "join_date": "2023-01-10",
        "location": "上海",
        "position": "差旅合规专员",
        "grade": "P4",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10234",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-2115",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-03 11:42",
        "last_sync_at": "2026-05-03 11:42",
        "role_codes": ["finance"],
    },
    {
        "employee_no": "E10867",
        "name": "王敏",
        "gender": "女",
        "birth_date": "1996-11-05",
        "phone": "13688671200",
        "email": "min.wang@xfinance.com",
        "join_date": "2022-08-08",
        "location": "杭州",
        "position": "组织发展主管",
        "grade": "P6",
        "organization_unit_code": "HR-OD",
        "manager_employee_no": "E11618",
        "finance_owner_name": "总部财务BP",
        "cost_center": "CC-3206",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-05 09:18",
        "last_sync_at": "2026-05-05 09:18",
        "role_codes": ["manager", "auditor"],
    },
    {
        "employee_no": "E11618",
        "name": "陈硕",
        "gender": "男",
        "birth_date": "1990-05-09",
        "phone": "13816186540",
        "email": "shuo.chen@xfinance.com",
        "join_date": "2019-09-16",
        "location": "杭州",
        "position": "人力资源经理",
        "grade": "M2",
        "organization_unit_code": "HR-OD",
        "manager_employee_no": "E10018",
        "finance_owner_name": "总部财务BP",
        "cost_center": "CC-3201",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-04 17:08",
        "last_sync_at": "2026-05-04 17:08",
        "role_codes": ["manager", "approver"],
    },
    {
        "employee_no": "E12311",
        "name": "何思成",
        "gender": "男",
        "birth_date": "1998-07-19",
        "phone": "13723117654",
        "email": "sicheng.he@xfinance.com",
        "join_date": "2026-02-17",
        "location": "杭州",
        "position": "HRBP",
        "grade": "P4",
        "organization_unit_code": "HR-OD",
        "manager_employee_no": "E11618",
        "finance_owner_name": "总部财务BP",
        "cost_center": "CC-3208",
        "employment_status": "试用中",
        "sync_state": "待生效",
        "spotlight": False,
        "updated_at": "2026-05-07 08:42",
        "last_sync_at": "2026-05-07 08:42",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E11026",
        "name": "刘思雨",
        "gender": "女",
        "birth_date": "1991-12-03",
        "phone": "13921036540",
        "email": "siyu.liu@xfinance.com",
        "join_date": "2020-04-13",
        "location": "北京",
        "position": "品牌市场经理",
        "grade": "M2",
        "organization_unit_code": "MKT-BRAND",
        "manager_employee_no": "E10018",
        "finance_owner_name": "市场财务BP",
        "cost_center": "CC-5203",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 14:36",
        "last_sync_at": "2026-05-06 14:36",
        "role_codes": ["user", "approver"],
    },
    {
        "employee_no": "E12408",
        "name": "冯可欣",
        "gender": "女",
        "birth_date": "1997-10-28",
        "phone": "13624085542",
        "email": "kexin.feng@xfinance.com",
        "join_date": "2024-03-11",
        "location": "北京",
        "position": "品牌策划",
        "grade": "P4",
        "organization_unit_code": "MKT-BRAND",
        "manager_employee_no": "E11026",
        "finance_owner_name": "市场财务BP",
        "cost_center": "CC-5207",
        "employment_status": "在职",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 10:02",
        "last_sync_at": "2026-05-07 09:48",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12419",
        "name": "许泽航",
        "gender": "男",
        "birth_date": "1995-05-15",
        "phone": "13524199508",
        "email": "zehang.xu@xfinance.com",
        "join_date": "2023-06-19",
        "location": "北京",
        "position": "数字营销专员",
        "grade": "P4",
        "organization_unit_code": "MKT-BRAND",
        "manager_employee_no": "E11026",
        "finance_owner_name": "市场财务BP",
        "cost_center": "CC-5209",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-03 16:52",
        "last_sync_at": "2026-05-03 16:52",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E11602",
        "name": "陈嘉",
        "gender": "男",
        "birth_date": "1997-02-18",
        "phone": "13716029901",
        "email": "jia.chen@xfinance.com",
        "join_date": "2026-03-01",
        "location": "深圳",
        "position": "区域销售经理",
        "grade": "M2",
        "organization_unit_code": "SALES-SOUTH",
        "manager_employee_no": "E10018",
        "finance_owner_name": "华南财务组",
        "cost_center": "CC-4102",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-04 14:12",
        "last_sync_at": "2026-05-04 14:12",
        "role_codes": ["user", "approver"],
    },
    {
        "employee_no": "E12476",
        "name": "马骁然",
        "gender": "男",
        "birth_date": "1994-01-08",
        "phone": "13824760139",
        "email": "xiaoran.ma@xfinance.com",
        "join_date": "2022-09-05",
        "location": "深圳",
        "position": "销售运营专家",
        "grade": "P5",
        "organization_unit_code": "SALES-SOUTH",
        "manager_employee_no": "E11602",
        "finance_owner_name": "华南财务组",
        "cost_center": "CC-4106",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 18:15",
        "last_sync_at": "2026-05-06 18:15",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12508",
        "name": "唐子墨",
        "gender": "男",
        "birth_date": "1996-06-11",
        "phone": "13925088761",
        "email": "zimo.tang@xfinance.com",
        "join_date": "2024-02-26",
        "location": "深圳",
        "position": "大客户代表",
        "grade": "P4",
        "organization_unit_code": "SALES-SOUTH",
        "manager_employee_no": "E11602",
        "finance_owner_name": "华南财务组",
        "cost_center": "CC-4109",
        "employment_status": "停用",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-01 11:06",
        "last_sync_at": "2026-05-01 11:06",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12514",
        "name": "罗欣怡",
        "gender": "女",
        "birth_date": "2000-03-02",
        "phone": "13625141227",
        "email": "xinyi.luo@xfinance.com",
        "join_date": "2026-02-24",
        "location": "深圳",
        "position": "销售协调专员",
        "grade": "P3",
        "organization_unit_code": "SALES-SOUTH",
        "manager_employee_no": "E11602",
        "finance_owner_name": "华南财务组",
        "cost_center": "CC-4112",
        "employment_status": "试用中",
        "sync_state": "待生效",
        "spotlight": False,
        "updated_at": "2026-05-05 15:42",
        "last_sync_at": "2026-05-05 15:42",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E11745",
        "name": "吴磊",
        "gender": "男",
        "birth_date": "1989-09-27",
        "phone": "13817459812",
        "email": "lei.wu@xfinance.com",
        "join_date": "2019-12-09",
        "location": "北京",
        "position": "研发平台主管",
        "grade": "M3",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E10018",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6105",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 13:08",
        "last_sync_at": "2026-05-06 13:08",
        "role_codes": ["user", "approver", "auditor"],
    },
    {
        "employee_no": "E11991",
        "name": "赵明",
        "gender": "男",
        "birth_date": "1994-06-09",
        "phone": "13519913300",
        "email": "ming.zhao@xfinance.com",
        "join_date": "2023-11-18",
        "location": "北京",
        "position": "产品经理",
        "grade": "P5",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6112",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-02 11:32",
        "last_sync_at": "2026-05-02 11:32",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12611",
        "name": "彭一凡",
        "gender": "男",
        "birth_date": "1995-02-03",
        "phone": "13726114588",
        "email": "yifan.peng@xfinance.com",
        "join_date": "2022-04-18",
        "location": "北京",
        "position": "后端工程师",
        "grade": "P5",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6114",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 09:44",
        "last_sync_at": "2026-05-06 09:44",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12618",
        "name": "苏清禾",
        "gender": "女",
        "birth_date": "1994-12-25",
        "phone": "13626188763",
        "email": "qinghe.su@xfinance.com",
        "join_date": "2022-05-16",
        "location": "北京",
        "position": "数据工程师",
        "grade": "P5",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6116",
        "employment_status": "在职",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 10:26",
        "last_sync_at": "2026-05-07 10:18",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12624",
        "name": "沈知远",
        "gender": "男",
        "birth_date": "1992-11-06",
        "phone": "13926241855",
        "email": "zhiyuan.shen@xfinance.com",
        "join_date": "2021-11-22",
        "location": "北京",
        "position": "测试负责人",
        "grade": "P6",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6119",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-05 13:12",
        "last_sync_at": "2026-05-05 13:12",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E11852",
        "name": "周晓彤",
        "gender": "女",
        "birth_date": "1997-05-27",
        "phone": "13818529954",
        "email": "xiaotong.zhou@xfinance.com",
        "join_date": "2022-06-30",
        "location": "南京",
        "position": "行政采购专员",
        "grade": "P4",
        "organization_unit_code": "OPS-ADMIN",
        "manager_employee_no": "E12653",
        "finance_owner_name": "行政财务BP",
        "cost_center": "CC-7204",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-05 11:22",
        "last_sync_at": "2026-05-05 11:22",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12653",
        "name": "梁雨辰",
        "gender": "男",
        "birth_date": "1991-08-30",
        "phone": "13726539876",
        "email": "yuchen.liang@xfinance.com",
        "join_date": "2021-01-04",
        "location": "南京",
        "position": "行政运营经理",
        "grade": "M1",
        "organization_unit_code": "OPS-ADMIN",
        "manager_employee_no": "E10018",
        "finance_owner_name": "行政财务BP",
        "cost_center": "CC-7201",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 17:44",
        "last_sync_at": "2026-05-06 17:44",
        "role_codes": ["user", "approver"],
    },
    {
        "employee_no": "E12661",
        "name": "顾承宇",
        "gender": "男",
        "birth_date": "1988-04-16",
        "phone": "13926614528",
        "email": "chengyu.gu@xfinance.com",
        "join_date": "2020-02-03",
        "location": "上海",
        "position": "风控审计经理",
        "grade": "M2",
        "organization_unit_code": "AUDIT-RISK",
        "manager_employee_no": "E10018",
        "finance_owner_name": "集团财务",
        "cost_center": "CC-8102",
        "employment_status": "在职",
        "sync_state": "待生效",
        "spotlight": True,
        "updated_at": "2026-05-07 09:52",
        "last_sync_at": "2026-05-07 09:52",
        "role_codes": ["auditor", "finance"],
        "history": [
            {
                "action": "更新审计观察范围",
                "owner": "系统管理员 · 张晓晴",
                "occurred_at": "2026-05-07 09:52",
            },
            {
                "action": "补充高风险费用抽样规则",
                "owner": "审计管理员 · 王敏",
                "occurred_at": "2026-05-06 18:30",
            },
        ],
    },
    {
        "employee_no": "E12679",
        "name": "郑若彤",
        "gender": "女",
        "birth_date": "1997-09-13",
        "phone": "13626794520",
        "email": "ruotong.zheng@xfinance.com",
        "join_date": "2024-01-08",
        "location": "上海",
        "position": "审计专员",
        "grade": "P4",
        "organization_unit_code": "AUDIT-RISK",
        "manager_employee_no": "E12661",
        "finance_owner_name": "集团财务",
        "cost_center": "CC-8105",
        "employment_status": "在职",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 08:58",
        "last_sync_at": "2026-05-07 08:40",
        "role_codes": ["auditor"],
    },
    {
        "employee_no": "E12688",
        "name": "方逸晨",
        "gender": "男",
        "birth_date": "1995-01-20",
        "phone": "13526881142",
        "email": "yichen.fang@xfinance.com",
        "join_date": "2023-08-14",
        "location": "南京",
        "position": "采购合规分析师",
        "grade": "P4",
        "organization_unit_code": "OPS-ADMIN",
        "manager_employee_no": "E12653",
        "finance_owner_name": "行政财务BP",
        "cost_center": "CC-7208",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-03 14:16",
        "last_sync_at": "2026-05-03 14:16",
        "role_codes": ["user", "finance"],
    },
    {
        "employee_no": "E12067",
        "name": "秦墨然",
        "gender": "男",
        "birth_date": "1990-10-10",
        "phone": "13820674519",
        "email": "moran.qin@xfinance.com",
        "join_date": "2020-07-20",
        "location": "上海",
        "position": "华东销售总监",
        "grade": "M2",
        "organization_unit_code": "SALES-EAST",
        "manager_employee_no": "E10018",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-4108",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 12:40",
        "last_sync_at": "2026-05-06 12:40",
        "role_codes": ["user", "approver"],
    },
    {
        "employee_no": "E12703",
        "name": "宋知夏",
        "gender": "女",
        "birth_date": "1994-07-07",
        "phone": "13727031129",
        "email": "zhixia.song@xfinance.com",
        "join_date": "2022-12-12",
        "location": "上海",
        "position": "重点客户经理",
        "grade": "P5",
        "organization_unit_code": "SALES-EAST",
        "manager_employee_no": "E12067",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-4111",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-04 10:58",
        "last_sync_at": "2026-05-04 10:58",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12716",
        "name": "杜嘉宁",
        "gender": "男",
        "birth_date": "1999-11-16",
        "phone": "13627161248",
        "email": "jianing.du@xfinance.com",
        "join_date": "2026-01-19",
        "location": "上海",
        "position": "销售代表",
        "grade": "P3",
        "organization_unit_code": "SALES-EAST",
        "manager_employee_no": "E12067",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-4114",
        "employment_status": "试用中",
        "sync_state": "待生效",
        "spotlight": False,
        "updated_at": "2026-05-05 12:26",
        "last_sync_at": "2026-05-05 12:26",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12722",
        "name": "邵宁远",
        "gender": "男",
        "birth_date": "1998-12-01",
        "phone": "13527221506",
        "email": "ningyuan.shao@xfinance.com",
        "join_date": "2026-02-08",
        "location": "北京",
        "position": "数据分析师",
        "grade": "P4",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6122",
        "employment_status": "试用中",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 09:06",
        "last_sync_at": "2026-05-07 08:55",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12739",
        "name": "林可昕",
        "gender": "女",
        "birth_date": "1996-10-23",
        "phone": "13827394510",
        "email": "kexin.lin@xfinance.com",
        "join_date": "2023-04-17",
        "location": "上海",
        "position": "费用核算专员",
        "grade": "P4",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10234",
        "finance_owner_name": "华东财务组",
        "cost_center": "CC-2118",
        "employment_status": "停用",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-04-30 18:05",
        "last_sync_at": "2026-04-30 18:05",
        "role_codes": ["finance"],
    },
    {
        "employee_no": "E12744",
        "name": "赵予安",
        "gender": "男",
        "birth_date": "1993-01-30",
        "phone": "13727442139",
        "email": "yuan.zhao@xfinance.com",
        "join_date": "2021-10-11",
        "location": "上海",
        "position": "预算控制经理",
        "grade": "M1",
        "organization_unit_code": "FIN-SSC",
        "manager_employee_no": "E10234",
        "finance_owner_name": "集团财务",
        "cost_center": "CC-2120",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 15:34",
        "last_sync_at": "2026-05-06 15:34",
        "role_codes": ["finance", "approver"],
    },
    {
        "employee_no": "E12750",
        "name": "谢知行",
        "gender": "男",
        "birth_date": "1995-09-14",
        "phone": "13627501386",
        "email": "zhixing.xie@xfinance.com",
        "join_date": "2022-07-25",
        "location": "深圳",
        "position": "渠道销售经理",
        "grade": "P5",
        "organization_unit_code": "SALES-SOUTH",
        "manager_employee_no": "E11602",
        "finance_owner_name": "华南财务组",
        "cost_center": "CC-4116",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-04 09:48",
        "last_sync_at": "2026-05-04 09:48",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12758",
        "name": "顾南枝",
        "gender": "女",
        "birth_date": "1994-04-12",
        "phone": "13827584522",
        "email": "nanzhi.gu@xfinance.com",
        "join_date": "2022-05-09",
        "location": "北京",
        "position": "内容运营经理",
        "grade": "P5",
        "organization_unit_code": "MKT-BRAND",
        "manager_employee_no": "E11026",
        "finance_owner_name": "市场财务BP",
        "cost_center": "CC-5211",
        "employment_status": "在职",
        "sync_state": "同步中",
        "spotlight": False,
        "updated_at": "2026-05-07 11:08",
        "last_sync_at": "2026-05-07 10:50",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12763",
        "name": "孟书言",
        "gender": "男",
        "birth_date": "1992-02-09",
        "phone": "13527633148",
        "email": "shuyan.meng@xfinance.com",
        "join_date": "2021-06-28",
        "location": "北京",
        "position": "架构工程师",
        "grade": "P6",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6125",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 19:05",
        "last_sync_at": "2026-05-06 19:05",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12771",
        "name": "孔令谦",
        "gender": "男",
        "birth_date": "1993-07-18",
        "phone": "13627711572",
        "email": "lingqian.kong@xfinance.com",
        "join_date": "2021-09-13",
        "location": "南京",
        "position": "供应商管理专员",
        "grade": "P4",
        "organization_unit_code": "OPS-ADMIN",
        "manager_employee_no": "E12653",
        "finance_owner_name": "行政财务BP",
        "cost_center": "CC-7210",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-02 17:22",
        "last_sync_at": "2026-05-02 17:22",
        "role_codes": ["user"],
    },
    {
        "employee_no": "E12782",
        "name": "乔语岚",
        "gender": "女",
        "birth_date": "1996-05-06",
        "phone": "13727823045",
        "email": "yulan.qiao@xfinance.com",
        "join_date": "2023-03-06",
        "location": "上海",
        "position": "风控策略分析师",
        "grade": "P4",
        "organization_unit_code": "AUDIT-RISK",
        "manager_employee_no": "E12661",
        "finance_owner_name": "集团财务",
        "cost_center": "CC-8108",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-03 13:18",
        "last_sync_at": "2026-05-03 13:18",
        "role_codes": ["auditor"],
    },
    {
        "employee_no": "E12790",
        "name": "邹闻韬",
        "gender": "男",
        "birth_date": "1991-03-11",
        "phone": "13827903167",
        "email": "wentao.zou@xfinance.com",
        "join_date": "2020-10-26",
        "location": "上海",
        "position": "合规产品负责人",
        "grade": "P7",
        "organization_unit_code": "RND-CENTER",
        "manager_employee_no": "E11745",
        "finance_owner_name": "研发财务BP",
        "cost_center": "CC-6128",
        "employment_status": "在职",
        "sync_state": "已同步",
        "spotlight": False,
        "updated_at": "2026-05-06 08:56",
        "last_sync_at": "2026-05-06 08:56",
        "role_codes": ["user", "auditor"],
    },
]
