Commit 511cdbc9 by linboxuan

lin tj

parent eaf8cd17
...@@ -119,8 +119,8 @@ class AccessAuthAPI extends APIBase { ...@@ -119,8 +119,8 @@ class AccessAuthAPI extends APIBase {
return result; return result;
} }
async getAllService() { async getAllService(pobj, qobj, req) {
var result = await this.utilsappSve.getAllService(); var result = await this.utilsappSve.getAllService(pobj, qobj, req);
return result; return result;
} }
} }
......
...@@ -75,9 +75,21 @@ class UtilsAppSve extends AppServiceBase { ...@@ -75,9 +75,21 @@ class UtilsAppSve extends AppServiceBase {
* 获取所有渠道 * 获取所有渠道
* @returns {Promise<{msg: *, data: (*|null), status: number}>} * @returns {Promise<{msg: *, data: (*|null), status: number}>}
*/ */
async getAllService() { async getAllService(pobj, qobj, req) {
let sql = `select uapp_id,app_hosts,app_name,\`desc\` from p_app`; var tmpWhere = {
let result = await this.appDao.customQuery(sql); pageInfo: {}
};
if (pobj.actionBody) {
let current = 1;
if (pobj.actionBody.current) {
current = pobj.actionBody.current;
tmpWhere.pageInfo.pageNo = current;
}
if (pobj.actionBody.pageSize) {
tmpWhere.pageInfo.pageSize = (current - 1) * pobj.actionBody.pageSize ? (current - 1) * pobj.actionBody.pageSize : 14;
}
}
let result = await this.appDao.findAndCountAll(tmpWhere)
return system.getResultSuccess(result); return system.getResultSuccess(result);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment