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
790ef45b
Commit
790ef45b
authored
Feb 10, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/zjxcxServer
parents
3b279d99
149eaf28
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
financing.ts
src/biz/enterprise/financing.ts
+10
-5
financing.ts
src/data/enterprise/financing.ts
+1
-2
fuhuaqi.ts
src/data/fuHuaQi/fuhuaqi.ts
+2
-2
admin.ts
src/routers/admin.ts
+6
-6
fuhuaqi.ts
src/routers/fuhuaqi.ts
+2
-2
No files found.
src/biz/enterprise/financing.ts
View file @
790ef45b
...
@@ -13,6 +13,7 @@ import { FinancingListConfig } from "../../config/ojbectResultKeyConfig";
...
@@ -13,6 +13,7 @@ import { FinancingListConfig } from "../../config/ojbectResultKeyConfig";
import
{
BizError
}
from
"../../util/bizError"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
checkChange
,
checkParamater
,
extractData
,
getTaskId
}
from
"../../util/tools"
;
import
{
checkChange
,
checkParamater
,
extractData
,
getTaskId
}
from
"../../util/tools"
;
import
{
findEnterpriseInfoByName
,
findEnterpriseListByFuHuaQiUsccName
}
from
"../../data/enterprise/enterprise"
;
import
{
findEnterpriseInfoByName
,
findEnterpriseListByFuHuaQiUsccName
}
from
"../../data/enterprise/enterprise"
;
import
{
findFuHuaQiByName
}
from
"../../data/fuHuaQi/fuhuaqi"
;
/**
/**
...
@@ -118,17 +119,21 @@ export async function getFinancingByName(uscc:string) {
...
@@ -118,17 +119,21 @@ export async function getFinancingByName(uscc:string) {
/**
/**
* 融资企业信息列表
* 融资企业信息列表
* @param month 数据月份 目前数据库没有该字段
* @param month
Data
数据月份 目前数据库没有该字段
* @param fuHuaQi
Uscc 孵化器信用代码
* @param fuHuaQi
Name 所属孵化器
* @param industry 行业领域
* @param industry 行业领域
* @param fuHuaQiInvestment 孵化器是否参与投资
* @param fuHuaQiInvestment 孵化器是否参与投资
* @param page 页数
* @param page 页数
* @returns
* @returns
*/
*/
export
async
function
financingList
(
month
:
string
,
fuHuaQiUscc
:
string
,
industry
:
string
,
fuHuaQiInvestment
:
boolean
,
page
:
number
)
{
export
async
function
financingList
(
monthData
:
string
,
fuHuaQiName
:
string
,
industry
:[
Number
],
fuHuaQiInvestment
:
boolean
,
page
:
number
)
{
let
fuHuaQiInfo
=
await
findFuHuaQiByName
(
fuHuaQiName
);
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
month
)
selectParam
.
month
=
month
;
let
year
=
monthData
.
substring
(
0
,
5
);
if
(
fuHuaQiUscc
)
selectParam
.
fuHuaQiUscc
=
fuHuaQiUscc
;
let
month
=
monthData
.
slice
(
5
,
monthData
.
length
);
if
(
monthData
)
selectParam
.
year
=
year
;
selectParam
.
month
=
month
;
if
(
fuHuaQiName
)
selectParam
.
fuHuaQiUscc
=
fuHuaQiInfo
.
uscc
;
if
(
industry
)
selectParam
.
industry
=
industry
;
if
(
industry
)
selectParam
.
industry
=
industry
;
if
(
fuHuaQiInvestment
)
selectParam
.
fuHuaQiInvestment
=
fuHuaQiInvestment
;
if
(
fuHuaQiInvestment
)
selectParam
.
fuHuaQiInvestment
=
fuHuaQiInvestment
;
...
...
src/data/enterprise/financing.ts
View file @
790ef45b
...
@@ -16,7 +16,7 @@ const financingSchema = new Schema({
...
@@ -16,7 +16,7 @@ const financingSchema = new Schema({
operatingAdd
:
String
,
//经营地址
operatingAdd
:
String
,
//经营地址
financingAmount
:
Number
,
//融资金额(万元)
financingAmount
:
Number
,
//融资金额(万元)
investmentInstitutionsName
:
String
,
//投资机构名称
investmentInstitutionsName
:
String
,
//投资机构名称
timeToObtainInvestment
:
Number
,
//获得投资时间
timeToObtainInvestment
:
String
,
//获得投资时间
fuHuaQiInvestment
:{
type
:
Boolean
,
default
:
false
},
//孵化器是否投资
fuHuaQiInvestment
:{
type
:
Boolean
,
default
:
false
},
//孵化器是否投资
fuHuaQiInvestmentAmount
:
Number
,
//孵化器投资金额(万元)
fuHuaQiInvestmentAmount
:
Number
,
//孵化器投资金额(万元)
fuHuaQiInvestmentStyle
:
Number
,
//孵化器投资方式
fuHuaQiInvestmentStyle
:
Number
,
//孵化器投资方式
...
@@ -25,7 +25,6 @@ const financingSchema = new Schema({
...
@@ -25,7 +25,6 @@ const financingSchema = new Schema({
year
:
String
,
//数据年份
year
:
String
,
//数据年份
month
:
String
,
//数据月份
month
:
String
,
//数据月份
industry
:[
Number
],
//领域
industry
:[
Number
],
//领域
belongToIncubator
:
String
,
//所属孵化器
});
});
var
financingModel
;
var
financingModel
;
...
...
src/data/fuHuaQi/fuhuaqi.ts
View file @
790ef45b
...
@@ -80,7 +80,7 @@ export async function findFuHuaQiByUSCC(uscc:string) {
...
@@ -80,7 +80,7 @@ export async function findFuHuaQiByUSCC(uscc:string) {
* @returns {}
* @returns {}
*/
*/
export
async
function
findFuHuaQiByName
(
name
:
string
)
{
export
async
function
findFuHuaQiByName
(
name
:
string
)
{
return
await
fuHuaQiModel
.
findOne
({
name
})
.
exec
()
;
return
await
fuHuaQiModel
.
findOne
({
name
});
}
}
/**
/**
...
@@ -89,7 +89,7 @@ export async function findFuHuaQiByName(name:string) {
...
@@ -89,7 +89,7 @@ export async function findFuHuaQiByName(name:string) {
* @returns 信用代码为uscc的孵化器信息
* @returns 信用代码为uscc的孵化器信息
*/
*/
export
async
function
findFuHuaQiByUscc
(
uscc
:
string
)
{
export
async
function
findFuHuaQiByUscc
(
uscc
:
string
)
{
return
await
fuHuaQiModel
.
findOne
({
uscc
})
.
exec
()
;
return
await
fuHuaQiModel
.
findOne
({
uscc
});
}
}
...
...
src/routers/admin.ts
View file @
790ef45b
...
@@ -61,7 +61,7 @@ async function fuHuaQiBaseList(req, res) {
...
@@ -61,7 +61,7 @@ async function fuHuaQiBaseList(req, res) {
* @param res
* @param res
*/
*/
async
function
getFuHuaQiUserList
(
req
,
res
)
{
async
function
getFuHuaQiUserList
(
req
,
res
)
{
let
reqConf
=
{
operationName
:
'
string'
,
page
:
'n
umber'
};
let
reqConf
=
{
operationName
:
'
String'
,
page
:
'N
umber'
};
let
{
operationName
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
{
operationName
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
const
Uscc
=
req
.
headers
.
uscc
;
const
Uscc
=
req
.
headers
.
uscc
;
...
@@ -76,11 +76,11 @@ async function fuHuaQiBaseList(req, res) {
...
@@ -76,11 +76,11 @@ async function fuHuaQiBaseList(req, res) {
* @param res
* @param res
*/
*/
async
function
getFinancingList
(
req
,
res
)
{
async
function
getFinancingList
(
req
,
res
)
{
let
reqConf
=
{
month
:
'string'
,
fuHuaQiUscc
:
'string'
,
industry
:
'string'
,
fuHuaQiInvestment
:
'boolean'
,
page
:
'n
umber'
};
let
reqConf
=
{
month
Data
:
'String'
,
fuHuaQiName
:
'String'
,
industry
:
'[Number]'
,
fuHuaQiInvestment
:
'Boolean'
,
page
:
'N
umber'
};
let
{
month
,
fuHuaQiUscc
,
industry
,
fuHuaQiInvestment
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
{
month
Data
,
fuHuaQiName
,
industry
,
fuHuaQiInvestment
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
const
Uscc
=
req
.
headers
.
uscc
;
const
Uscc
=
req
.
headers
.
uscc
;
let
result
=
await
financingBiz
.
financingList
(
month
,
fuHuaQiUscc
,
industry
,
fuHuaQiInvestment
,
page
);
let
result
=
await
financingBiz
.
financingList
(
month
Data
,
fuHuaQiName
,
industry
,
fuHuaQiInvestment
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -91,7 +91,7 @@ async function fuHuaQiBaseList(req, res) {
...
@@ -91,7 +91,7 @@ async function fuHuaQiBaseList(req, res) {
* @param res
* @param res
*/
*/
async
function
getEnterpriseList
(
req
,
res
)
{
async
function
getEnterpriseList
(
req
,
res
)
{
let
reqConf
=
{
time
:
'
number'
,
fuHuaQiUscc
:
'string'
,
industry
:
'number'
,
isNaturalPersonHolding
:
'boolean'
,
page
:
'n
umber'
};
let
reqConf
=
{
time
:
'
Number'
,
fuHuaQiUscc
:
'String'
,
industry
:
'Number'
,
isNaturalPersonHolding
:
'Boolean'
,
page
:
'N
umber'
};
let
{
time
,
fuHuaQiUscc
,
industry
,
isNaturalPersonHolding
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
{
time
,
fuHuaQiUscc
,
industry
,
isNaturalPersonHolding
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
const
Uscc
=
req
.
headers
.
uscc
;
const
Uscc
=
req
.
headers
.
uscc
;
...
@@ -106,7 +106,7 @@ async function fuHuaQiBaseList(req, res) {
...
@@ -106,7 +106,7 @@ async function fuHuaQiBaseList(req, res) {
* @param res
* @param res
*/
*/
async
function
updateState
(
req
,
res
)
{
async
function
updateState
(
req
,
res
)
{
let
reqConf
=
{
userState
:
'
boolean'
,
uscc
:
's
tring'
};
let
reqConf
=
{
userState
:
'
Boolean'
,
uscc
:
'S
tring'
};
let
{
userState
,
uscc
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
{
userState
,
uscc
}
=
checkReqParam
(
reqConf
,
req
.
body
);
const
Uscc
=
req
.
headers
.
uscc
;
const
Uscc
=
req
.
headers
.
uscc
;
...
...
src/routers/fuhuaqi.ts
View file @
790ef45b
...
@@ -17,7 +17,7 @@ export function setRouter(httpServer) {
...
@@ -17,7 +17,7 @@ export function setRouter(httpServer) {
/**基础数据 */
/**基础数据 */
httpServer
.
post
(
'/fuhuaqi/base'
,
checkFuHuaQiToken
,
asyncHandler
(
baseInfo
));
httpServer
.
post
(
'/fuhuaqi/base'
,
checkFuHuaQiToken
,
asyncHandler
(
baseInfo
));
httpServer
.
post
(
'/fuhuaqi/mydata'
,
checkFuHuaQiToken
,
asyncHandler
(
myDataInfo
));
httpServer
.
post
(
'/fuhuaqi/mydata'
,
asyncHandler
(
myDataInfo
));
httpServer
.
post
(
'/fuhuaqi/base/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateMyDataInfo
));
httpServer
.
post
(
'/fuhuaqi/base/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateMyDataInfo
));
/**任务 */
/**任务 */
httpServer
.
post
(
'/fuhuaqi/task/list'
,
checkFuHuaQiToken
,
asyncHandler
(
taskList
));
httpServer
.
post
(
'/fuhuaqi/task/list'
,
checkFuHuaQiToken
,
asyncHandler
(
taskList
));
...
@@ -32,7 +32,7 @@ export function setRouter(httpServer) {
...
@@ -32,7 +32,7 @@ export function setRouter(httpServer) {
/**融资企业填报 */
/**融资企业填报 */
httpServer
.
post
(
'/fuhuaqi/financing/create'
,
checkFuHuaQiToken
,
asyncHandler
(
createFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/create'
,
checkFuHuaQiToken
,
asyncHandler
(
createFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/select'
,
checkFuHuaQiToken
,
asyncHandler
(
selectEnterpriseFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/select'
,
asyncHandler
(
selectEnterpriseFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/delete'
,
checkFuHuaQiToken
,
asyncHandler
(
delEnterpriseFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/delete'
,
checkFuHuaQiToken
,
asyncHandler
(
delEnterpriseFinancingInfo
));
httpServer
.
post
(
'/admin/financing/namelist'
,
asyncHandler
(
getFinancingInfoByName
));
httpServer
.
post
(
'/admin/financing/namelist'
,
asyncHandler
(
getFinancingInfoByName
));
...
...
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