Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
59eb3e6d
Commit
59eb3e6d
authored
Mar 02, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
挪了一下位置
parent
040a3662
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
29 deletions
+29
-29
fuHuaQi.ts
src/biz/admin/fuHuaQi/fuHuaQi.ts
+28
-0
user.ts
src/biz/mobileFuHuaQi/fuHuaQi/user.ts
+0
-26
fuHuaQi.ts
src/routers/admin/fuHuaQi.ts
+1
-3
No files found.
src/biz/admin/fuHuaQi/fuHuaQi.ts
View file @
59eb3e6d
...
...
@@ -307,3 +307,31 @@ export async function addUser(param) {
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
};
}
src/biz/mobileFuHuaQi/fuHuaQi/user.ts
View file @
59eb3e6d
...
...
@@ -119,29 +119,3 @@ export async function logout(uscc:string){
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
};
}
src/routers/admin/fuHuaQi.ts
View file @
59eb3e6d
...
...
@@ -3,13 +3,11 @@
*/
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
fuHuaQiAdminBiz
from
'../../biz/admin/fuHuaQi/fuHuaQi'
;
import
*
as
taskBiz
from
'../../biz/mobileFuHuaQi/fuHuaQi/task'
;
import
{
getTimeKey
}
from
'../../tools/system'
;
import
{
checkGuanWeiHuiToken
,
checkInterior
}
from
'../../middleware/user'
;
import
*
as
monthBiz
from
'../../biz/mobileFuHuaQi/fuHuaQi/month'
;
import
{
eccReqParamater
}
from
'../../util/verificationParam'
;
...
...
@@ -79,7 +77,7 @@ async function getMonthList(req, res) {
const
NotMustHaveKeys
=
[
"operationName"
];
let
{
operationName
,
page
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
let
result
=
await
user
Biz
.
fuHuaQiUserList
(
operationName
,
page
);
let
result
=
await
fuHuaQiAdmin
Biz
.
fuHuaQiUserList
(
operationName
,
page
);
res
.
success
(
result
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment