|
@@ -256,7 +256,7 @@ module.exports = app => {
|
|
|
' c.`code` As `ccode`, c.`name` As `cname`,' +
|
|
|
' t.`name`, t.`type`, t.`user_id` ' +
|
|
|
' FROM ?? AS ca, ?? AS c, ?? As t ' +
|
|
|
- ' WHERE ca.`uid` = ? and ca.`status` = ?' +
|
|
|
+ ' WHERE ca.`uid` = ? and ca.`status` = ? and ca.`status` = c.`status`' +
|
|
|
' and ca.`cid` = c.`cid` and ca.`tid` = t.`id`';
|
|
|
const sqlParam = [this.tableName, this.ctx.service.change.tableName, this.ctx.service.tender.tableName, uid, 2];
|
|
|
return await this.db.query(sql, sqlParam);
|