feat(attendant): 入驻默认实习阶段并新增阶段等级调整接口

- employee.attendantInfo 增加 stage/grade/star,存量档案按正式青铜归一化

- 入驻审批仅在新建档案时写 intern,重新激活保留原阶段

- /employee/me 返回阶段等级与 canAcceptOrder

- C 端公示列表与详情排除实习陪诊师

- 新增 PATCH /employee/:id/level:转正、调级、钻石设星
This commit is contained in:
lik
2026-11-10 12:02:07 +08:00
parent d748034835
commit 67f2962574
5 changed files with 288 additions and 17 deletions
+3
View File
@@ -253,6 +253,9 @@ class HandlerAttendantApplication {
$setOnInsert: {
employeeNo: HandlerAttendantApplication.generateEmployeeNo(),
"meta.createtime": Date.now(),
// 入驻通过只给实习身份:可查看订单但不能接单,由管理员人工转正。
// 只在新建时写入,停用档案重新激活保留原有阶段,避免转正后被降回实习
"attendantInfo.stage": "intern",
},
},
{ new: true, upsert: true }