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
849893cc
Commit
849893cc
authored
Apr 22, 2025
by
Zllgogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4dc360f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
19 deletions
+19
-19
yuyiServer.xlsx
res/yuyiServer.xlsx
+0
-0
jxgljsc.ts
src/data/db/jxgljsc.ts
+1
-1
qyszhx.ts
src/data/db/qyszhx.ts
+18
-14
zhyy.ts
src/data/db/zhyy.ts
+0
-4
No files found.
res/yuyiServer.xlsx
View file @
849893cc
No preview for this file type
src/data/db/jxgljsc.ts
View file @
849893cc
...
...
@@ -39,7 +39,7 @@ export async function getJxgljsc() {
//获取在孵企业
// let 在孵dbList = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业孵化信息, { "endTime": { "%gt%": nowTime } }, fhColumn);
let
在孵
dbList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
企业孵化信息
,
{
state
:
{
"%ne%"
:
FUHUASTATE
.
迁出
}
},
fhColumn
);
//获取在孵企业租赁信息
let
租赁
Column
=
[
"eId"
,
"year"
,
"alienPatent"
,
"classIPatent"
,
"secondClassPatent"
,
"thirdPentent"
];
let
在孵租赁联查
includeConf
=
{};
...
...
src/data/db/qyszhx.ts
View file @
849893cc
...
...
@@ -42,6 +42,7 @@ export async function getQyszhx(eId) {
/**数据库查询 */
let
企业基础信息
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业基础信息表
,
{
eId
},
null
);
if
(
!
Object
.
keys
(
企业基础信息
).
length
)
console
.
log
(
'eId:'
,
eId
);
// let column = ["eId", "enterpriseName", "uscc", "", "", "", "", "", "", "", "", "", "", "", ""];
let
孵化
Column
=
[
"fId"
,
"eId"
,
"startTime"
,
"endTime"
,
"state"
,
"virtualCause"
,
"virtualCauseDes"
,
"moveOutType"
,
"moveOutTrace"
,
"moveOutCause"
,
"moveOutTime"
,
...
...
@@ -50,8 +51,6 @@ export async function getQyszhx(eId) {
let
企业孵化联查
includeConf
=
{};
企业孵化联查
includeConf
[
TABLENAME
.
企业孵化信息
]
=
{
cloum
:
孵化
Column
,
where
:
{}
}
let
企业孵化信息
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
[],
企业孵化联查
includeConf
);
console
.
log
(
企业孵化信息
);
let
资质
Column
=
[
"qId"
,
"eId"
,
"kxTime"
,
"zjtxTime"
,
"xjrTime"
,
"xjrPyTime"
,
"goPublicTime"
,
"gaoXinJiShuTime"
,
"goPublicSector"
];
let
企业资质联查
includeConf
=
{};
...
...
@@ -123,9 +122,11 @@ export async function getQyszhx(eId) {
首次入孵时间
:
"-"
,
};
if
(
企业基础信息
.
logonTime
)
qyjbsj
.
注册时间
=
moment
(
企业基础信息
.
logonTime
).
format
(
"YYYY-MM-DD"
)
if
(
企业孵化信息
[
0
].
enterprise_fuhuas
[
0
].
startTime
)
qyjbsj
.
首次入孵时间
=
moment
(
企业孵化信息
[
0
].
enterprise_fuhuas
[
0
].
startTime
).
format
(
"YYYY-MM-DD"
)
if
(
企业孵化信息
[
0
])
{
if
(
企业孵化信息
[
0
].
enterprise_fuhuas
[
0
].
startTime
)
qyjbsj
.
首次入孵时间
=
moment
(
企业孵化信息
[
0
].
enterprise_fuhuas
[
0
].
startTime
).
format
(
"YYYY-MM-DD"
)
}
if
(
企业基础信息
.
firstLoginTime
)
qyjbsj
.
迁入时间
=
moment
(
企业基础信息
.
firstLoginTime
).
format
(
"YYYY-MM-DD"
)
qyszhx
.
企业基本数据
.
dataList
=
getKeyValue
(
qyjbsj
);
qyszhx
.
企业基本数据
.
dataList
=
getKeyValue
(
qyjbsj
);
//企业标签 todo
let
qybq
=
get
企业标签
(
企业资质信息
);
...
...
@@ -242,7 +243,7 @@ export async function getQyszhx(eId) {
}
qyszhx
.
服务记录
.
dataList
=
getKeyValue
(
fwjl
);
//就业
let
jiuYeList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
参保记录
,
{
eId
},
null
);
...
...
@@ -333,7 +334,7 @@ function get研发占比(data) {
yfzb
.
研发占比
=
百分比
;
yfzb
.
是否达标
=
达标状态
;
yfzb
.
目标值
=
"20%"
;
// // 确保年份信息从 manage 中正确提取
// let 年份 = moment(enterprise_manages[0]?.annual).format("YYYY"); // 假设所有季度属于同一年
// yfzb.push({
...
...
@@ -397,13 +398,13 @@ function get企业自画像(企业经营信息, 企业融资信息, 企业专利
enterprise_financings
.
forEach
(
financing
=>
{
const
融资日期
=
new
Date
(
financing
.
investmentDate
);
if
(
融资日期
.
getFullYear
()
===
当前年份
融资日期
.
getFullYear
()
===
当前年份
// 融资日期.getMonth() + 1 === 当前月份
)
{
本年融资总额
+=
parseFloat
(
financing
.
financingAmount
||
0
);
}
// 累加总融资金额
总融资金额
+=
parseFloat
(
financing
.
financingAmount
||
0
);
// 累加总融资金额
总融资金额
+=
parseFloat
(
financing
.
financingAmount
||
0
);
});
}
});
...
...
@@ -520,11 +521,14 @@ function get租房补贴(企业资质信息, 企业专利信息, 参保记录信
// 检查社保状态
let
shebaoCompleted
=
false
;
参保记录信息
[
0
].
enterprise_canbaos
.
forEach
(
info
=>
{
if
(
info
.
zhuanKe
||
info
.
benKe
||
info
.
shuoshi
||
info
.
boShi
||
info
.
boshiyishang
)
{
shebaoCompleted
=
true
;
}
});
if
(
参保记录信息
[
0
])
{
参保记录信息
[
0
].
enterprise_canbaos
.
forEach
(
info
=>
{
if
(
info
.
zhuanKe
||
info
.
benKe
||
info
.
shuoshi
||
info
.
boShi
||
info
.
boshiyishang
)
{
shebaoCompleted
=
true
;
}
});
}
zfbt
.
社保
=
shebaoCompleted
?
"已完成"
:
"未完成"
;
// 检查软著状态
...
...
src/data/db/zhyy.ts
View file @
849893cc
...
...
@@ -126,9 +126,6 @@ export async function getZhyy() {
let
startTimeMs
=
new
Date
(
startTime
).
valueOf
();
if
(
startTimeMs
>=
checlTimeMs
)
{
let
timeStr
=
moment
(
startTime
).
format
(
"YY/MM"
);
console
.
log
(
"timeStr"
,
timeStr
);
console
.
log
(
ruZhuMap
[
timeStr
],
"ruZhuMap[timeStr]"
);
if
(
!
ruZhuMap
[
timeStr
])
ruZhuMap
[
timeStr
]
=
0
;
...
...
@@ -170,7 +167,6 @@ export async function getZhyy() {
for
(
let
key
in
ruZhuMap
)
{
入驻企业变化趋势
.
push
({
key
,
value
:
ruZhuMap
[
key
]
});
}
console
.
log
(
入驻企业变化趋势
);
// 入驻企业变化趋势.sort((a, b) => { return parseInt(a.key) - parseInt(b.key) });
入驻企业变化趋势
.
sort
((
a
,
b
)
=>
{
...
...
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