Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiViewServer
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
yuyiViewServer
Commits
ad1378f7
Commit
ad1378f7
authored
Dec 12, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
da1d4572
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
7 deletions
+32
-7
qyfw.ts
src/data/db/qyfw.ts
+32
-7
No files found.
src/data/db/qyfw.ts
View file @
ad1378f7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*/
*/
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
FUHUASTATE
,
MOVEOUTTYPE
,
OPERATIONALDATATYPE
,
TABLENAME
}
from
"../../config/enum"
;
import
{
FUHUASTATE
,
INDUSTRY
,
MOVEOUTTYPE
,
OPERATIONALDATATYPE
,
TABLENAME
}
from
"../../config/enum"
;
import
{
selectData
,
selectManyTableData
}
from
"./operationalData"
;
import
{
selectData
,
selectManyTableData
}
from
"./operationalData"
;
...
@@ -29,7 +29,7 @@ export async function getEnterprise() {
...
@@ -29,7 +29,7 @@ export async function getEnterprise() {
"毕业企业"
:
0
"毕业企业"
:
0
};
};
zldbList
.
forEach
(
item
=>
{
zldbList
.
forEach
(
item
=>
{
qyjbqk
.
孵化面积
+=
item
.
area
;
qyjbqk
.
孵化面积
+=
parseInt
(
item
.
area
)
;
})
})
let
fhColumn
=
[
"fId"
,
"eId"
,
"startTime"
,
"endTime"
,
"state"
,
"virtualCause"
,
"virtualCauseDes"
,
"moveOutType"
,
let
fhColumn
=
[
"fId"
,
"eId"
,
"startTime"
,
"endTime"
,
"state"
,
"virtualCause"
,
"virtualCauseDes"
,
"moveOutType"
,
...
@@ -72,11 +72,36 @@ export async function getEnterprise() {
...
@@ -72,11 +72,36 @@ export async function getEnterprise() {
// let rfscfb = getRfscfx(fhdbList);
// let rfscfb = getRfscfx(fhdbList);
//孵化企业行业领域占比
//孵化企业行业领域占比
孵化企业
dbList
.
forEach
(
info
=>
{
for
(
let
key
in
INDUSTRY
)
{
let
anyKey
:
any
=
key
;
})
if
(
isNaN
(
anyKey
))
{
let
keyStr
=
key
;
let
industry
=
INDUSTRY
[
key
];
let
count
=
await
selectData
(
OPERATIONALDATATYPE
.
查询数据量
,
TABLENAME
.
企业基础信息表
,
{
industry
},
null
);
qyfw
.
fhqyhylyzb
.
dataList
.
push
({
key
:
keyStr
,
value
:
count
})
}
}
let
year
=
[
"2019"
,
"2020"
,
"2021"
,
"2022"
,
"2023"
,
"2024"
];
let
qyrc
=
{
"就业人数"
:[],
"创业团队分布"
:[]
}
for
(
let
i
=
0
;
i
<
year
.
length
;
i
++
)
{
let
dbData
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
参保记录
,
{
annual
:
year
[
i
]},
null
);
let
count
=
0
;
dbData
.
forEach
(
info
=>
{
let
{
zhuanKe
,
benKe
,
yanJiuSheng
,
boShi
,
qiTa
}
=
info
;
count
+=
zhuanKe
;
count
+=
benKe
;
count
+=
yanJiuSheng
;
count
+=
boShi
;
count
+=
qiTa
;
})
qyrc
[
"就业人数"
].
push
({
key
:
year
[
i
],
value
:
count
})
}
return
qyfw
;
}
}
...
...
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