3092-module_transactions #740

Merged
joan merged 41 commits from 3092-module_transactions into dev 2021-10-18 07:42:24 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit b970214a85 - Show all commits

View File

@ -9,6 +9,7 @@ SELECT * FROM (
ote.body AS description,
oter.body AS resolution
FROM ost_ticket ot
JOIN ost_department od ON od.id = ot.dept_id
JOIN ost_ticket__cdata otc ON ot.ticket_id = otc.ticket_id
JOIN ost_ticket_status ots ON ot.status_id = ots.id
JOIN ost_user otu ON ot.user_id = otu.id
@ -20,8 +21,9 @@ SELECT * FROM (
LEFT JOIN ost_thread_entry oter ON oth.id = oter.thread_id
AND oter.type = 'R'
WHERE ot.ticket_pid IS NULL
AND ots.state = 'closed'
AND ot.closed BETWEEN ? AND ?
AND ots.state = 'closed'
AND od.code = 'IT'
ORDER BY oter.created DESC
) ot GROUP BY ot.ticket_id
ORDER BY ot.assigned