fix: 修复员工端离职申请创建时缺少checklist和type字段导致内部错误; 新增E2E测试场景文档
This commit is contained in:
@@ -792,9 +792,12 @@ router.post('/resignation/submit', portalAuth, async (req: any, res, next) => {
|
||||
const record = await (prisma as any).terminationRecord.create({
|
||||
data: {
|
||||
employeeId, orgId,
|
||||
type: 'RESIGNATION',
|
||||
reason: 'RESIGNATION',
|
||||
resignationReason: reason,
|
||||
terminationDate: new Date(expectedDate),
|
||||
status: 'PENDING_APPROVAL',
|
||||
checklist: [],
|
||||
remark: `员工自主申请:${reason}${remark ? ';备注:' + remark : ''}`,
|
||||
createdBy: employeeId,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user