|
@@ -110,7 +110,7 @@ module.exports = app => {
|
|
' Where tid = ? and sid = ? ' + filterSql;
|
|
' Where tid = ? and sid = ? ' + filterSql;
|
|
|
|
|
|
const result = await this.db.query(sql, [tid, sid]);
|
|
const result = await this.db.query(sql, [tid, sid]);
|
|
- const stageBills = this.ctx.helper.filterLastestData(result, 'lid');
|
|
|
|
|
|
+ const stageBills = this.ctx.helper.filterLastestData(result, ['lid']);
|
|
if (!lid || lid instanceof Array) return stageBills;
|
|
if (!lid || lid instanceof Array) return stageBills;
|
|
return stageBills[0];
|
|
return stageBills[0];
|
|
}
|
|
}
|
|
@@ -121,7 +121,7 @@ module.exports = app => {
|
|
' Where tid = ? and sid = ? And (`times` < ? OR (`times` = ? AND `order` <= ?)) ' + filterSql;
|
|
' Where tid = ? and sid = ? And (`times` < ? OR (`times` = ? AND `order` <= ?)) ' + filterSql;
|
|
|
|
|
|
const result = await this.db.query(sql, [tid, sid, times, times, order]);
|
|
const result = await this.db.query(sql, [tid, sid, times, times, order]);
|
|
- const stageBills = this.ctx.helper.filterLastestData(result, 'lid');
|
|
|
|
|
|
+ const stageBills = this.ctx.helper.filterLastestData(result, ['lid']);
|
|
if (!lid || lid instanceof Array) return stageBills;
|
|
if (!lid || lid instanceof Array) return stageBills;
|
|
return stageBills[0];
|
|
return stageBills[0];
|
|
}
|
|
}
|