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