|
@@ -81,7 +81,7 @@ module.exports = app => {
|
|
|
' ) As MaxFilter ' +
|
|
|
' ON Pos.times = MaxFilter.times And Pos.order = MaxFilter.order And Pos.pid = MaxFilter.pid' +
|
|
|
' WHERE Pos.tid = ? And Pos.sid = ?' + pidSql;
|
|
|
- const sqlParam = [times, order, tid, sid];
|
|
|
+ const sqlParam = [times, times, order, tid, sid];
|
|
|
if (!pid) {
|
|
|
return await this.db.query(sql, sqlParam);
|
|
|
} else if (pid instanceof Array) {
|