Browse Source

字段调整,代码提交遗漏

MaiXinRong 5 years ago
parent
commit
6b0396e19c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/service/stage_bills.js
  2. 1 1
      app/service/stage_pos.js

+ 2 - 2
app/service/stage_bills.js

@@ -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) + ')';
                 }

+ 1 - 1
app/service/stage_pos.js

@@ -303,7 +303,7 @@ module.exports = app => {
                 if (refreshData.ledger && refreshData.ledger.length > 0) {
                     result.ledger.bills = await this.ctx.service.ledger.getDataByIds(refreshData.ledger);
                     if (refreshData.stageUpdate) {
-                        result.ledger.curStageData = await await this.ctx.service.stageBills.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, refreshData.ledger);
+                        result.ledger.curStageData = await this.ctx.service.stageBills.getLastestStageData(this.ctx.tender.id, this.ctx.stage.id, refreshData.ledger);
                     }
                 }
                 if (refreshData.pos && refreshData.pos.length > 0) {