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],
             });