From 26d7c4cb292025dad56635dc02bf32a348ee62ef Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 16 三月 2022 19:38:24 +0800
Subject: [PATCH] befor merge
---
src/app/modules/base/service/dataapi/dataapi.ts | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/src/app/modules/base/service/dataapi/dataapi.ts b/src/app/modules/base/service/dataapi/dataapi.ts
index eeef886..e19beb7 100644
--- a/src/app/modules/base/service/dataapi/dataapi.ts
+++ b/src/app/modules/base/service/dataapi/dataapi.ts
@@ -2,6 +2,8 @@
import { BaseService, ICoolCache, } from '@cool-midway/core';
import * as _ from 'lodash';
import { MysqlUtil } from '../../utils/mysqlutil';
+// 寮曞叆璇诲啓鏍稿績妯″潡
+
/**
* 绯荤粺鐢ㄦ埛
@@ -26,12 +28,33 @@
// ); // 閮ㄩ棬鏉冮檺
const bidsql = `select * from t_sys_business_config where id_='${query.bid}' limit 0,1`;
const bid_obj_ = await this.nativeQuery(bidsql);
+ console.log(bid_obj_)
let sqlObj = this.mysqlUtil.create_sql(bid_obj_[0], query?.pageindex || null , query?.pagesize || null, query);
if (sqlObj?.status == 0) {
return sqlObj?.msg;
}
return this.sqlRenderPage(sqlObj?.sql, query);
}
+
+
+ /**
+ * 鍒嗛〉鏌ヨ
+ * @param query
+ */
+ async getDataByNative(query) {
+ // const { keyWord, status, departmentIds = [] } = query;
+ // const permsDepartmentArr = await this.baseSysPermsService.departmentIds(
+ // this.ctx.admin.userId
+ // ); // 閮ㄩ棬鏉冮檺
+ const bidsql = `select * from t_sys_business_config where id_='${query.bid}' limit 0,1`;
+ const bid_obj_ = await this.nativeQuery(bidsql);
+ console.log(bid_obj_)
+ let sqlObj = this.mysqlUtil.create_sql(bid_obj_[0], query?.pageindex || null , query?.pagesize || null, query);
+ if (sqlObj?.status == 0) {
+ return sqlObj?.msg;
+ }
+ return this.nativeQuery(sqlObj?.sql)
+ }
/**
* 鍒嗛〉鏌ヨ
@@ -50,6 +73,5 @@
}
return this.sqlRenderPage(sqlObj?.sql, query);
}
-
}
--
Gitblit v1.9.1