Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiAdminServer
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
yuyiAdminServer
Commits
48e8ceee
Commit
48e8ceee
authored
Apr 22, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7142f386
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
172 additions
and
137 deletions
+172
-137
admin.ts
src/biz/admin.ts
+32
-42
fuhua.ts
src/biz/fuhua.ts
+2
-0
ruFu.ts
src/biz/ruFu.ts
+4
-4
zaiFu.ts
src/biz/zaiFu.ts
+90
-49
admin.ts
src/routers/admin.ts
+35
-37
dbinit.ts
src/routers/dbinit.ts
+9
-5
No files found.
src/biz/admin.ts
View file @
48e8ceee
...
@@ -221,27 +221,19 @@ export async function enterpriseManageList(enterpriseName:string, year:number, p
...
@@ -221,27 +221,19 @@ export async function enterpriseManageList(enterpriseName:string, year:number, p
export
async
function
outPutEnterpriseManageList
(
enterpriseName
:
string
,
year
:
number
,
type
:
number
,
files
)
{
export
async
function
outPutEnterpriseManageList
(
enterpriseName
:
string
,
year
:
number
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:
[
"enterpriseName"
,
"uscc"
,
"eId"
],
where
:{}
};
if
(
type
==
1
)
{
if
(
type
==
1
)
{
// if (year
) {
if
(
enterpriseName
)
{
// selectParam.annual = getMySqlMs(year);
manyTableInfo
[
TABLENAME
.
企业基础信息表
].
where
=
{
"enterpriseName"
:
{
"%like%"
:
enterpriseName
}}
//
}
if
(
year
)
{
if
(
year
)
{
selectParam
.
annual
=
`
${
moment
(
year
).
format
(
"YYYY"
)}
-01-01 00:00:00`
;
selectParam
.
annual
=
`
${
moment
(
year
).
format
(
"YYYY"
)}
-01-01 00:00:00`
;
}
}
// if (state) {
// if (state == 1) selectParam.state = 1;
// else selectParam.state = 0;
// }
}
}
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:
[
"enterpriseName"
,
"uscc"
,
"eId"
],
where
:{}
};
if
(
enterpriseName
&&
type
==
1
)
{
manyTableInfo
[
TABLENAME
.
企业经营信息
].
where
[
"enterpriseName"
]
=
{
"%like%"
:
enterpriseName
}
}
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业经营信息
,
selectParam
,
[
"mId"
,
"BI"
,
"TXP"
,
"RD"
,
"annual"
,
"quarter"
],
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业经营信息
,
selectParam
,
[
"mId"
,
"BI"
,
"TXP"
,
"RD"
,
"annual"
,
"quarter"
],
manyTableInfo
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -379,7 +371,6 @@ export async function outPutEnterpriseFinancingList(enterpriseName:string,year:n
...
@@ -379,7 +371,6 @@ export async function outPutEnterpriseFinancingList(enterpriseName:string,year:n
let
filesList
=
[
"enterpriseName"
,
"uscc"
,
"eId"
];
let
filesList
=
[
"enterpriseName"
,
"uscc"
,
"eId"
];
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
filesList
,
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
filesList
,
manyTableInfo
);
let
dataList
=
[];
let
dataList
=
[];
let
titleList
=
[];
let
titleList
=
[];
let
valueList
=
[];
let
valueList
=
[];
...
@@ -388,39 +379,38 @@ export async function outPutEnterpriseFinancingList(enterpriseName:string,year:n
...
@@ -388,39 +379,38 @@ export async function outPutEnterpriseFinancingList(enterpriseName:string,year:n
valueList
.
push
(
item
.
value
);
valueList
.
push
(
item
.
value
);
});
});
dataList
.
push
(
titleList
);
dataList
.
push
(
titleList
);
resInfo
.
forEach
(
info
=>
{
resInfo
.
forEach
(
info
=>
{
let
{
enterpriseName
,
uscc
,
enterprise_financings
}
=
info
;
let
{
enterpriseName
,
uscc
,
enterprise_financings
}
=
info
;
let
subList
=
[];
let
subList
=
[];
if
(
enterprise_financings
.
length
>
0
)
{
enterprise_financings
.
forEach
(
item
=>
{
valueList
.
forEach
(
subInfo
=>
{
valueList
.
forEach
(
subInfo
=>
{
if
(
subInfo
==
"enterpriseName"
)
subList
.
push
(
enterpriseName
);
if
(
subInfo
==
"enterpriseName"
)
subList
.
push
(
enterpriseName
);
if
(
subInfo
==
"uscc"
)
subList
.
push
(
uscc
);
if
(
subInfo
==
"uscc"
)
subList
.
push
(
uscc
);
if
(
subInfo
==
"financingAmount"
)
subList
.
push
(
enterprise_financings
[
0
].
financingAmount
);
if
(
subInfo
==
"financingAmount"
)
subList
.
push
(
item
.
financingAmount
);
if
(
subInfo
==
"financingRounds"
)
subList
.
push
(
changeEnumValue
(
enumConfig
.
FINANCINGROUNDS
,
enterprise_financings
[
0
].
financingRounds
));
if
(
subInfo
==
"financingRounds"
)
subList
.
push
(
changeEnumValue
(
enumConfig
.
FINANCINGROUNDS
,
item
.
financingRounds
));
if
(
subInfo
==
"investmentDate"
)
subList
.
push
(
moment
(
enterprise_financings
[
0
].
investmentDate
).
format
(
"YYYY-MM-DD"
));
if
(
subInfo
==
"investmentDate"
)
subList
.
push
(
moment
(
item
.
investmentDate
).
format
(
"YYYY-MM-DD"
));
if
(
subInfo
==
"investmentInstitutionsName"
)
subList
.
push
(
enterprise_financings
[
0
].
investmentInstitutionsName
);
if
(
subInfo
==
"investmentInstitutionsName"
)
subList
.
push
(
item
.
investmentInstitutionsName
);
});
})
dataList
.
push
(
subList
);
dataList
.
push
(
subList
);
});
});
}
});
return
{
dataList
};
return
{
dataList
};
}
}
export
async
function
enterpriseTalentList
(
entepriseName
:
string
,
page
:
number
)
{
export
async
function
enterpriseTalentList
(
ente
r
priseName
:
string
,
page
:
number
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
let
manyTableInfo
:
any
=
{};
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:[
"enterpriseName"
],
where
:{}
};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:[
"enterpriseName"
],
where
:{}
};
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
manyTableInfo
[
TABLENAME
.
企业基础信息表
].
where
[
'enterpriseName'
]
=
{
"%like%"
:
entepriseName
};
manyTableInfo
[
TABLENAME
.
企业基础信息表
].
where
[
'enterpriseName'
]
=
{
"%like%"
:
ente
r
priseName
};
}
}
let
filesList
=
[
"name"
,
"sex"
,
"birth"
,
"degree"
,
"graduationSchool"
];
let
filesList
=
[
"name"
,
"sex"
,
"birth"
,
"degree"
,
"graduationSchool"
];
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表分页
,
TABLENAME
.
创业团队
,
selectParam
,
filesList
,
manyTableInfo
,
page
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表分页
,
TABLENAME
.
创业团队
,
selectParam
,
filesList
,
manyTableInfo
,
page
);
let
dataCount
=
await
selectData
(
OPERATIONALDATATYPE
.
查询数据量
,
TABLENAME
.
创业团队
,
selectParam
,
null
);
let
dataList
=
[];
let
dataList
=
[];
resInfo
.
forEach
(
info
=>
{
resInfo
.
forEach
(
info
=>
{
...
@@ -436,20 +426,20 @@ export async function enterpriseTalentList(entepriseName:string, page:number) {
...
@@ -436,20 +426,20 @@ export async function enterpriseTalentList(entepriseName:string, page:number) {
dataList
.
push
(
dataInfo
);
dataList
.
push
(
dataInfo
);
});
});
return
{
dataList
,
dataCount
};
return
{
dataList
,
dataCount
:
dataList
.
length
};
}
}
export
async
function
outPutEnterpriseTalentList
(
n
ame
:
string
,
type
:
number
,
files
)
{
export
async
function
outPutEnterpriseTalentList
(
enterpriseN
ame
:
string
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
type
==
1
)
{
if
(
name
)
{
selectParam
.
name
=
{
"%like%"
:
name
};
}
}
let
manyTableInfo
:
any
=
{};
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:[
"enterpriseName"
],
where
:{}
};
manyTableInfo
[
TABLENAME
.
企业基础信息表
]
=
{
column
:[
"enterpriseName"
],
where
:{}
};
if
(
type
==
1
)
{
if
(
enterpriseName
)
{
manyTableInfo
[
TABLENAME
.
企业基础信息表
].
where
=
{
"enterpriseName"
:
{
"%like%"
:
enterpriseName
}};
}
}
let
filesList
=
[
"name"
,
"sex"
,
"birth"
,
"degree"
,
"graduationSchool"
];
let
filesList
=
[
"name"
,
"sex"
,
"birth"
,
"degree"
,
"graduationSchool"
];
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
创业团队
,
selectParam
,
filesList
,
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
创业团队
,
selectParam
,
filesList
,
manyTableInfo
);
...
@@ -967,12 +957,12 @@ export async function enterpriseFinancingById(eId:string) {
...
@@ -967,12 +957,12 @@ export async function enterpriseFinancingById(eId:string) {
//经营数据下载
//经营数据下载
export
async
function
dwEnterpriseTable
(
eId
:
string
,
entepriseName
:
string
,
type
:
number
,
files
)
{
export
async
function
dwEnterpriseTable
(
eId
:
string
,
ente
r
priseName
:
string
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
}
}
...
@@ -1008,11 +998,11 @@ export async function dwEnterpriseTable(eId: string, entepriseName:string, type:
...
@@ -1008,11 +998,11 @@ export async function dwEnterpriseTable(eId: string, entepriseName:string, type:
}
}
/**融资情况下载 */
/**融资情况下载 */
export
async
function
dwFinancingTable
(
eId
:
string
,
entepriseName
:
string
,
type
:
number
,
files
)
{
export
async
function
dwFinancingTable
(
eId
:
string
,
ente
r
priseName
:
string
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
}
}
...
...
src/biz/fuhua.ts
View file @
48e8ceee
...
@@ -395,6 +395,8 @@ export async function getWorthDate() {
...
@@ -395,6 +395,8 @@ export async function getWorthDate() {
area
:
param
.
area
,
area
:
param
.
area
,
unitPrice
:
param
.
unitPrice
,
unitPrice
:
param
.
unitPrice
,
roomNumber
:
param
.
roomNumber
,
roomNumber
:
param
.
roomNumber
,
startTime
:
getMySqlMs
(
param
.
fuHuaTimeStart
),
//小程序和管理后台没有填写租赁时间的位置,直接使用孵化开始时间
endTime
:
getMySqlMs
(
param
.
fuHuaTimeEndTime
),
//小程序和管理后台没有填写租赁时间的位置,直接使用孵化结束时间
rent
:
param
.
rent
,
rent
:
param
.
rent
,
}
}
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
租赁信息
,
leaseInfo
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
租赁信息
,
leaseInfo
,
{});
...
...
src/biz/ruFu.ts
View file @
48e8ceee
...
@@ -17,10 +17,10 @@ import { changeEnumValue } from "../util/verificationEnum";
...
@@ -17,10 +17,10 @@ import { changeEnumValue } from "../util/verificationEnum";
//=======================================================新入孵企业
//=======================================================新入孵企业
export
async
function
settleInEnterpriseList
(
page
:
number
,
entepriseName
:
string
)
{
export
async
function
settleInEnterpriseList
(
page
:
number
,
ente
r
priseName
:
string
)
{
let
selectParam
:
any
=
{
state
:
enumConfig
.
STATE
.
否
,
register
:
enumConfig
.
STATE
.
否
};
let
selectParam
:
any
=
{
state
:
enumConfig
.
STATE
.
否
,
register
:
enumConfig
.
STATE
.
否
};
if
(
ente
priseName
)
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
priseName
};
if
(
ente
rpriseName
)
selectParam
.
enterpriseName
=
{
"%like%"
:
enter
priseName
};
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
];
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
];
...
@@ -148,10 +148,10 @@ export async function settleInEnterpriseOut(eId:string) {
...
@@ -148,10 +148,10 @@ export async function settleInEnterpriseOut(eId:string) {
//入孵信息审核
//入孵信息审核
export
async
function
enterpriseRegisterExamineList
(
entepriseName
,
page
)
{
export
async
function
enterpriseRegisterExamineList
(
ente
r
priseName
,
page
)
{
let
selectParam
:
any
=
{
register
:
enumConfig
.
STATE
.
是
,
state
:
enumConfig
.
STATE
.
否
};
let
selectParam
:
any
=
{
register
:
enumConfig
.
STATE
.
是
,
state
:
enumConfig
.
STATE
.
否
};
if
(
ente
priseName
)
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
priseName
};
if
(
ente
rpriseName
)
selectParam
.
enterpriseName
=
{
"%like%"
:
enter
priseName
};
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"randomCode"
];
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"randomCode"
];
...
...
src/biz/zaiFu.ts
View file @
48e8ceee
...
@@ -13,10 +13,10 @@ import { ERRORENUM } from "../config/enum/errorEnum";
...
@@ -13,10 +13,10 @@ import { ERRORENUM } from "../config/enum/errorEnum";
import
{
getMySqlMs
}
from
"../tools/system"
;
import
{
getMySqlMs
}
from
"../tools/system"
;
export
async
function
enterpriseList
(
entepriseName
:
string
,
page
:
number
)
{
export
async
function
enterpriseList
(
ente
r
priseName
:
string
,
page
:
number
)
{
let
selectParam
:
any
=
{
state
:
1
};
let
selectParam
:
any
=
{
state
:
1
};
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
...
@@ -79,14 +79,14 @@ export async function enterpriseMoveOut(eId: string, moveOutType: number) {
...
@@ -79,14 +79,14 @@ export async function enterpriseMoveOut(eId: string, moveOutType: number) {
/**
/**
* 迁出企业列表
* 迁出企业列表
* @param entepriseName
* @param ente
r
priseName
* @param page
* @param page
* @returns
* @returns
*/
*/
export
async
function
enterpriseMigrateList
(
entepriseName
:
string
,
page
:
number
)
{
export
async
function
enterpriseMigrateList
(
ente
r
priseName
:
string
,
page
:
number
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
...
@@ -232,16 +232,16 @@ export async function enterpriseManageById(eId:string) {
...
@@ -232,16 +232,16 @@ export async function enterpriseManageById(eId:string) {
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业经营信息
,
{
eId
},
[
"mId"
,
"BI"
,
"TXP"
,
"RD"
,
"annual"
,
"quarter"
],
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业经营信息
,
{
eId
},
[
"mId"
,
"BI"
,
"TXP"
,
"RD"
,
"annual"
,
"quarter"
],
manyTableInfo
);
let
resData
=
[];
let
resData
=
[];
resInfo
.
forEach
(
info
=>
{
resInfo
.
forEach
(
info
=>
{
let
{
BI
,
mId
,
TXP
,
RD
,
annual
,
quarter
,
enterprise
}
=
info
;
let
{
BI
,
mId
,
TXP
,
RD
,
annual
,
quarter
,
enterprise
}
=
info
;
let
quarterStr
=
"第一季度"
;
let
quarterStr
=
"第一季度"
;
if
(
quarter
)
quarterStr
=
changeEnumValue
(
enumConfig
.
QUARTER
,
quarter
);
if
(
quarter
)
quarterStr
=
changeEnumValue
(
enumConfig
.
QUARTER
,
quarter
);
let
year
=
moment
(
annual
).
format
(
"YYYY"
);
resData
.
push
({
BI
,
mId
,
TXP
,
RD
,
annual
:
moment
(
annual
).
format
(
"YYYY"
),
quarterStr
,
enterprise
});
resData
.
push
({
BI
,
mId
,
TXP
,
RD
,
annual
:
year
,
quarterStr
,
enterprise
,
yearStr
:
`
${
year
}${
quarter
}
`
});
})
})
resData
.
sort
(
(
a
,
b
)
=>
{
resData
.
sort
(
(
a
,
b
)
=>
{
return
b
.
annual
-
a
.
annual
;
return
b
.
yearStr
-
a
.
yearStr
;
})
})
let
dataList
=
[];
let
dataList
=
[];
...
@@ -301,10 +301,62 @@ export async function enterpriseFinancingById(eId:string) {
...
@@ -301,10 +301,62 @@ export async function enterpriseFinancingById(eId:string) {
let
filesList
=
[
"enterpriseName"
,
"uscc"
];
let
filesList
=
[
"enterpriseName"
,
"uscc"
];
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
filesList
,
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
{
eId
},
filesList
,
manyTableInfo
);
// let resData = [];
// resInfo.forEach( info => {
// let {enterpriseName, uscc, enterprise_financings} = info;
// resData.push({enterpriseName, uscc, enterprise_financings, investmentDate:new Date(enterprise_financings[0].investmentDate).valueOf()});
// })
// resData.sort( (a, b) => {
// return b.investmentDate - a.investmentDate;
// })
// let dataList = [];
// resData.forEach(info => {
// let {enterpriseName, uscc, enterprise_financings} = info;
// if (enterprise_financings.length != 0) {
// enterprise_financings.forEach( item => {
// let dataInfo = [
// {
// key:"企业名称",
// value:enterpriseName
// },
// {
// key:"统一信用代码",
// value:uscc
// },
// {
// key:"融资金额(万元)",
// value:item.financingAmount
// },
// {
// key:"融资轮次",
// value:changeEnumValue(enumConfig.FINANCINGROUNDS, item.financingRounds)
// },
// {
// key:"获得投资时间",
// value:moment(item.investmentDate).format("YYYY-MM-DD")
// },
// {
// key:"投资机构名称",
// value:item.investmentInstitutionsName
// },
// ]
// dataList.push(dataInfo);
// })
// }
// });
let
resData
=
[];
let
resData
=
[];
resInfo
.
forEach
(
info
=>
{
resInfo
.
forEach
(
info
=>
{
let
{
enterpriseName
,
uscc
,
enterprise_financings
}
=
info
;
let
{
enterpriseName
,
uscc
,
enterprise_financings
}
=
info
;
resData
.
push
({
enterpriseName
,
uscc
,
enterprise_financings
,
investmentDate
:
new
Date
(
enterprise_financings
[
0
].
investmentDate
).
valueOf
()});
if
(
enterprise_financings
.
length
!=
0
)
{
enterprise_financings
.
forEach
(
item
=>
{
resData
.
push
({
enterpriseName
,
uscc
,
enterprise_financing
:
item
,
investmentDate
:
new
Date
(
item
.
investmentDate
).
valueOf
()});
});
}
})
})
resData
.
sort
(
(
a
,
b
)
=>
{
resData
.
sort
(
(
a
,
b
)
=>
{
...
@@ -313,9 +365,7 @@ export async function enterpriseFinancingById(eId:string) {
...
@@ -313,9 +365,7 @@ export async function enterpriseFinancingById(eId:string) {
let
dataList
=
[];
let
dataList
=
[];
resData
.
forEach
(
info
=>
{
resData
.
forEach
(
info
=>
{
let
{
enterpriseName
,
uscc
,
enterprise_financings
}
=
info
;
let
{
enterpriseName
,
uscc
,
enterprise_financing
}
=
info
;
if
(
enterprise_financings
.
length
!=
0
)
{
enterprise_financings
.
forEach
(
item
=>
{
let
dataInfo
=
[
let
dataInfo
=
[
{
{
key
:
"企业名称"
,
key
:
"企业名称"
,
...
@@ -327,24 +377,22 @@ export async function enterpriseFinancingById(eId:string) {
...
@@ -327,24 +377,22 @@ export async function enterpriseFinancingById(eId:string) {
},
},
{
{
key
:
"融资金额(万元)"
,
key
:
"融资金额(万元)"
,
value
:
item
.
financingAmount
value
:
enterprise_financing
.
financingAmount
},
},
{
{
key
:
"融资轮次"
,
key
:
"融资轮次"
,
value
:
changeEnumValue
(
enumConfig
.
FINANCINGROUNDS
,
item
.
financingRounds
)
value
:
changeEnumValue
(
enumConfig
.
FINANCINGROUNDS
,
enterprise_financing
.
financingRounds
)
},
},
{
{
key
:
"获得投资时间"
,
key
:
"获得投资时间"
,
value
:
moment
(
item
.
investmentDate
).
format
(
"YYYY-MM-DD"
)
value
:
moment
(
enterprise_financing
.
investmentDate
).
format
(
"YYYY-MM-DD"
)
},
},
{
{
key
:
"投资机构名称"
,
key
:
"投资机构名称"
,
value
:
item
.
investmentInstitutionsName
value
:
enterprise_financing
.
investmentInstitutionsName
},
},
]
]
dataList
.
push
(
dataInfo
);
dataList
.
push
(
dataInfo
);
})
}
});
});
...
@@ -505,18 +553,20 @@ export async function enterpriseServiceById(eId:string) {
...
@@ -505,18 +553,20 @@ export async function enterpriseServiceById(eId:string) {
//下载
//下载
export
async
function
dwEnterpriseTable
(
entepriseName
:
string
,
type
:
number
,
files
)
{
export
async
function
dwEnterpriseTable
(
enterpriseName
:
string
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{
state
:
1
};
let
selectParam
:
any
=
{};
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
}
}
let
filesList
=
[
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
filesList
=
[
"e
Id"
,
"e
nterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
manyTableInfo
:
any
=
{};
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
租赁信息
]
=
{
column
:[
"area"
,
"startTime"
,
"endTime"
,
"roomNumber"
],
where
:{}};
manyTableInfo
[
TABLENAME
.
租赁信息
]
=
{
column
:[
"area"
,
"startTime"
,
"endTime"
,
"roomNumber"
],
where
:{}
};
// 关联企业孵化信息表,获取 moveOutTime 字段
manyTableInfo
[
TABLENAME
.
企业孵化信息
]
=
{
column
:
[
"moveOutTime"
,
"moveOutType"
],
where
:
{
state
:{
"%ne%"
:
enumConfig
.
FUHUASTATE
.
迁出
}
}
};
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
filesList
,
manyTableInfo
);
let
resInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
filesList
,
manyTableInfo
);
...
@@ -881,21 +931,14 @@ export async function dwEnterpriseService(eId: string) {
...
@@ -881,21 +931,14 @@ export async function dwEnterpriseService(eId: string) {
* 迁出企业下载
* 迁出企业下载
* @params type:1(当前数据),type:2(全部数据下载)
* @params type:1(当前数据),type:2(全部数据下载)
*/
*/
export
async
function
dwEnterpriseOutTable
(
entepriseName
:
string
,
type
:
number
,
files
)
{
export
async
function
dwEnterpriseOutTable
(
ente
r
priseName
:
string
,
type
:
number
,
files
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
type
==
1
)
{
if
(
type
==
1
)
{
if
(
entepriseName
)
{
if
(
ente
r
priseName
)
{
selectParam
.
enterpriseName
=
{
"%like%"
:
entepriseName
}
selectParam
.
enterpriseName
=
{
"%like%"
:
ente
r
priseName
}
}
}
}
}
// let filesList = ["enterpriseName", "uscc", "logonTime", "logonAddress", "qiYeGuiMo"];
// let manyTableInfo: any = {};
// manyTableInfo[TABLENAME.租赁信息] = { column: ["area", "startTime", "endTime", "roomNumber"], where: {} };
// // 关联企业孵化信息表,获取 moveOutTime 和 moveOutType 字段
// manyTableInfo[TABLENAME.企业孵化信息] = { column: ["moveOutTime", "moveOutType"], where: {} };
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
filesList
=
[
"eId"
,
"enterpriseName"
,
"uscc"
,
"logonTime"
,
"logonAddress"
,
"qiYeGuiMo"
];
let
manyTableInfo
:
any
=
{};
let
manyTableInfo
:
any
=
{};
manyTableInfo
[
TABLENAME
.
租赁信息
]
=
{
column
:[
"area"
,
"startTime"
,
"endTime"
,
"roomNumber"
],
where
:{}
};
manyTableInfo
[
TABLENAME
.
租赁信息
]
=
{
column
:[
"area"
,
"startTime"
,
"endTime"
,
"roomNumber"
],
where
:{}
};
...
@@ -914,21 +957,21 @@ export async function dwEnterpriseOutTable(entepriseName: string, type: number,
...
@@ -914,21 +957,21 @@ export async function dwEnterpriseOutTable(entepriseName: string, type: number,
});
});
dataList
.
push
(
titleList
);
dataList
.
push
(
titleList
);
resInfo
.
forEach
(
info
=>
{
resInfo
.
forEach
(
info
=>
{
let
{
enterpriseName
,
uscc
,
logonTime
,
logonAddress
,
qiYeGuiMo
,
moveOutTime
,
moveOutType
,
enterprise_leases
}
=
info
;
let
{
eId
,
enterpriseName
,
uscc
,
logonTime
,
logonAddress
,
enterprise_fuhuas
,
qiYeGuiMo
,
enterprise_leases
}
=
info
;
let
leasesTime
=
'-'
;
if
(
enterprise_leases
[
0
].
startTime
)
{
leasesTime
=
`
${
moment
(
enterprise_leases
[
0
].
startTime
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
enterprise_leases
[
0
].
endTime
).
format
(
"YYYY-MM-DD"
)}
`
;
}
// 如果数据库中没有迁出时间,则使用当前日期作为默认值
let
formattedMoveOutTime
=
'-'
;
let
formattedMoveOutTime
=
'-'
;
if
(
moveOutTime
)
{
if
(
enterprise_fuhuas
[
0
].
moveOutTime
)
{
formattedMoveOutTime
=
moment
(
moveOutTime
).
format
(
"YYYY-MM-DD"
);
formattedMoveOutTime
=
moment
(
enterprise_fuhuas
[
0
].
moveOutTime
).
format
(
"YYYY-MM-DD"
);
}
}
let
formattedMoveOutTypeName
=
'-'
;
let
formattedMoveOutTypeName
=
'-'
;
if
(
moveOutType
!==
undefined
&&
moveOutType
!==
null
)
{
if
(
enterprise_fuhuas
[
0
].
moveOutType
)
{
formattedMoveOutTypeName
=
changeEnumValue
(
enumConfig
.
EMIGRATIONTYPE
,
moveOutType
);
formattedMoveOutTypeName
=
changeEnumValue
(
enumConfig
.
EMIGRATIONTYPE
,
parseInt
(
String
(
enterprise_fuhuas
[
0
].
moveOutType
)));
}
let
leasesTime
=
'-'
if
(
enterprise_leases
[
0
].
startTime
){
leasesTime
=
`
${
moment
(
enterprise_leases
[
0
].
startTime
).
format
(
"YYYY-MM-DD"
)}
至
${
moment
(
enterprise_leases
[
0
].
endTime
).
format
(
"YYYY-MM-DD"
)}
`
;
}
}
let
subList
=
[];
let
subList
=
[];
...
@@ -951,5 +994,3 @@ export async function dwEnterpriseOutTable(entepriseName: string, type: number,
...
@@ -951,5 +994,3 @@ export async function dwEnterpriseOutTable(entepriseName: string, type: number,
return
{
dataList
};
return
{
dataList
};
}
}
src/routers/admin.ts
View file @
48e8ceee
...
@@ -45,7 +45,7 @@ export function setRouter(httpServer) {
...
@@ -45,7 +45,7 @@ export function setRouter(httpServer) {
//企业库信息
//企业库信息
httpServer
.
post
(
'/admin/library/enterprise/list'
,
checkUser
,
asyncHandler
(
enterpriseList
));
httpServer
.
post
(
'/admin/library/enterprise/list'
,
checkUser
,
asyncHandler
(
enterpriseList
));
httpServer
.
post
(
'/admin/library/enterprise/migrate/out'
,
checkUser
,
asyncHandler
(
enterpriseMigrateOut
));
//在孵企业迁出功能
httpServer
.
post
(
'/admin/library/enterprise/migrate/out'
,
checkUser
,
asyncHandler
(
enterpriseMigrateOut
));
//在孵企业迁出功能
httpServer
.
post
(
'/admin/library/enterprise/migrate/list'
,
checkUser
,
asyncHandler
(
enterpriseMigrateList
));
//
新增迁出企业
httpServer
.
post
(
'/admin/library/enterprise/migrate/list'
,
checkUser
,
asyncHandler
(
enterpriseMigrateList
));
//
迁出企业列表
httpServer
.
post
(
'/admin/library/enterprise/details'
,
checkUser
,
asyncHandler
(
enterpriseDetails
));
httpServer
.
post
(
'/admin/library/enterprise/details'
,
checkUser
,
asyncHandler
(
enterpriseDetails
));
// httpServer.post('/admin/library/enterprise/details', checkUser, asyncHandler(enterpriseById));
// httpServer.post('/admin/library/enterprise/details', checkUser, asyncHandler(enterpriseById));
// httpServer.post('/admin/library/manage/details', checkUser, asyncHandler(manageById));
// httpServer.post('/admin/library/manage/details', checkUser, asyncHandler(manageById));
...
@@ -104,8 +104,8 @@ export function setRouter(httpServer) {
...
@@ -104,8 +104,8 @@ export function setRouter(httpServer) {
async
function
iprList
(
req
,
res
)
{
async
function
iprList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
iprList
(
entepriseName
,
page
);
let
result
=
await
enterpriseInfoBiz
.
iprList
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -123,24 +123,24 @@ async function iprDetails(req, res) {
...
@@ -123,24 +123,24 @@ async function iprDetails(req, res) {
async
function
qualificationList
(
req
,
res
)
{
async
function
qualificationList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
qiyeRenZheng
(
entepriseName
,
page
);
let
result
=
await
enterpriseInfoBiz
.
qiyeRenZheng
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
async
function
enterpriseHonor
(
req
,
res
)
{
async
function
enterpriseHonor
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseHonor
(
entepriseName
,
page
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseHonor
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
async
function
serviceList
(
req
,
res
)
{
async
function
serviceList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
followUpStatus
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
followUpStatus
,
page
}
=
req
.
body
let
result
=
await
fuWuBiz
.
enterpriseService
(
entepriseName
,
followUpStatus
,
page
);
let
result
=
await
fuWuBiz
.
enterpriseService
(
ente
r
priseName
,
followUpStatus
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -304,8 +304,8 @@ async function policyDel(req, res) {
...
@@ -304,8 +304,8 @@ async function policyDel(req, res) {
*/
*/
async
function
talentList
(
req
,
res
)
{
async
function
talentList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseTalentList
(
entepriseName
,
page
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseTalentList
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -317,8 +317,8 @@ async function talentList(req, res) {
...
@@ -317,8 +317,8 @@ async function talentList(req, res) {
*/
*/
async
function
outPutTalentList
(
req
,
res
)
{
async
function
outPutTalentList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
n
ame
,
type
,
files
}
=
req
.
body
let
{
enterpriseN
ame
,
type
,
files
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseTalentList
(
n
ame
,
type
,
files
);
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseTalentList
(
enterpriseN
ame
,
type
,
files
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -333,8 +333,8 @@ async function outPutTalentList(req, res) {
...
@@ -333,8 +333,8 @@ async function outPutTalentList(req, res) {
*/
*/
async
function
enterpriseList
(
req
,
res
)
{
async
function
enterpriseList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
zaiFuBiz
.
enterpriseList
(
entepriseName
,
page
);
let
result
=
await
zaiFuBiz
.
enterpriseList
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -360,8 +360,8 @@ async function enterpriseMigrateOut(req, res) {
...
@@ -360,8 +360,8 @@ async function enterpriseMigrateOut(req, res) {
*/
*/
async
function
enterpriseMigrateList
(
req
,
res
)
{
async
function
enterpriseMigrateList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
zaiFuBiz
.
enterpriseMigrateList
(
entepriseName
,
page
);
let
result
=
await
zaiFuBiz
.
enterpriseMigrateList
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -426,8 +426,8 @@ async function enterpriseDetails(req, res) {
...
@@ -426,8 +426,8 @@ async function enterpriseDetails(req, res) {
* @param res
* @param res
*/
*/
async
function
dwEnterpriseList
(
req
,
res
)
{
async
function
dwEnterpriseList
(
req
,
res
)
{
let
{
entepriseName
,
type
,
files
}
=
req
.
body
let
{
ente
r
priseName
,
type
,
files
}
=
req
.
body
let
result
=
await
zaiFuBiz
.
dwEnterpriseTable
(
entepriseName
,
type
,
files
);
let
result
=
await
zaiFuBiz
.
dwEnterpriseTable
(
ente
r
priseName
,
type
,
files
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -439,8 +439,8 @@ async function dwEnterpriseList(req, res) {
...
@@ -439,8 +439,8 @@ async function dwEnterpriseList(req, res) {
* @param res
* @param res
*/
*/
async
function
dwEnterpriseOutList
(
req
,
res
)
{
async
function
dwEnterpriseOutList
(
req
,
res
)
{
let
{
entepriseName
,
type
,
files
}
=
req
.
body
let
{
ente
r
priseName
,
type
,
files
}
=
req
.
body
let
result
=
await
zaiFuBiz
.
dwEnterpriseOutTable
(
entepriseName
,
type
,
files
);
let
result
=
await
zaiFuBiz
.
dwEnterpriseOutTable
(
ente
r
priseName
,
type
,
files
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -503,23 +503,21 @@ async function dwFinancingSituationeList(req, res) {
...
@@ -503,23 +503,21 @@ async function dwFinancingSituationeList(req, res) {
*/
*/
async
function
manageList
(
req
,
res
)
{
async
function
manageList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
year
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
year
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseManageList
(
entepriseName
,
year
,
page
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseManageList
(
ente
r
priseName
,
year
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
async
function
outPutManageList
(
req
,
res
)
{
async
function
outPutManageList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
year
,
type
,
files
}
=
req
.
body
let
{
ente
r
priseName
,
year
,
type
,
files
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseManageList
(
entepriseName
,
year
,
type
,
files
);
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseManageList
(
ente
r
priseName
,
year
,
type
,
files
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
async
function
managePass
(
req
,
res
)
{
async
function
managePass
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
mId
}
=
req
.
body
let
{
mId
}
=
req
.
body
...
@@ -536,8 +534,8 @@ async function managePass(req, res) {
...
@@ -536,8 +534,8 @@ async function managePass(req, res) {
*/
*/
async
function
financingList
(
req
,
res
)
{
async
function
financingList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
year
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
year
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseFinancingList
(
entepriseName
,
year
,
page
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseFinancingList
(
ente
r
priseName
,
year
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -563,8 +561,8 @@ async function financingAllYear(req, res) {
...
@@ -563,8 +561,8 @@ async function financingAllYear(req, res) {
*/
*/
async
function
outPutFinancingList
(
req
,
res
)
{
async
function
outPutFinancingList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
year
,
type
,
files
}
=
req
.
body
let
{
ente
r
priseName
,
year
,
type
,
files
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseFinancingList
(
entepriseName
,
year
,
type
,
files
);
let
result
=
await
enterpriseInfoBiz
.
outPutEnterpriseFinancingList
(
ente
r
priseName
,
year
,
type
,
files
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -579,8 +577,8 @@ async function outPutFinancingList(req, res) {
...
@@ -579,8 +577,8 @@ async function outPutFinancingList(req, res) {
*/
*/
async
function
examineList
(
req
,
res
)
{
async
function
examineList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
year
,
entepriseName
,
page
}
=
req
.
body
let
{
year
,
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
enterpriseInfoBiz
.
enterpriseExamineList
(
year
,
entepriseName
,
page
);
let
result
=
await
enterpriseInfoBiz
.
enterpriseExamineList
(
year
,
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -730,8 +728,8 @@ async function logout(req, res) {
...
@@ -730,8 +728,8 @@ async function logout(req, res) {
*/
*/
async
function
settleIn
(
req
,
res
)
{
async
function
settleIn
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
ruFuBiz
.
settleInEnterpriseList
(
page
,
entepriseName
);
let
result
=
await
ruFuBiz
.
settleInEnterpriseList
(
page
,
ente
r
priseName
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -793,8 +791,8 @@ async function enterpriseLogon(req, res) {
...
@@ -793,8 +791,8 @@ async function enterpriseLogon(req, res) {
async
function
examineSettleIn
(
req
,
res
)
{
async
function
examineSettleIn
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
entepriseName
,
page
}
=
req
.
body
let
{
ente
r
priseName
,
page
}
=
req
.
body
let
result
=
await
ruFuBiz
.
enterpriseRegisterExamineList
(
entepriseName
,
page
);
let
result
=
await
ruFuBiz
.
enterpriseRegisterExamineList
(
ente
r
priseName
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
...
src/routers/dbinit.ts
View file @
48e8ceee
...
@@ -254,22 +254,26 @@ export async function data1210(req, res) {
...
@@ -254,22 +254,26 @@ export async function data1210(req, res) {
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
知识产权
,
enterprise_2023iprInfo
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
知识产权
,
enterprise_2023iprInfo
,
{});
}
}
if
(
subList
[
33
])
{
if
(
subList
[
33
])
{
for
(
let
i
=
0
;
i
<
parseInt
(
subList
[
33
]);
i
++
)
{
let
enterprise_2022patent
=
{
let
enterprise_2022patent
=
{
pId
:
randomId
(
TABLEID
.
企业专利表
),
pId
:
randomId
(
TABLEID
.
企业专利表
),
eId
,
eId
,
year
:
getMySqlMs
(
"2022-01-01 00:00:00"
),
year
:
getMySqlMs
(
"2022-01-01 00:00:00"
),
number
:
subList
[
33
]
number
:
1
}
}
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业专利表
,
enterprise_2022patent
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业专利表
,
enterprise_2022patent
,
{});
}
}
}
if
(
subList
[
34
])
{
if
(
subList
[
34
])
{
let
enterprise_2023patent
=
{
for
(
let
i
=
0
;
i
<
parseInt
(
subList
[
34
]);
i
++
)
{
let
enterprise_2022patent
=
{
pId
:
randomId
(
TABLEID
.
企业专利表
),
pId
:
randomId
(
TABLEID
.
企业专利表
),
eId
,
eId
,
year
:
getMySqlMs
(
"2023-01-01 00:00:00"
),
year
:
getMySqlMs
(
"2022-01-01 00:00:00"
),
number
:
subList
[
34
]
number
:
1
}
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业专利表
,
enterprise_2022patent
,
{});
}
}
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业专利表
,
enterprise_2023patent
,
{});
}
}
if
(
subList
[
35
]
||
subList
[
36
]
||
subList
[
37
]
||
subList
[
38
])
{
if
(
subList
[
35
]
||
subList
[
36
]
||
subList
[
37
]
||
subList
[
38
])
{
...
...
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