Merge branch 'develop'
This commit is contained in:
commit
a88d8228b1
2 changed files with 9 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ export class RequestListController extends Controller {
|
|||
OR: [
|
||||
{ workStatus: RequestWorkStatus.Ready },
|
||||
{
|
||||
workStatus: { in: [RequestWorkStatus.Ready, RequestWorkStatus.InProgress] },
|
||||
task: {
|
||||
some: {
|
||||
taskStatus: TaskStatus.Redo,
|
||||
|
|
|
|||
|
|
@ -421,6 +421,14 @@ export class TaskController extends Controller {
|
|||
),
|
||||
);
|
||||
|
||||
await tx.requestWorkStepStatus.updateMany({
|
||||
where: {
|
||||
OR: body.taskList,
|
||||
workStatus: RequestWorkStatus.Ready,
|
||||
},
|
||||
data: { workStatus: RequestWorkStatus.InProgress },
|
||||
});
|
||||
|
||||
return await tx.taskOrder.update({
|
||||
where: { id: taskOrderId },
|
||||
include: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue