feat: 全部列表页统一分页 + WorkProcess集成现有服务
- WorkProcess/Termination/Evidence/Contracts/Policies/Templates 添加 Pagination 组件 - 后端 getDrafts/getPolicies/enterprise-template 路由添加分页支持(可选参数,向后兼容) - work-process.service CONFIRM case 修正:移除不存在的 probationEndDate 字段 - 新增 migration_add_three_tables.sql 增量迁移文件
This commit is contained in:
@@ -69,17 +69,10 @@ export async function executeWorkProcess(processId: string, type: string, formDa
|
||||
case 'CONFIRM': {
|
||||
const { employeeId, confirmDate, regularSalary } = formData
|
||||
if (employeeId) {
|
||||
const updateData: any = {}
|
||||
if (regularSalary) {
|
||||
updateData.monthlySalary = encrypt(String(regularSalary))
|
||||
}
|
||||
if (confirmDate) {
|
||||
updateData.probationEndDate = new Date(confirmDate)
|
||||
}
|
||||
if (Object.keys(updateData).length > 0) {
|
||||
await prisma.employee.update({
|
||||
where: { id: employeeId },
|
||||
data: updateData,
|
||||
data: { monthlySalary: encrypt(String(regularSalary)) },
|
||||
})
|
||||
await runRiskDetection(orgId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user