Commit 59eb3e6d by lixinming

挪了一下位置

parent 040a3662
...@@ -307,3 +307,31 @@ export async function addUser(param) { ...@@ -307,3 +307,31 @@ export async function addUser(param) {
return {isSuccess:true}; return {isSuccess:true};
} }
/**
* 孵化器账号信息列表
* 管理后台使用
* @param operationName 运营机构名称
* @param page 页数
* @returns
*/
export async function fuHuaQiUserList(operationName:string, page:number) {
let selectParam:any = {};
if (operationName) {
selectParam.operationName = {"$regex":`${operationName}`};;
}
let dataBaseList = await fuhuaqiData.findFuHuaQiUserList(selectParam, (page-1)*10 );
let count = await fuhuaqiData.findFuHuaQiUserCount(selectParam);
let dataList = [];
dataBaseList.forEach( info => {
let changeData:any = extractData(splitResultConfig.FuHuaQiListConfig, info, true);
changeData.liaison = info.personInCharge;//todo 这里陈金晶写的有bug 后续记得把协议和后台重新顶一下
dataList.push(changeData);
});
return {count, dataList};
}
...@@ -119,29 +119,3 @@ export async function logout(uscc:string){ ...@@ -119,29 +119,3 @@ export async function logout(uscc:string){
return {isSuccess:true}; return {isSuccess:true};
} }
/**
* 孵化器账号信息列表
* 管理后台使用
* @param operationName 运营机构名称
* @param page 页数
* @returns
*/
export async function fuHuaQiUserList(operationName:string, page:number) {
let selectParam:any = {};
if (operationName) {
selectParam.operationName = {"$regex":`${operationName}`};;
}
let dataBaseList = await fuhuaqiData.findFuHuaQiUserList(selectParam, (page-1)*10 );
let count = await fuhuaqiData.findFuHuaQiUserCount(selectParam);
let dataList = [];
dataBaseList.forEach( info => {
let changeData:any = extractData(splitResultConfig.FuHuaQiListConfig, info, true);
changeData.liaison = info.personInCharge;//todo 这里陈金晶写的有bug 后续记得把协议和后台重新顶一下
dataList.push(changeData);
});
return {count, dataList};
}
...@@ -3,13 +3,11 @@ ...@@ -3,13 +3,11 @@
*/ */
import * as asyncHandler from 'express-async-handler'; import * as asyncHandler from 'express-async-handler';
import * as userBiz from '../../biz/mobileFuHuaQi/fuHuaQi/user';
import * as monthAdminBiz from '../../biz/admin/fuHuaQi/month'; import * as monthAdminBiz from '../../biz/admin/fuHuaQi/month';
import * as fuHuaQiAdminBiz from '../../biz/admin/fuHuaQi/fuHuaQi'; import * as fuHuaQiAdminBiz from '../../biz/admin/fuHuaQi/fuHuaQi';
import * as taskBiz from '../../biz/mobileFuHuaQi/fuHuaQi/task'; import * as taskBiz from '../../biz/mobileFuHuaQi/fuHuaQi/task';
import { getTimeKey } from '../../tools/system'; import { getTimeKey } from '../../tools/system';
import { checkGuanWeiHuiToken, checkInterior } from '../../middleware/user'; import { checkGuanWeiHuiToken, checkInterior } from '../../middleware/user';
import * as monthBiz from '../../biz/mobileFuHuaQi/fuHuaQi/month';
import { eccReqParamater } from '../../util/verificationParam'; import { eccReqParamater } from '../../util/verificationParam';
...@@ -79,7 +77,7 @@ async function getMonthList(req, res) { ...@@ -79,7 +77,7 @@ async function getMonthList(req, res) {
const NotMustHaveKeys = ["operationName" ]; const NotMustHaveKeys = ["operationName" ];
let { operationName, page } = eccReqParamater(reqConf, req.body, NotMustHaveKeys); let { operationName, page } = eccReqParamater(reqConf, req.body, NotMustHaveKeys);
let result = await userBiz.fuHuaQiUserList(operationName, page); let result = await fuHuaQiAdminBiz.fuHuaQiUserList(operationName, page);
res.success(result); res.success(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