Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
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
zjxcxServer
Commits
66f99b85
Commit
66f99b85
authored
Feb 21, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4e86b316
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
12 deletions
+35
-12
out0213_3.zip
out0213_3.zip
+0
-0
enterprise.ts
src/biz/enterprise/enterprise.ts
+5
-4
base.ts
src/biz/fuHuqQi/base.ts
+0
-0
ojbectResultKeyConfig.ts
src/config/ojbectResultKeyConfig.ts
+2
-0
enterprise.ts
src/data/enterprise/enterprise.ts
+1
-1
fuhuaqi.ts
src/data/fuHuaQi/fuhuaqi.ts
+1
-1
fuHuaQi.ts
src/routers/admin/fuHuaQi.ts
+3
-3
dataInit.ts
src/tools/dataInit.ts
+7
-1
verificationEnum.ts
src/util/verificationEnum.ts
+16
-2
No files found.
out0213_3.zip
deleted
100644 → 0
View file @
4e86b316
File deleted
src/biz/enterprise/enterprise.ts
View file @
66f99b85
...
@@ -209,12 +209,13 @@ export async function enterpriseList(createType:number, fuHuaQiUscc:string, indu
...
@@ -209,12 +209,13 @@ export async function enterpriseList(createType:number, fuHuaQiUscc:string, indu
* 管理后台端
* 管理后台端
* @param createType 新注册时间/迁入时间
* @param createType 新注册时间/迁入时间
* @param fuHuaQiUscc 所属孵化器
* @param fuHuaQiUscc 所属孵化器
* @param industry 行业领域
* @param industry 行业领域
数组
* @param isNaturalPersonHolding 自然人控股
* @param isNaturalPersonHolding 自然人控股
* @returns
dataList
* @returns
二维数组
*/
*/
export
async
function
outPutEnterpriseData
(
createType
:
number
,
fuHuaQiUscc
:
string
,
industry
,
isNaturalPersonHolding
:
number
,
type
:
Number
)
{
export
async
function
outPutEnterpriseData
(
createType
:
number
,
fuHuaQiUscc
:
string
,
industry
,
isNaturalPersonHolding
:
number
,
type
:
Number
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
//查询参数
if
(
type
==
configEnum
.
OUTPUTTYPE
.
当前数据
)
{
if
(
type
==
configEnum
.
OUTPUTTYPE
.
当前数据
)
{
if
(
createType
==
2
||
createType
==
3
)
{
if
(
createType
==
2
||
createType
==
3
)
{
selectParam
.
isCreate
=
createType
==
2
?
true
:
false
;
selectParam
.
isCreate
=
createType
==
2
?
true
:
false
;
...
@@ -225,9 +226,9 @@ export async function outPutEnterpriseData(createType:number, fuHuaQiUscc:string
...
@@ -225,9 +226,9 @@ export async function outPutEnterpriseData(createType:number, fuHuaQiUscc:string
selectParam
.
isNaturalPersonHolding
=
isNaturalPersonHolding
==
2
?
true
:
false
;
selectParam
.
isNaturalPersonHolding
=
isNaturalPersonHolding
==
2
?
true
:
false
;
}
}
}
}
selectParam
.
draftLock
=
true
;
//匹配已经提交入库的企业
let
usccMap
=
await
fuHuaQiData
.
findAllFuHuaQiOperationNameMap
();
let
usccMap
=
await
fuHuaQiData
.
findAllFuHuaQiOperationNameMap
();
selectParam
.
draftLock
=
true
;
let
dataBaseList
=
await
enterpriseData
.
findEnterpriseList
(
selectParam
);
let
dataBaseList
=
await
enterpriseData
.
findEnterpriseList
(
selectParam
);
let
dataList
=
[];
let
dataList
=
[];
dataBaseList
.
forEach
(
info
=>
{
dataBaseList
.
forEach
(
info
=>
{
...
...
src/biz/fuHuqQi/base.ts
View file @
66f99b85
This diff is collapsed.
Click to expand it.
src/config/ojbectResultKeyConfig.ts
View file @
66f99b85
...
@@ -26,6 +26,7 @@ export const FuHuaQiBaseListConfig = {
...
@@ -26,6 +26,7 @@ export const FuHuaQiBaseListConfig = {
hatchingGround
:{
key
:
"经备案孵化场地"
},
hatchingGround
:{
key
:
"经备案孵化场地"
},
foundingTeam
:{
key
:
"创业团队"
},
foundingTeam
:{
key
:
"创业团队"
},
operationModel
:{
key
:
"运营模式"
},
operationModel
:{
key
:
"运营模式"
},
foundingTeamType
:{
key
:
"创业团队类型"
}
};
};
/**
/**
...
@@ -61,6 +62,7 @@ export const EnterpriseFinancingInfoConfig = {
...
@@ -61,6 +62,7 @@ export const EnterpriseFinancingInfoConfig = {
fuHuaQiInvestment
:{
key
:
"孵化器是否投资"
},
fuHuaQiInvestment
:{
key
:
"孵化器是否投资"
},
fuHuaQiInvestmentAmount
:{
key
:
"孵化器投资金额(万元)"
},
//
fuHuaQiInvestmentAmount
:{
key
:
"孵化器投资金额(万元)"
},
//
fuHuaQiInvestmentStyle
:{
key
:
"孵化器投资方式"
},
//
fuHuaQiInvestmentStyle
:{
key
:
"孵化器投资方式"
},
//
financingRounds
:{
key
:
"融资轮次"
}
};
};
/**
/**
...
...
src/data/enterprise/enterprise.ts
View file @
66f99b85
...
@@ -117,7 +117,7 @@ export async function findEnterpriseCountByFuHuaQiUscc(fuHuaQiUscc:string) {
...
@@ -117,7 +117,7 @@ export async function findEnterpriseCountByFuHuaQiUscc(fuHuaQiUscc:string) {
* 聚合查询 孵化器所拥有的企业数量
* 聚合查询 孵化器所拥有的企业数量
* @returns {} key=孵化器统一信用 value=企业数量
* @returns {} key=孵化器统一信用 value=企业数量
*/
*/
export
async
function
groupFindEnterprise
()
{
export
async
function
groupFindEnterprise
Count
()
{
let
match
=
{
draftLock
:
true
};
//前置条件
let
match
=
{
draftLock
:
true
};
//前置条件
let
dataList
=
await
enterpriseModel
.
aggregate
([{
$match
:
match
},{
$group
:{
_id
:
"$fuHuaQiUscc"
,
count
:{
$sum
:
1
}}}]).
exec
();
let
dataList
=
await
enterpriseModel
.
aggregate
([{
$match
:
match
},{
$group
:{
_id
:
"$fuHuaQiUscc"
,
count
:{
$sum
:
1
}}}]).
exec
();
let
result
=
{};
let
result
=
{};
...
...
src/data/fuHuaQi/fuhuaqi.ts
View file @
66f99b85
...
@@ -46,7 +46,7 @@ const fuHuaQiSchema = new Schema({
...
@@ -46,7 +46,7 @@ const fuHuaQiSchema = new Schema({
personInChargePhone
:
String
,
//负责人联系电话
personInChargePhone
:
String
,
//负责人联系电话
hatchingGround
:{
type
:[
hatchingGroundSchema
],
default
:[]
},
//经备案孵化场地
hatchingGround
:{
type
:[
hatchingGroundSchema
],
default
:[]
},
//经备案孵化场地
foundingTeam
:{
type
:[
foundingTeamSchema
],
default
:[]},
//创业团队
foundingTeam
:{
type
:[
foundingTeamSchema
],
default
:[]},
//创业团队
foundingTeamType
:{
type
:
Number
,
default
:
0
},
//创业团队类型
foundingTeamType
:{
type
:
Number
,
default
:
1
},
//创业团队类型
operationModel
:{
type
:[
Number
],
default
:[]},
//运营模式
operationModel
:{
type
:[
Number
],
default
:[]},
//运营模式
operationModelDes
:
String
,
//运营模式描述
operationModelDes
:
String
,
//运营模式描述
/**登录相关 */
/**登录相关 */
...
...
src/routers/admin/fuHuaQi.ts
View file @
66f99b85
...
@@ -103,10 +103,10 @@ async function addUser(req, res) {
...
@@ -103,10 +103,10 @@ async function addUser(req, res) {
async
function
outPutFuHuaQiData
(
req
,
res
)
{
async
function
outPutFuHuaQiData
(
req
,
res
)
{
let
reqConf
=
{
lv
:
'Number'
,
institutionalNature
:
'Number'
,
industry
:
'Number'
,
dataType
:
'Number'
,
type
:
'Number'
};
let
reqConf
=
{
lv
:
'Number'
,
institutionalNature
:
'Number'
,
industry
:
'Number'
,
type
:
'Number'
,
operationModel
:
"Number"
,
foundingTeam
:
"Number"
};
let
{
lv
,
institutionalNature
,
industry
,
type
}
=
eccReqNotMustHaveParam
(
reqConf
,
req
.
body
);
let
{
lv
,
institutionalNature
,
industry
,
type
,
operationModel
,
foundingTeam
}
=
eccReqNotMustHaveParam
(
reqConf
,
req
.
body
);
let
dataList
=
await
baseBiz
.
outPutFuHuaQiBaseData
(
lv
,
institutionalNature
,
industry
,
type
);
let
dataList
=
await
baseBiz
.
outPutFuHuaQiBaseData
(
lv
,
institutionalNature
,
industry
,
operationModel
,
foundingTeam
,
type
);
let
name
=
`孵化器列表
${
getTimeKey
()}
.xlsx`
;
let
name
=
`孵化器列表
${
getTimeKey
()}
.xlsx`
;
...
...
src/tools/dataInit.ts
View file @
66f99b85
...
@@ -218,7 +218,13 @@ async function initEnterprise() {
...
@@ -218,7 +218,13 @@ async function initEnterprise() {
if
(
i
==
8
&&
item
)
{
if
(
i
==
8
&&
item
)
{
value
=
new
Date
((
item
-
25569
)
*
86400
*
1000
+
utc
.
getTimezoneOffset
()
*
1000
*
60
);
value
=
new
Date
((
item
-
25569
)
*
86400
*
1000
+
utc
.
getTimezoneOffset
()
*
1000
*
60
);
}
}
if
([
8
,
9
,
15
,
18
].
indexOf
(
i
)
>
-
1
)
{
if
(
i
==
9
&&
item
)
{
value
=
new
Date
((
item
-
25569
)
*
86400
*
1000
+
utc
.
getTimezoneOffset
()
*
1000
*
60
);
}
if
(
i
==
15
&&
item
)
{
value
=
new
Date
((
item
-
25569
)
*
86400
*
1000
+
utc
.
getTimezoneOffset
()
*
1000
*
60
);
}
if
([
18
].
indexOf
(
i
)
>
-
1
)
{
if
(
!
item
)
value
=
0
;
if
(
!
item
)
value
=
0
;
else
value
=
new
Date
(
value
).
valueOf
()
else
value
=
new
Date
(
value
).
valueOf
()
}
}
...
...
src/util/verificationEnum.ts
View file @
66f99b85
...
@@ -32,11 +32,25 @@ export function checkEnumValue(enumConf, value:any) {
...
@@ -32,11 +32,25 @@ export function checkEnumValue(enumConf, value:any) {
export
function
changeEnumValue
(
enumConf
,
value
:
any
)
{
export
function
changeEnumValue
(
enumConf
,
value
:
any
)
{
if
(
!
value
)
return
''
;
if
(
!
value
)
return
''
;
if
(
typeof
value
==
'number'
)
{
if
(
typeof
value
==
'number'
)
{
return
enumConf
[
value
];
let
str
=
enumConf
[
value
];
/** 特化处理 中文引号在枚举中不适用*/
if
(
str
==
"_投资__孵化_类型"
)
{
str
=
str
.
replace
(
"__"
,
"+"
);
str
=
str
.
replace
(
"_"
,
"“"
);
str
=
str
.
replace
(
"_"
,
"”"
);
}
return
str
}
}
let
str
=
""
;
let
str
=
""
;
value
.
forEach
((
item
,
index
)
=>
{
value
.
forEach
((
item
,
index
)
=>
{
str
+=
enumConf
[
item
];
let
subStr
=
enumConf
[
item
];
/** 特化处理 中文引号在枚举中不适用*/
if
(
subStr
==
"_投资__孵化_类型"
)
{
subStr
=
subStr
.
replace
(
"__"
,
"+"
);
subStr
=
subStr
.
replace
(
"_"
,
"“"
);
subStr
=
subStr
.
replace
(
"_"
,
"”"
);
}
str
+=
subStr
;
if
(
index
==
value
.
length
-
1
)
str
+=
""
;
if
(
index
==
value
.
length
-
1
)
str
+=
""
;
else
str
+=
","
else
str
+=
","
});
});
...
...
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