浏览代码

关联台账,附件相关

MaiXinRong 4 年之前
父节点
当前提交
b6dab5e031
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/stage_att.js

+ 1 - 1
app/service/stage_att.js

@@ -69,7 +69,7 @@ module.exports = app => {
                 ' pa.name as `username`, leg.name as `lname`, leg.code as `code`, leg.ledger_id as `ledger_id`, leg.b_code as `b_code`' +
                 ' FROM ?? AS att,?? AS pa,?? AS leg' +
                 ' WHERE leg.id = att.lid AND pa.id = att.uid AND att.tid = ? AND att.sid = ? ORDER BY att.id DESC';
-            const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, this.ctx.service.ledger.tableName, tid, sid];
+            const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, this.ctx.service.ledger.departTableName(tid), tid, sid];
             return await this.db.query(sql, sqlParam);
         }