feat: also include workflow for display condition

This commit is contained in:
Methapon2001 2024-12-12 15:26:26 +07:00
parent 4ef407c8b1
commit 2449f324d2
2 changed files with 66 additions and 4 deletions

View file

@ -264,7 +264,23 @@ export class RequestListController extends Controller {
stepStatus: true, stepStatus: true,
productService: { productService: {
include: { include: {
service: true, service: {
include: {
workflow: {
include: {
step: {
include: {
value: true,
responsiblePerson: {
include: { user: true },
},
responsibleInstitution: true,
},
},
},
},
},
},
work: true, work: true,
product: { product: {
include: { document: true }, include: { document: true },
@ -309,7 +325,21 @@ export class RequestListController extends Controller {
productService: { productService: {
include: { include: {
service: { service: {
include: { workflow: true }, include: {
workflow: {
include: {
step: {
include: {
value: true,
responsiblePerson: {
include: { user: true },
},
responsibleInstitution: true,
},
},
},
},
},
}, },
work: true, work: true,
product: { product: {

View file

@ -160,7 +160,23 @@ export class TaskController extends Controller {
}, },
productService: { productService: {
include: { include: {
service: true, service: {
include: {
workflow: {
include: {
step: {
include: {
value: true,
responsiblePerson: {
include: { user: true },
},
responsibleInstitution: true,
},
},
},
},
},
},
work: true, work: true,
product: true, product: true,
}, },
@ -252,7 +268,23 @@ export class TaskController extends Controller {
}, },
productService: { productService: {
include: { include: {
service: true, service: {
include: {
workflow: {
include: {
step: {
include: {
value: true,
responsiblePerson: {
include: { user: true },
},
responsibleInstitution: true,
},
},
},
},
},
},
work: true, work: true,
product: true, product: true,
}, },