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
01a08333
Commit
01a08333
authored
Feb 08, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0ae7ec49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
base.ts
src/biz/fuHuqQi/base.ts
+7
-5
fuhuaqi.ts
src/data/fuHuaQi/fuhuaqi.ts
+5
-2
No files found.
src/biz/fuHuqQi/base.ts
View file @
01a08333
...
...
@@ -83,17 +83,20 @@ export async function homeData(uscc:string) {
* @param industry 领域
* @returns
*/
export
async
function
fuHuaQiBaseList
(
lv
:
number
,
institutionalNature
:
number
,
industry
:
number
)
{
export
async
function
fuHuaQiBaseList
(
lv
:
number
,
institutionalNature
:
number
,
industry
:
number
,
page
:
number
)
{
let
selectParam
:
any
=
{};
if
(
lv
)
selectParam
.
lv
=
lv
;
if
(
institutionalNature
)
selectParam
.
institutionalNature
=
institutionalNature
;
if
(
industry
)
selectParam
.
industry
=
industry
;
let
enterpriseMap
=
await
groupFindEnterprise
();
let
dataBaseList
=
await
findFuHuaQiList
();
let
dataBaseList
=
await
findFuHuaQiList
(
selectParam
,
(
page
-
1
)
*
10
);
let
dataList
=
[];
dataBaseList
.
forEach
(
info
=>
{
let
changeData
=
tools
.
extractData
(
FuHuaQiBaseListConfig
,
info
);
const
Count
=
enterpriseMap
[
info
.
uscc
]
||
0
;
dataList
.
push
(
changeData
);
});
return
{
dataList
};
}
\ No newline at end of file
src/data/fuHuaQi/fuhuaqi.ts
View file @
01a08333
...
...
@@ -3,6 +3,7 @@
* operationName不可修改 2023-02-06 确定此需求
* uscc不可修改 2023-02-06 确定此需求
* 首次登录要求改密码 不改密码不能继续操作 2023-02-07 确定此需求
* 管理后台列表页面一页展示10条 2023-02-08 确定此需求
*/
import
{
Schema
}
from
'mongoose'
;
...
...
@@ -98,8 +99,9 @@ export async function findFuHuaQiByToken(token:string) {
/**
* 获取所有孵化器
* @param selectParam 查询参数
* @returns [] 孵化器列表
*/
export
async
function
findFuHuaQiList
()
{
return
await
fuHuaQiModel
.
find
(
{}).
skip
(
);
export
async
function
findFuHuaQiList
(
selectParam
,
skipCount
)
{
return
await
fuHuaQiModel
.
find
(
selectParam
).
skip
(
skipCount
).
limit
(
10
);
}
\ No newline at end of file
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