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
f28ddecc
Commit
f28ddecc
authored
May 13, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d0f5e79b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
8 deletions
+56
-8
qyfw.ts
src/biz/qyfw.ts
+2
-2
qyszhx.ts
src/biz/qyszhx.ts
+0
-0
zhyy.ts
src/biz/zhyy.ts
+3
-3
enum.ts
src/config/enum.ts
+13
-0
out.ts
src/data/db/out.ts
+34
-0
qyszhx.ts
src/data/db/qyszhx.ts
+0
-0
zhyy.ts
src/data/db/zhyy.ts
+1
-0
router.ts
src/routers/router.ts
+3
-3
No files found.
src/biz/qyfw.ts
View file @
f28ddecc
import
{
systemConfig
}
from
'../config/serverConfig'
;
import
{
getEnterprise
,
getEnterpriseDetails
,
get
入孵企业数量变化趋势
}
from
'../data/db/qyfw'
;
import
{
zhyyTableData
}
from
'../data/table/zhyyData'
;
import
{
doubleYBarCharPackage
,
keyValuePackage
,
onceYBarChartPackage
,
rank
Package
,
tablePackage
}
from
'../dataPackage/inFrontOut'
;
import
{
get
DoubleYBarChartOut
,
getKeyValueOut
,
getOnceYBarChart
Out
,
getTableOut
}
from
'../dataPackage/out'
;
import
{
keyValue
Package
,
tablePackage
}
from
'../dataPackage/inFrontOut'
;
import
{
get
KeyValue
Out
,
getTableOut
}
from
'../dataPackage/out'
;
/* 企业服务 */
...
...
src/biz/qyszhx.ts
View file @
f28ddecc
This diff is collapsed.
Click to expand it.
src/biz/zhyy.ts
View file @
f28ddecc
import
{
systemConfig
}
from
'../config/serverConfig'
;
import
{
getZhyy
}
from
'../data/db/zhyy'
;
import
{
zhyyTableData
}
from
'../data/table/zhyyData'
;
import
{
doubleYBarCharPackage
,
keyValuePackage
,
onceYBarChartPackage
,
rank
Package
,
tablePackage
}
from
'../dataPackage/inFrontOut'
;
import
{
get
DoubleYBarChartOut
,
getKeyValueOut
,
getOnceYBarChart
Out
,
getTableOut
}
from
'../dataPackage/out'
;
import
{
keyValue
Package
,
tablePackage
}
from
'../dataPackage/inFrontOut'
;
import
{
get
KeyValue
Out
,
getTableOut
}
from
'../dataPackage/out'
;
import
{
getChart
}
from
'../data/db/out'
;
/*
智慧运营
*/
/*
*智慧运营
*/
export
async
function
getData
(
req
,
res
)
{
let
excelData
=
zhyyTableData
();
...
...
src/config/enum.ts
View file @
f28ddecc
...
...
@@ -40,6 +40,19 @@ export enum TABLENAME {
企业专利表
=
'enterprise_patent'
,
企业基础信息表
=
'enterprise'
,
企业服务表
=
'enterprise_service'
,
股权结构
=
'ownership'
,
行业信息分类
=
"enterprise_industry"
,
主要人员
=
"employees"
,
分支机构
=
"branches"
,
行政许可核查
=
"license"
,
空壳扫描
=
"empty"
,
风险
=
"enterprise_risk"
,
科创分
=
"enterprise_stem"
,
资质证书
=
"certification"
,
失信核查
=
"dishonesty"
,
严重违法犯罪
=
"break_the_law"
,
对外投资
=
"overseas_investment"
,
}
...
...
src/data/db/out.ts
View file @
f28ddecc
...
...
@@ -72,3 +72,37 @@ export function getYearList() {
return
years
;
}
/**
* 获取最近的四个季度
* @param count
* @returns
*/
export
function
getRecentQuarters
(
count
=
4
)
{
const
currentDate
=
moment
();
const
currentQuarter
=
Math
.
floor
(
currentDate
.
month
()
/
3
)
+
1
;
const
result
=
[];
let
year
=
currentDate
.
year
();
let
quarter
=
currentQuarter
;
for
(
let
i
=
0
;
i
<
count
;
i
++
)
{
result
.
push
({
year
:
year
,
quarter
:
quarter
});
// 计算上一个季度
quarter
--
;
if
(
quarter
===
0
)
{
quarter
=
4
;
year
--
;
}
}
return
result
;
}
src/data/db/qyszhx.ts
View file @
f28ddecc
This diff is collapsed.
Click to expand it.
src/data/db/zhyy.ts
View file @
f28ddecc
...
...
@@ -80,6 +80,7 @@ async function calculateRevenue(start: string, end: string) {
return
totalRevenue
;
}
export
async
function
getZhyy
()
{
let
zhyy
=
{
孵化器概况
:[],
...
...
src/routers/router.ts
View file @
f28ddecc
import
*
as
asyncHandler
from
'express-async-handler'
import
*
as
wmk
qyszhxBiz
from
'../biz/qyszhx'
;
import
*
as
qyszhxBiz
from
'../biz/qyszhx'
;
import
*
as
jxgljscBiz
from
'../biz/jxgljsc'
;
...
...
@@ -14,8 +14,8 @@ import * as publicBiz from '../biz/public';
export
function
setRouter
(
httpServer
){
//======post
httpServer
.
post
(
'/yuyi/viewserver/qyszhx'
,
asyncHandler
(
wmk
qyszhxBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/getnamelist'
,
asyncHandler
(
qyszhxBiz
.
getPinyinName
))
httpServer
.
post
(
'/yuyi/viewserver/qyszhx'
,
asyncHandler
(
qyszhxBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/jxgljsc'
,
asyncHandler
(
jxgljscBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/qyfw'
,
asyncHandler
(
qyfwBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/qianruqianchutable'
,
asyncHandler
(
qyfwBiz
.
getQianRuQianChu
));
...
...
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