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