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
b5e2dca7
Commit
b5e2dca7
authored
Feb 20, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
98e19e2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
qyfw.ts
src/data/db/qyfw.ts
+8
-6
zhyy.ts
src/data/db/zhyy.ts
+8
-0
No files found.
src/data/db/qyfw.ts
View file @
b5e2dca7
...
...
@@ -221,6 +221,7 @@ export async function getEnterpriseDetails(name, type) {
dataChange
.
push
({
eId
,
enterpriseName
});
})
//toupdate 要改掉 少用语法糖
let
dataList
=
[...
new
Map
(
dataChange
.
map
(
item
=>
[
item
.
eId
,
item
])).
values
()];
return
dataList
;
...
...
@@ -304,11 +305,12 @@ async function getQyfwhzsj() {
let
企业专利
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业专利表
,
{},
null
);
企业专利
dbList
.
forEach
(
info
=>
{
qyfwhzsj
.
企业专利
+=
parseFloat
(
info
.
alienPatent
)
||
0
;
qyfwhzsj
.
企业专利
+=
parseFloat
(
info
.
classIPatent
)
||
0
;
qyfwhzsj
.
企业专利
+=
parseFloat
(
info
.
secondClassPatent
)
||
0
;
qyfwhzsj
.
企业专利
+=
parseFloat
(
info
.
thirdPentent
)
||
0
;
qyfwhzsj
.
企业专利
+=
parseFloat
(
info
.
thirdPentent
)
||
0
;
qyfwhzsj
.
企业专利
+=
parseInt
(
info
.
alienPatent
||
0
)
;
qyfwhzsj
.
企业专利
+=
parseInt
(
info
.
classIPatent
||
0
);
qyfwhzsj
.
企业专利
+=
parseInt
(
info
.
secondClassPatent
||
0
);
qyfwhzsj
.
企业专利
+=
parseInt
(
info
.
thirdPentent
||
0
);
qyfwhzsj
.
企业专利
+=
parseInt
(
info
.
thirdPentent
||
0
);
})
...
...
@@ -450,7 +452,7 @@ async function getByrzqy(企业融资dbList){
}
})
金额
count
=
金额
count
/
100000000
;
//单位换算成万亿
byrzqy
.
融资企业
.
push
({
key
:
month
[
i
],
value
:
企业
count
});
byrzqy
[
"融资企业"
]
.
push
({
key
:
month
[
i
],
value
:
企业
count
});
byrzje
[
"融资金额"
].
push
({
key
:
month
[
i
],
value
:
金额
count
});
}
...
...
src/data/db/zhyy.ts
View file @
b5e2dca7
...
...
@@ -118,6 +118,14 @@ export async function getZhyy() {
let
fuWuQiYeTypeList
=
[];
// 遍历 NEEDCATEGORY 枚举
const
allNeedCategories
=
Object
.
values
(
NEEDCATEGORY
);
for
(
let
key
in
NEEDCATEGORY
)
{
let
keyAny
:
any
=
NEEDCATEGORY
[
key
];
if
(
isNaN
(
keyAny
))
{
//toupdate 这里继续完善 有点小bug
}
}
allNeedCategories
.
forEach
(
category
=>
{
const
categoryStr
=
changeEnumValue
(
NEEDCATEGORY
,
category
);
if
(
fuWuQiYeTypeMap
[
categoryStr
])
{
...
...
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