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
5fef50f9
Commit
5fef50f9
authored
Apr 22, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6f13f69a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
qyfw.ts
src/data/db/qyfw.ts
+14
-21
No files found.
src/data/db/qyfw.ts
View file @
5fef50f9
...
@@ -181,7 +181,7 @@ export async function getEnterprise() {
...
@@ -181,7 +181,7 @@ export async function getEnterprise() {
qyfw
.
本月融资金额
=
byrzqy
.
byrzjebhqs
;
qyfw
.
本月融资金额
=
byrzqy
.
byrzjebhqs
;
//在孵企业总营收
//在孵企业总营收
let
zfqyzys
=
await
getZfqyzys
(
在孵
dbList
);
let
zfqyzys
=
await
getZfqyzys
();
qyfw
.
在孵企业总营收
.
dataList
=
getKeyValue
(
zfqyzys
);
qyfw
.
在孵企业总营收
.
dataList
=
getKeyValue
(
zfqyzys
);
//金融服务企业
//金融服务企业
...
@@ -588,14 +588,10 @@ async function getJrfw(data, 企业融资dbList) {
...
@@ -588,14 +588,10 @@ async function getJrfw(data, 企业融资dbList) {
// jrfw.本月融资金额 = Math.round((jrfw.本月融资金额 / 100000000) * 100) / 100; //单位换算成万亿
// jrfw.本月融资金额 = Math.round((jrfw.本月融资金额 / 100000000) * 100) / 100; //单位换算成万亿
jrfw
.
本月融资金额
=
Math
.
round
((
jrfw
.
本月融资金额
)
*
100
)
/
100
;
//单位换算成万亿
jrfw
.
本月融资金额
=
Math
.
round
((
jrfw
.
本月融资金额
)
*
100
)
/
100
;
//单位换算成万亿
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
经营信息
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{},
null
);
//获取在孵企业经营数据
经营信息
dbList
.
forEach
(
info
=>
{
// let 经营信息dbList = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业经营信息, { eId: data[i].eId}, null);
jrfw
.
在孵企业总营收
+=
parseFloat
(
info
.
BI
);
let
经营信息
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{},
null
);
})
经营信息
dbList
.
forEach
(
info
=>
{
jrfw
.
在孵企业总营收
+=
parseFloat
(
info
.
BI
);
})
}
return
jrfw
;
return
jrfw
;
}
}
...
@@ -641,7 +637,7 @@ async function getByrzqy(企业融资dbList) {
...
@@ -641,7 +637,7 @@ async function getByrzqy(企业融资dbList) {
/**
/**
* 在孵企业总营收
* 在孵企业总营收
*/
*/
async
function
getZfqyzys
(
data
)
{
async
function
getZfqyzys
()
{
let
zfqyzys
=
{
let
zfqyzys
=
{
"500万以下"
:
0
,
"500万以下"
:
0
,
"500万-1000万"
:
0
,
"500万-1000万"
:
0
,
...
@@ -649,17 +645,14 @@ async function getZfqyzys(data) {
...
@@ -649,17 +645,14 @@ async function getZfqyzys(data) {
"2000万以上"
:
0
"2000万以上"
:
0
}
}
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
经营信息
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{},
null
);
//获取在孵企业经营数据
经营信息
dbList
.
forEach
(
info
=>
{
//BI(单位万元)
// let 经营信息dbList = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业经营信息, { eId: data[i].eId }, null);
let
BI
=
parseInt
(
info
.
BI
||
"0"
);
let
经营信息
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{},
null
);
if
(
BI
<
500
)
zfqyzys
[
"500万以下"
]
+=
1
;
经营信息
dbList
.
forEach
(
info
=>
{
//BI(单位万元)
else
if
(
BI
>=
500
&&
BI
<
1000
)
zfqyzys
[
"500万-1000万"
]
+=
1
;
if
(
info
.
BI
<
500
)
zfqyzys
[
"500万以下"
]
+=
1
;
else
if
(
BI
>=
1000
&&
BI
<
2000
)
zfqyzys
[
"1000万-2000万"
]
+=
1
;
else
if
(
info
.
BI
>=
500
&&
info
.
BI
<
1000
)
zfqyzys
[
"500万-1000万"
]
+=
1
;
else
zfqyzys
[
"2000万以上"
]
+=
1
;
else
if
(
info
.
BI
>=
1000
&&
info
.
BI
<
2000
)
zfqyzys
[
"1000万-2000万"
]
+=
1
;
})
else
zfqyzys
[
"2000万以上"
]
+=
1
;
})
}
return
zfqyzys
return
zfqyzys
}
}
...
...
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