| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- 'use strict';
 
- /**
 
-  * 部位明细
 
-  *
 
-  * @author Mai
 
-  * @date
 
-  * @version
 
-  */
 
- module.exports = app => {
 
-     class LedgerExtra extends app.BaseService {
 
-         /**
 
-          * 构造函数
 
-          *
 
-          * @param {Object} ctx - egg全局变量
 
-          * @return {void}
 
-          */
 
-         constructor(ctx) {
 
-             super(ctx);
 
-             this.depart = 20;
 
-             this.tableName = 'pos_extra';
 
-         }
 
-         async getData(tid, columns) {
 
-             if (!columns || columns.length === 0) return [];
 
-             return await this.getAllDataByCondition({
 
-                 where: { tid },
 
-                 columns: ['id', ...columns],
 
-             });
 
-         }
 
-     }
 
-     return LedgerExtra;
 
- };
 
 
  |