MaiXinRong 2 years ago
parent
commit
d3505ad5cb
2 changed files with 2 additions and 2 deletions
  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],
             });