|
@@ -230,7 +230,7 @@ module.exports = app => {
|
|
|
' FROM ?? AS ca LEFT JOIN ?? AS c ON ca.`cid` = c.`cid` ' +
|
|
|
' LEFT JOIN ?? As t ON ca.`tid` = t.`id` ' +
|
|
|
' WHERE ca.`uid` = ? and ca.`status` = ? and c.`status` != ?' +
|
|
|
- ' ORDER BY ca.`sin_time` DESC';
|
|
|
+ ' ORDER BY ca.`begin_time` DESC';
|
|
|
const sqlParam = [this.tableName, this.ctx.service.change.tableName, this.ctx.service.tender.tableName, uid, auditConst.status.checking, auditConst.status.uncheck];
|
|
|
const changes = await this.db.query(sql, sqlParam);
|
|
|
for (const c of changes) {
|