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

+ 1 - 1
app/service/ledger_extra.js

@@ -26,7 +26,7 @@ module.exports = app => {
         async getData(tid, columns) {
             if (!columns || columns.length === 0) return [];
 
-            return await this.getAllDataByCondition({
+            return await this.db.select(this.departTableName(tid), {
                 where: { tid },
                 columns: ['id', ...columns],
             });

+ 1 - 1
app/service/pos_extra.js

@@ -26,7 +26,7 @@ module.exports = app => {
         async getData(tid, columns) {
             if (!columns || columns.length === 0) return [];
 
-            return await this.getAllDataByCondition({
+            return await this.db.select(this.departTableName(tid), {
                 where: { tid },
                 columns: ['id', ...columns],
             });