reoder view working
This commit is contained in:
@@ -382,3 +382,56 @@ query listShiftRolesByBusinessAndOrder(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#reorder get list by businessId
|
||||
query listShiftRolesByBusinessDateRangeCompletedOrders(
|
||||
$businessId: UUID!
|
||||
$start: Timestamp!
|
||||
$end: Timestamp!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
shiftRoles(
|
||||
where: {
|
||||
shift: {
|
||||
date: { ge: $start, le: $end }
|
||||
order: {
|
||||
businessId: { eq: $businessId }
|
||||
status: { eq: COMPLETED }
|
||||
}
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
orderBy: { createdAt: DESC }
|
||||
) {
|
||||
shiftId
|
||||
roleId
|
||||
count
|
||||
assigned
|
||||
hours
|
||||
startTime
|
||||
endTime
|
||||
totalValue
|
||||
|
||||
role {
|
||||
id
|
||||
name
|
||||
costPerHour
|
||||
}
|
||||
|
||||
shift {
|
||||
id
|
||||
date
|
||||
location
|
||||
locationAddress
|
||||
title
|
||||
status
|
||||
|
||||
order {
|
||||
id
|
||||
orderType
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user