feat: update request work redo to in progress on submit
This commit is contained in:
parent
e5ac580456
commit
3b128d3c93
1 changed files with 8 additions and 0 deletions
|
|
@ -516,6 +516,14 @@ export class TaskActionController extends Controller {
|
|||
where: { id: taskOrderId },
|
||||
data: { taskOrderStatus: TaskOrderStatus.Complete },
|
||||
}),
|
||||
prisma.requestWorkStepStatus.updateMany({
|
||||
where: {
|
||||
task: {
|
||||
some: { taskOrderId, taskStatus: TaskStatus.Redo },
|
||||
},
|
||||
},
|
||||
data: { workStatus: RequestWorkStatus.Ready },
|
||||
}),
|
||||
prisma.task.updateMany({
|
||||
where: {
|
||||
taskOrderId: taskOrderId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue