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
a0f66d00
Commit
a0f66d00
authored
Mar 13, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e2a26362
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
zhyy.ts
src/data/db/zhyy.ts
+10
-8
No files found.
src/data/db/zhyy.ts
View file @
a0f66d00
...
...
@@ -3,6 +3,7 @@ import { AWARDLEVEL, FOLLOWUPSTATUS, FUHUASTATE, INDUSTRY, MOVEOUTTYPE, NEEDCATE
import
{
selectData
,
selectManyTableData
}
from
"./operationalData"
;
import
{
changeEnumValue
}
from
"../../tools/eccEnum"
;
import
{
getChart
,
getYearList
}
from
"./out"
;
import
{
getMySqlMs
}
from
"../../tools/systemTools"
;
function
getStartAndEndTimeYearList
(
startTime
,
endTime
)
{
...
...
@@ -261,11 +262,11 @@ export async function getZhyy() {
let
{
eId
,
annual
}
=
info
;
let
itemCount
=
0
;
let
itemYear
=
new
Date
(
annual
).
getFullYear
();
if
(
info
.
zhuanKe
)
itemCount
+=
info
.
zhuanKe
;
if
(
info
.
benKe
)
itemCount
+=
info
.
benKe
;
if
(
info
.
shuoshi
)
itemCount
+=
info
.
shuoshi
;
if
(
info
.
boShi
)
itemCount
+=
info
.
boShi
;
if
(
info
.
boshiyishang
)
itemCount
+=
info
.
boshiyishang
;
if
(
info
.
zhuanKe
)
itemCount
+=
parseInt
(
info
.
zhuanKe
)
;
if
(
info
.
benKe
)
itemCount
+=
parseInt
(
info
.
benKe
)
;
if
(
info
.
shuoshi
)
itemCount
+=
parseInt
(
info
.
shuoshi
)
;
if
(
info
.
boShi
)
itemCount
+=
parseInt
(
info
.
boShi
)
;
if
(
info
.
boshiyishang
)
itemCount
+=
parseInt
(
info
.
boshiyishang
)
;
if
(
!
年度就业人数趋势分析
Map
[
itemYear
])
年度就业人数趋势分析
Map
[
itemYear
]
=
{
key
:
itemYear
,
value
:
0
};
年度就业人数趋势分析
Map
[
itemYear
].
value
+=
itemCount
;
...
...
@@ -273,12 +274,13 @@ export async function getZhyy() {
let
年度就业人数趋势分析
=
Object
.
values
(
年度就业人数趋势分析
Map
);
//产业规模分析
let
jingYingList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{
annual
:
new
Date
().
getFullYear
()
},
null
);
let
jingYingThisYear
=
moment
().
startOf
(
"year"
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
let
jingYingList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业经营信息
,
{
annual
:
jingYingThisYear
},
null
);
let
产业规模企业
Map
=
{};
jingYingList
.
forEach
(
info
=>
{
let
{
BI
,
eId
}
=
info
;
if
(
!
产业规模企业
Map
[
eId
])
产业规模企业
Map
[
eId
]
=
0
;
产业规模企业
Map
[
eId
]
+=
BI
;
产业规模企业
Map
[
eId
]
+=
parseFloat
(
BI
)
;
});
let
产业规模分析
List
=
[
{
num
:
400
,
key
:
"超400万"
,
value
:
0
},
...
...
@@ -292,7 +294,7 @@ export async function getZhyy() {
for
(
let
i
=
0
;
i
<
产业规模分析
List
.
length
;
i
++
)
{
let
{
num
}
=
产业规模分析
List
[
i
];
if
(
itemCount
>
num
)
{
产业规模分析
List
[
i
]
+=
itemCount
;
产业规模分析
List
[
i
]
.
value
+=
itemCount
;
break
;
}
}
...
...
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