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
a2fe17fe
Commit
a2fe17fe
authored
Mar 13, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/yuyiViewServer
parents
a8373a09
e2a26362
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
zhyy.ts
src/data/db/zhyy.ts
+5
-2
No files found.
src/data/db/zhyy.ts
View file @
a2fe17fe
...
@@ -45,6 +45,7 @@ export async function getZhyy() {
...
@@ -45,6 +45,7 @@ export async function getZhyy() {
let
areaCount
=
0
;
let
areaCount
=
0
;
let
enterpriseCount
=
0
;
let
enterpriseCount
=
0
;
let
面积变化
Map
=
{};
let
面积变化
Map
=
{};
let
thisYear
=
new
Date
().
getFullYear
();
let
firstDayMsOfMonth
=
moment
().
startOf
(
'month'
).
valueOf
();
let
firstDayMsOfMonth
=
moment
().
startOf
(
'month'
).
valueOf
();
let
checlTimeMs
=
moment
(
firstDayMsOfMonth
).
subtract
(
8
,
'months'
).
valueOf
();
let
checlTimeMs
=
moment
(
firstDayMsOfMonth
).
subtract
(
8
,
'months'
).
valueOf
();
...
@@ -75,6 +76,7 @@ export async function getZhyy() {
...
@@ -75,6 +76,7 @@ export async function getZhyy() {
if
(
enterprise_leases
[
0
].
startTime
&&
enterprise_leases
[
0
].
endTime
)
{
if
(
enterprise_leases
[
0
].
startTime
&&
enterprise_leases
[
0
].
endTime
)
{
let
leasesYearList
=
getStartAndEndTimeYearList
(
enterprise_leases
[
0
].
startTime
,
enterprise_leases
[
0
].
endTime
);
let
leasesYearList
=
getStartAndEndTimeYearList
(
enterprise_leases
[
0
].
startTime
,
enterprise_leases
[
0
].
endTime
);
leasesYearList
.
forEach
(
itemYear
=>
{
leasesYearList
.
forEach
(
itemYear
=>
{
if
(
itemYear
>
thisYear
)
return
;
if
(
!
面积变化
Map
[
itemYear
]
)
面积变化
Map
[
itemYear
]
=
{
key
:
itemYear
,
value
:
0
};
if
(
!
面积变化
Map
[
itemYear
]
)
面积变化
Map
[
itemYear
]
=
{
key
:
itemYear
,
value
:
0
};
面积变化
Map
[
itemYear
].
value
+=
parseFloat
(
area
);
面积变化
Map
[
itemYear
].
value
+=
parseFloat
(
area
);
});
});
...
@@ -258,14 +260,15 @@ export async function getZhyy() {
...
@@ -258,14 +260,15 @@ export async function getZhyy() {
jiuYeList
.
forEach
(
info
=>
{
jiuYeList
.
forEach
(
info
=>
{
let
{
eId
,
annual
}
=
info
;
let
{
eId
,
annual
}
=
info
;
let
itemCount
=
0
;
let
itemCount
=
0
;
let
itemYear
=
new
Date
(
annual
).
getFullYear
();
if
(
info
.
zhuanKe
)
itemCount
+=
info
.
zhuanKe
;
if
(
info
.
zhuanKe
)
itemCount
+=
info
.
zhuanKe
;
if
(
info
.
benKe
)
itemCount
+=
info
.
benKe
;
if
(
info
.
benKe
)
itemCount
+=
info
.
benKe
;
if
(
info
.
shuoshi
)
itemCount
+=
info
.
shuoshi
;
if
(
info
.
shuoshi
)
itemCount
+=
info
.
shuoshi
;
if
(
info
.
boShi
)
itemCount
+=
info
.
boShi
;
if
(
info
.
boShi
)
itemCount
+=
info
.
boShi
;
if
(
info
.
boshiyishang
)
itemCount
+=
info
.
boshiyishang
;
if
(
info
.
boshiyishang
)
itemCount
+=
info
.
boshiyishang
;
if
(
!
年度就业人数趋势分析
Map
[
annual
])
年度就业人数趋势分析
Map
[
annual
]
=
{
key
:
annual
,
value
:
0
};
if
(
!
年度就业人数趋势分析
Map
[
itemYear
])
年度就业人数趋势分析
Map
[
itemYear
]
=
{
key
:
itemYear
,
value
:
0
};
年度就业人数趋势分析
Map
[
annual
].
value
+=
itemCount
;
年度就业人数趋势分析
Map
[
itemYear
].
value
+=
itemCount
;
});
});
let
年度就业人数趋势分析
=
Object
.
values
(
年度就业人数趋势分析
Map
);
let
年度就业人数趋势分析
=
Object
.
values
(
年度就业人数趋势分析
Map
);
...
...
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