@ -43,6 +77,9 @@ async function reportList (ctx) {
if(userId){
findOption.where.userId=userId
}
if(findUsers.length){
findOption.where.userId={$in:findUsers}
}
if(reportType){
findOption.where.reportType=reportType
}
@ -53,7 +90,6 @@ async function reportList (ctx) {
if(isTop){
constsqlStr='select * from (SELECT R.*, "row_number"() OVER(PARTITION BY R.user_id ORDER BY R."time" DESC) AS NEWINDEX FROM report AS R ) AS NR WHERE NEWINDEX = 1'