Fix query used to fetch report(s) account is handling
This commit is contained in:
parent
80f0113183
commit
5c3f78b428
@ -82,9 +82,7 @@ public class ReportRepository
|
||||
private static final String GET_REPORTS_HANDLING = "SELECT reports.id FROM reports" +
|
||||
" LEFT JOIN reportResults ON reports.id = reportResults.reportId" +
|
||||
" INNER JOIN reportHandlers ON reports.id = reportHandlers.reportId" +
|
||||
" WHERE reports.id = reportHandlers.reportId" +
|
||||
" AND reports.id = reportResults.reportId" +
|
||||
" AND reportResults.reportId IS NULL" +
|
||||
" WHERE reportResults.reportId IS NULL" +
|
||||
" AND reportHandlers.handlerId = ?;";
|
||||
|
||||
private static final String GET_USER_RESULT_COUNT = "SELECT COUNT(reports.id) AS resultCount" +
|
||||
|
Loading…
Reference in New Issue
Block a user