|
@@ -32,10 +32,10 @@ module.exports = app => {
|
|
|
* @returns {Promise<*>}
|
|
|
*/
|
|
|
async getLastestStageData(tid, sid, lid) {
|
|
|
- let lidSql = '', self = this;
|
|
|
+ let lidSql = '', result;
|
|
|
if (lid) {
|
|
|
if (lid instanceof Array) {
|
|
|
- return lid.length > 0 ? this.ctx.helper.getInArrStrSqlFilter(lid) : '';
|
|
|
+ lidSql = lid.length > 0 ? ' And lid in (' + this.ctx.helper.getInArrStrSqlFilter(lid) + ')' : '';
|
|
|
} else {
|
|
|
lidSql = ' And lid in (' + this.db.escape(lid) + ')';
|
|
|
}
|