Commit e07fd5c1 by lixinming
parents 5fc514e9 e2b8e7c2
...@@ -7,6 +7,7 @@ import * as guanWeiHuiBiz from '../biz/guanWeiHui/user'; ...@@ -7,6 +7,7 @@ import * as guanWeiHuiBiz from '../biz/guanWeiHui/user';
import { checkParamaterType, checkReqParam } from '../util/tools'; import { checkParamaterType, checkReqParam } from '../util/tools';
import { BizError } from '../util/bizError'; import { BizError } from '../util/bizError';
import { ERRORENUM } from '../config/errorEnum'; import { ERRORENUM } from '../config/errorEnum';
import { monthTableList } from '../biz/fuHuqQi/month';
export function setRouter(httpServer) { export function setRouter(httpServer) {
...@@ -14,7 +15,7 @@ export function setRouter(httpServer) { ...@@ -14,7 +15,7 @@ export function setRouter(httpServer) {
httpServer.post('/admin/login', asyncHandler(login)); httpServer.post('/admin/login', asyncHandler(login));
// /** 孵化器*/ // /** 孵化器*/
httpServer.post('/admin/fuhuaqi/baselist', asyncHandler(fuHuaQiBaseList)); httpServer.post('/admin/fuhuaqi/baselist', asyncHandler(fuHuaQiBaseList));
// httpServer.post('/admin/fuhuaqi/monthoccupancyrate', asyncHandler()); httpServer.post('/admin/fuhuaqi/monthoccupancyrate', asyncHandler(getMonthList));
httpServer.post('/admin/fuhuaqi/userlist', asyncHandler(getFuHuaQiUserList)); httpServer.post('/admin/fuhuaqi/userlist', asyncHandler(getFuHuaQiUserList));
httpServer.post('/admin/fuhuaqi/updatestate', asyncHandler(updateState)); httpServer.post('/admin/fuhuaqi/updatestate', asyncHandler(updateState));
httpServer.post('/admin/fuhuaqi/adduser',asyncHandler(addUser)); httpServer.post('/admin/fuhuaqi/adduser',asyncHandler(addUser));
...@@ -55,6 +56,20 @@ async function fuHuaQiBaseList(req, res) { ...@@ -55,6 +56,20 @@ async function fuHuaQiBaseList(req, res) {
/** /**
* 后台管理 获取月度出租率信息列表
* @param req
* @param res
*/
async function getMonthList(req, res) {
let reqConf = {state: 'Number', year: 'Number', month: 'Number', page: 'Number'};
let { state, year, month, page } = checkReqParam(reqConf, req.body);
let result = await monthTableList(state, year, month, page);
res.success(result);
}
/**
* 后台管理 获取孵化器账号信息列表 * 后台管理 获取孵化器账号信息列表
* @param req * @param req
* @param res * @param res
......
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