refs #6667 sql #1940
|
@ -49,10 +49,14 @@ module.exports = Self => {
|
|||
LEFT JOIN business b ON b.workerFk = w.id
|
||||
ORDER BY b.id DESC
|
||||
LIMIT 10000000000000000000
|
||||
) w
|
||||
GROUP BY w.id`);
|
||||
) w`);
|
||||
|
||||
stmt.merge(conn.makeSuffix(filter.fields));
|
||||
stmt.merge(conn.makeWhere(filter.where));
|
||||
stmt.merge(conn.makeGroupBy('w.id'));
|
||||
stmt.merge(conn.makeOrderBy(filter.order));
|
||||
stmt.merge(conn.makeLimit(filter.limit));
|
||||
|
||||
stmt.merge(conn.makeSuffix(filter));
|
||||
return conn.executeStmt(stmt);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue