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
677ac0a8
Commit
677ac0a8
authored
May 17, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
49d78d9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
+25
-6
public.ts
src/biz/public.ts
+2
-2
qyszhx.ts
src/biz/qyszhx.ts
+19
-1
qyszhx.ts
src/data/db/qyszhx.ts
+3
-3
router.ts
src/routers/router.ts
+1
-0
No files found.
src/biz/public.ts
View file @
677ac0a8
...
@@ -31,4 +31,5 @@ function getEnumItf(enumCof) {
...
@@ -31,4 +31,5 @@ function getEnumItf(enumCof) {
}
}
return
dataList
;
return
dataList
;
}
}
\ No newline at end of file
src/biz/qyszhx.ts
View file @
677ac0a8
...
@@ -6,7 +6,7 @@ import { keyValuePackage, stringListPackage, tablePackage } from '../dataPackage
...
@@ -6,7 +6,7 @@ import { keyValuePackage, stringListPackage, tablePackage } from '../dataPackage
import
{
getKeyValueOut
,
getStringOut
,
getTableOut
}
from
'../dataPackage/out'
;
import
{
getKeyValueOut
,
getStringOut
,
getTableOut
}
from
'../dataPackage/out'
;
import
{
getQyszhx
}
from
'../data/db/qyszhx'
;
import
{
getQyszhx
}
from
'../data/db/qyszhx'
;
import
{
selectData
}
from
'../data/db/operationalData'
;
import
{
selectData
}
from
'../data/db/operationalData'
;
import
{
INDUSTRY
,
OPERATIONALDATATYPE
,
TABLENAME
}
from
'../config/enum'
;
import
{
CHANGESTATE
,
INDUSTRY
,
OPERATIONALDATATYPE
,
TABLENAME
}
from
'../config/enum'
;
export
async
function
getData
(
req
,
res
)
{
export
async
function
getData
(
req
,
res
)
{
...
@@ -154,4 +154,22 @@ export async function getIndustry(req, res) {
...
@@ -154,4 +154,22 @@ export async function getIndustry(req, res) {
}
}
export
async
function
allEnterpriseNameList
(
req
,
res
)
{
let
ret
:
any
=
{};
let
listList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业基础信息表
,
{
state
:
CHANGESTATE
.
已通过
},
[
"enterpriseName"
,
"eId"
]);
let
dataList
=
[];
listList
.
forEach
(
info
=>
{
dataList
.
push
({
key
:
info
.
enterpriseName
,
value
:
info
.
eId
})
});
ret
[
'enterprise'
]
=
dataList
;
res
.
send
(
ret
);
}
src/data/db/qyszhx.ts
View file @
677ac0a8
...
@@ -149,9 +149,9 @@ export async function getQyszhx(eId) {
...
@@ -149,9 +149,9 @@ export async function getQyszhx(eId) {
//融资情况
//融资情况
let
融资情况
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业融资
,
{
eId
},
[]);
let
融资情况
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业融资
,
{
eId
},
[]);
let
最新融资情况
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业融资
,
{
eId
,
"%orderDesc%"
:
"investmentDate"
},
[]);
//
let 最新融资情况 = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业融资, {eId, "%orderDesc%":"investmentDate"}, []);
let
rzqk
=
get
融资情况
(
融资情况
);
let
rzqk
=
get
融资情况
(
融资情况
);
rzqk
.
count
.
融资轮次
=
changeEnumValue
(
FINANCINGROUNDS
,
最新融资情况
.
financingRounds
);
//
rzqk.count.融资轮次 = changeEnumValue(FINANCINGROUNDS, 最新融资情况.financingRounds);
qyszhx
.
融资情况
.
count
=
getKeyValue
(
rzqk
.
count
);
qyszhx
.
融资情况
.
count
=
getKeyValue
(
rzqk
.
count
);
qyszhx
.
融资情况
.
dataList
=
rzqk
.
rzqk
;
qyszhx
.
融资情况
.
dataList
=
rzqk
.
rzqk
;
...
@@ -485,7 +485,7 @@ function get融资情况(data) {
...
@@ -485,7 +485,7 @@ function get融资情况(data) {
let
count
=
{
let
count
=
{
融资金额
:
0
,
融资金额
:
0
,
融资轮次
:
""
//
融资轮次:""
};
};
let
rzqk
=
[];
let
rzqk
=
[];
...
...
src/routers/router.ts
View file @
677ac0a8
...
@@ -15,6 +15,7 @@ export function setRouter(httpServer){
...
@@ -15,6 +15,7 @@ export function setRouter(httpServer){
//======post
//======post
httpServer
.
post
(
'/yuyi/viewserver/public/industry'
,
asyncHandler
(
qyszhxBiz
.
getIndustry
));
httpServer
.
post
(
'/yuyi/viewserver/public/industry'
,
asyncHandler
(
qyszhxBiz
.
getIndustry
));
httpServer
.
post
(
'/yuyi/viewserver/public/enterprise'
,
asyncHandler
(
qyszhxBiz
.
allEnterpriseNameList
));
httpServer
.
post
(
'/yuyi/viewserver/getnamelist'
,
asyncHandler
(
qyszhxBiz
.
getPinyinName
))
httpServer
.
post
(
'/yuyi/viewserver/getnamelist'
,
asyncHandler
(
qyszhxBiz
.
getPinyinName
))
httpServer
.
post
(
'/yuyi/viewserver/qyszhx'
,
asyncHandler
(
qyszhxBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/qyszhx'
,
asyncHandler
(
qyszhxBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/jxgljsc'
,
asyncHandler
(
jxgljscBiz
.
getData
));
httpServer
.
post
(
'/yuyi/viewserver/jxgljsc'
,
asyncHandler
(
jxgljscBiz
.
getData
));
...
...
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