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
9e6f144e
Commit
9e6f144e
authored
Apr 24, 2025
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
91c07982
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
28 deletions
+48
-28
enum.ts
src/config/enum.ts
+1
-0
jxgljsc.ts
src/data/db/jxgljsc.ts
+2
-1
qyszhx.ts
src/data/db/qyszhx.ts
+45
-27
No files found.
src/config/enum.ts
View file @
9e6f144e
...
@@ -193,6 +193,7 @@ export enum DEGREE {
...
@@ -193,6 +193,7 @@ export enum DEGREE {
硕士
,
硕士
,
博士
,
博士
,
博士以上
,
博士以上
,
其他
}
}
...
...
src/data/db/jxgljsc.ts
View file @
9e6f144e
...
@@ -338,10 +338,11 @@ async function getyj() {
...
@@ -338,10 +338,11 @@ async function getyj() {
map
[
info
.
eId
]
=
1
;
map
[
info
.
eId
]
=
1
;
});
});
// let 高风险 = await selectData(OPERATIONALDATATYPE.查询数据量, TABLENAME.企业孵化信息, {moveOutType:{"%between%":[MOVEOUTTYPE.企业注销, MOVEOUTTYPE.非毕业迁出]}}, null);
fhdbList
.
forEach
(
info
=>
{
fhdbList
.
forEach
(
info
=>
{
let
riskLevel
=
""
;
let
riskLevel
=
""
;
if
(
info
.
enterprise_fuhuas
[
0
].
moveOutType
==
MOVEOUTTYPE
.
非毕业迁出
)
{
if
(
info
.
enterprise_fuhuas
[
0
].
moveOutType
==
MOVEOUTTYPE
.
非毕业迁出
||
info
.
enterprise_fuhuas
[
0
].
moveOutType
==
MOVEOUTTYPE
.
企业注销
)
{
yj
.
高风险
+=
1
;
yj
.
高风险
+=
1
;
riskLevel
=
"高风险"
;
riskLevel
=
"高风险"
;
}
else
if
(
!
map
[
info
.
eId
])
{
}
else
if
(
!
map
[
info
.
eId
])
{
...
...
src/data/db/qyszhx.ts
View file @
9e6f144e
...
@@ -89,10 +89,11 @@ export async function getQyszhx(eId) {
...
@@ -89,10 +89,11 @@ export async function getQyszhx(eId) {
企业服务联查
includeConf
[
TABLENAME
.
企业服务表
]
=
{
cloum
:
企业服务
Column
,
where
:
{}
}
企业服务联查
includeConf
[
TABLENAME
.
企业服务表
]
=
{
cloum
:
企业服务
Column
,
where
:
{}
}
let
企业服务信息
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
[],
企业服务联查
includeConf
);
let
企业服务信息
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
[],
企业服务联查
includeConf
);
let
参保记录
Column
=
[
"cId"
,
"eId"
,
"annual"
,
"zhuanKe"
,
"benKe"
,
"shuoshi"
,
"boShi"
,
"boshiyishang"
];
let
参保记录
Column
=
[
"cId"
,
"eId"
,
"annual"
,
"zhuanKe"
,
"benKe"
,
"shuoshi"
,
"boShi"
,
"boshiyishang"
,
"qiTa"
];
let
参保记录联查
includeConf
=
{};
let
参保记录联查
includeConf
=
{};
参保记录联查
includeConf
[
TABLENAME
.
参保记录
]
=
{
cloum
:
参保记录
Column
,
where
:
{}
}
参保记录联查
includeConf
[
TABLENAME
.
参保记录
]
=
{
cloum
:
参保记录
Column
,
where
:
{}
}
let
参保记录信息
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
[],
参保记录联查
includeConf
);
// let 参保记录信息 = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, { eId }, [], 参保记录联查includeConf);
let
参保记录信息
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
参保记录
,
{
eId
},
参保记录
Column
);
let
租赁信息
Column
=
[
"leaseId"
,
"eId"
,
"area"
,
"startTime"
,
"endTime"
];
let
租赁信息
Column
=
[
"leaseId"
,
"eId"
,
"area"
,
"startTime"
,
"endTime"
];
let
租赁信息联查
includeConf
=
{};
let
租赁信息联查
includeConf
=
{};
...
@@ -184,7 +185,7 @@ export async function getQyszhx(eId) {
...
@@ -184,7 +185,7 @@ export async function getQyszhx(eId) {
qyszhx
.
知识产权
.
dataList
=
getKeyValue
(
zscq
);
qyszhx
.
知识产权
.
dataList
=
getKeyValue
(
zscq
);
//企业员工画像
//企业员工画像
let
qyyghx
=
await
get
企业员工画像
(
创业团队
信息
);
let
qyyghx
=
await
get
企业员工画像
(
参保记录
信息
);
qyszhx
.
企业员工画像
.
dataList
=
getKeyValue
(
qyyghx
);
qyszhx
.
企业员工画像
.
dataList
=
getKeyValue
(
qyyghx
);
let
专利总数
=
0
;
let
专利总数
=
0
;
...
@@ -522,11 +523,10 @@ function get租房补贴(企业资质信息, 企业专利信息, 参保记录信
...
@@ -522,11 +523,10 @@ function get租房补贴(企业资质信息, 企业专利信息, 参保记录信
// 检查社保状态
// 检查社保状态
let
shebaoCompleted
=
false
;
let
shebaoCompleted
=
false
;
if
(
参保记录信息
[
0
])
{
if
(
参保记录信息
[
0
])
{
参保记录信息
[
0
].
enterprise_canbaos
.
forEach
(
info
=>
{
if
(
info
.
zhuanKe
||
info
.
benKe
||
info
.
shuoshi
||
info
.
boShi
||
info
.
boshiyishang
)
{
if
(
参保记录信息
[
0
].
zhuanKe
||
参保记录信息
[
0
].
benKe
||
参保记录信息
[
0
].
shuoshi
||
参保记录信息
[
0
].
boShi
||
参保记录信息
[
0
].
boshiyishang
||
参保记录信息
[
0
].
qiTa
)
{
shebaoCompleted
=
true
;
shebaoCompleted
=
true
;
}
}
});
}
}
zfbt
.
社保
=
shebaoCompleted
?
"已完成"
:
"未完成"
;
zfbt
.
社保
=
shebaoCompleted
?
"已完成"
:
"未完成"
;
...
@@ -795,26 +795,44 @@ function get知识产权(data) {
...
@@ -795,26 +795,44 @@ function get知识产权(data) {
async
function
get
企业员工画像
(
data
)
{
async
function
get
企业员工画像
(
data
)
{
let
qyyghx
=
{};
let
qyyghx
=
{
"专科"
:
0
,
for
(
let
key
in
DEGREE
)
{
"本科"
:
0
,
let
anyKey
:
any
=
key
;
"硕士"
:
0
,
if
(
isNaN
(
anyKey
))
{
"博士"
:
0
,
let
keyStr
=
key
;
"博士以上"
:
0
,
if
(
!
qyyghx
[
keyStr
])
qyyghx
[
keyStr
]
=
0
;
"其他"
:
0
,
let
degree
=
DEGREE
[
key
];
};
data
.
forEach
(
info
=>
{
let
{
enterprise_teams
}
=
info
;
if
(
data
&&
data
[
0
])
{
if
(
enterprise_teams
&&
Array
.
isArray
(
enterprise_teams
))
{
qyyghx
[
"专科"
]
=
data
[
0
].
zhuanKe
||
0
;
enterprise_teams
.
forEach
(
team
=>
{
qyyghx
[
"本科"
]
=
data
[
0
].
benKe
||
0
;
if
(
degree
==
team
.
degree
)
{
qyyghx
[
"硕士"
]
=
data
[
0
].
shuoshi
||
0
;
qyyghx
[
keyStr
]
+=
1
;
qyyghx
[
"博士"
]
=
data
[
0
].
boShi
||
0
;
}
qyyghx
[
"博士以上"
]
=
data
[
0
].
boshiyishang
||
0
;
})
qyyghx
[
"其他"
]
=
data
[
0
].
qiTa
||
0
;
}
})
}
}
}
// for (let key in DEGREE) {
// let anyKey: any = key;
// if (isNaN(anyKey)) {
// let keyStr = key;
// if (!qyyghx[keyStr]) qyyghx[keyStr] = 0;
// let degree = DEGREE[key];
// data.forEach(info => {
// let { enterprise_teams } = info;
// if (enterprise_teams && Array.isArray(enterprise_teams)) {
// enterprise_teams.forEach(team => {
// if (degree == team.degree) {
// qyyghx[keyStr] += 1;
// }
// })
// }
// })
// }
// }
return
qyyghx
;
return
qyyghx
;
}
}
...
...
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