|
@@ -302,7 +302,7 @@ module.exports = app => {
|
|
|
' FROM (SELECT * FROM ?? WHERE `user_id` = ? OR `id` in (SELECT `tid` FROM ?? WHERE `uid` = ? GROUP BY `tid`)) As t' +
|
|
|
' LEFT JOIN ?? As c ON c.`tid` = t.`id`' +
|
|
|
' LEFT JOIN ?? As ca ON ca.`cid` = c.`cid`' +
|
|
|
- ' WHERE t.`project_id` = ? and `ca`.`sin_time` > ?' +
|
|
|
+ ' WHERE t.`project_id` = ? and `ca`.`sin_time` > ? and `ca`.`usite` != 0' +
|
|
|
' ORDER By ca.`sin_time` DESC LIMIT 1000) as new_t GROUP BY new_t.`id`' +
|
|
|
' ORDER BY new_t.`cu_time`';
|
|
|
const sqlParam = [this.ctx.service.tender.tableName, uid, this.tableName, uid, this.ctx.service.change.tableName, this.tableName, pid, time];
|