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
9e00446c
Commit
9e00446c
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
# Conflicts: # src/biz/enterprise/enterprise.ts
parents
938f2255
da91c519
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
enterprise.ts
src/biz/enterprise/enterprise.ts
+20
-2
admin.ts
src/routers/admin.ts
+11
-0
No files found.
src/biz/enterprise/enterprise.ts
View file @
9e00446c
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
import
{
MoveInEnterpriseParamConfig
,
RegisterEnterpriseParamConfig
}
from
"../../config/checkParamConfig"
;
import
{
MoveInEnterpriseParamConfig
,
RegisterEnterpriseParamConfig
}
from
"../../config/checkParamConfig"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
EnterpriseInfoConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
EnterpriseInfoConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
createEnterprise
,
deleteEnterprise
,
findEnterpriseCount
,
findEnterpriseByUscc
,
findEnterpriseList
}
from
"../../data/enterprise/enterprise"
;
import
{
EnterpriseListConfig
}
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
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
createEnterprise
,
deleteEnterprise
,
findEnterpriseCount
,
findEnterpriseByUscc
,
findEnterpriseList
,
findEnterpriseListByFuHuaQiUsccName
}
from
"../../data/enterprise/enterprise"
;
import
{
EnterpriseListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
findFuHuaQiByUSCC
}
from
"../../data/fuHuaQi/fuhuaqi"
;
/**
/**
...
@@ -182,3 +183,20 @@ export async function enterpriseList(time:string, fuHuaQiUscc:string, industry,
...
@@ -182,3 +183,20 @@ export async function enterpriseList(time:string, fuHuaQiUscc:string, industry,
return
{
count
,
dataList
};
return
{
count
,
dataList
};
}
}
export
async
function
getAffiliationFuHuaQi
(
fuHuaQiUscc
:
string
)
{
let
dataList
=
[];
if
(
fuHuaQiUscc
.
length
>
0
)
{
let
dataBaseInfo
=
await
findEnterpriseListByFuHuaQiUsccName
(
fuHuaQiUscc
);
let
uscc
;
dataBaseInfo
.
forEach
(
async
info
=>
{
uscc
=
info
.
fuHuaQiUscc
;
})
let
fuHuaQiInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
dataList
.
push
(
fuHuaQiInfo
.
name
)
}
return
{
dataList
}
}
src/routers/admin.ts
View file @
9e00446c
...
@@ -22,6 +22,7 @@ export function setRouter(httpServer) {
...
@@ -22,6 +22,7 @@ export function setRouter(httpServer) {
/**企业 */
/**企业 */
httpServer
.
post
(
'/admin/enterprise/list'
,
asyncHandler
(
getEnterpriseList
));
httpServer
.
post
(
'/admin/enterprise/list'
,
asyncHandler
(
getEnterpriseList
));
httpServer
.
post
(
'/admin/enterprise/financinglist'
,
asyncHandler
(
getFinancingList
));
httpServer
.
post
(
'/admin/enterprise/financinglist'
,
asyncHandler
(
getFinancingList
));
httpServer
.
post
(
'/admin/enterprise/affiliationfuhuaqi'
,
asyncHandler
(
affiliationFuHuaQi
));
}
}
...
@@ -132,3 +133,12 @@ async function addUser(req, res) {
...
@@ -132,3 +133,12 @@ async function addUser(req, res) {
let
result
=
await
userBiz
.
addUser
(
form
);
let
result
=
await
userBiz
.
addUser
(
form
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
async
function
affiliationFuHuaQi
(
req
,
res
)
{
let
reqConf
=
{
fuHuaQiUscc
:
'String'
};
let
{
fuHuaQiUscc
}
=
checkParamaterType
(
reqConf
,
req
.
body
);
let
result
=
await
enterpriseBiz
.
getAffiliationFuHuaQi
(
fuHuaQiUscc
);
res
.
success
(
result
);
}
\ No newline at end of file
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