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
f282e404
Commit
f282e404
authored
Feb 10, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
bb4cd4fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
base.ts
src/biz/fuHuqQi/base.ts
+4
-2
fuhuaqi.ts
src/routers/fuhuaqi.ts
+2
-2
No files found.
src/biz/fuHuqQi/base.ts
View file @
f282e404
...
@@ -10,6 +10,7 @@ import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, groupFindEnterpr
...
@@ -10,6 +10,7 @@ import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, groupFindEnterpr
import
{
findFuHuaQiByUSCC
,
findFuHuaQiCount
,
findFuHuaQiList
,
groupFindFuHuaQi
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
findFuHuaQiByUSCC
,
findFuHuaQiCount
,
findFuHuaQiList
,
groupFindFuHuaQi
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
*
as
tools
from
"../../util/tools"
;
import
*
as
tools
from
"../../util/tools"
;
import
{
FuHuaQiBaseListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
FuHuaQiBaseListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
import
{
FUHUAQILV
}
from
"../../config/enum"
;
/**
/**
...
@@ -66,7 +67,7 @@ export async function selectFuHuaQiBaseData(uscc:string) {
...
@@ -66,7 +67,7 @@ export async function selectFuHuaQiBaseData(uscc:string) {
*/
*/
export
async
function
homeData
(
uscc
:
string
)
{
export
async
function
homeData
(
uscc
:
string
)
{
let
dataBaseInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
let
dataBaseInfo
=
await
findFuHuaQiByUSCC
(
uscc
);
let
keyList
=
[
"incubatedAcreage"
,
"acreageTotal"
,
"acreagePersonalUse"
,
"name"
];
let
keyList
=
[
"incubatedAcreage"
,
"acreageTotal"
,
"acreagePersonalUse"
,
"name"
,
"lv"
,
"institutionalNature"
];
let
data
:
any
=
{
enterpriseCount
:
0
};
let
data
:
any
=
{
enterpriseCount
:
0
};
keyList
.
forEach
(
key
=>
{
keyList
.
forEach
(
key
=>
{
...
@@ -74,7 +75,8 @@ export async function homeData(uscc:string) {
...
@@ -74,7 +75,8 @@ export async function homeData(uscc:string) {
});
});
data
.
enterpriseCount
=
await
findEnterpriseCountByFuHuaQiUscc
(
uscc
);
data
.
enterpriseCount
=
await
findEnterpriseCountByFuHuaQiUscc
(
uscc
);
data
.
lv
=
FUHUAQILV
[
dataBaseInfo
.
lv
];
data
.
institutionalNature
=
FUHUAQILV
[
dataBaseInfo
.
institutionalNature
];
return
data
;
return
data
;
}
}
...
...
src/routers/fuhuaqi.ts
View file @
f282e404
...
@@ -16,7 +16,7 @@ export function setRouter(httpServer) {
...
@@ -16,7 +16,7 @@ export function setRouter(httpServer) {
httpServer
.
post
(
'/fuhuaqi/login/firstupdate'
,
checkFuHuaQiToken
,
asyncHandler
(
firstUpdatePwd
));
httpServer
.
post
(
'/fuhuaqi/login/firstupdate'
,
checkFuHuaQiToken
,
asyncHandler
(
firstUpdatePwd
));
/**基础数据 */
/**基础数据 */
httpServer
.
post
(
'/fuhuaqi/base'
,
checkFuHuaQiToken
,
asyncHandler
(
baseInfo
));
httpServer
.
post
(
'/fuhuaqi/base'
,
asyncHandler
(
baseInfo
));
httpServer
.
post
(
'/fuhuaqi/mydata'
,
asyncHandler
(
myDataInfo
));
httpServer
.
post
(
'/fuhuaqi/mydata'
,
asyncHandler
(
myDataInfo
));
httpServer
.
post
(
'/fuhuaqi/base/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateMyDataInfo
));
httpServer
.
post
(
'/fuhuaqi/base/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateMyDataInfo
));
/**任务 */
/**任务 */
...
@@ -34,7 +34,7 @@ export function setRouter(httpServer) {
...
@@ -34,7 +34,7 @@ export function setRouter(httpServer) {
httpServer
.
post
(
'/fuhuaqi/financing/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/update'
,
checkFuHuaQiToken
,
asyncHandler
(
updateFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/select'
,
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'
,
checkFuHuaQiToken
,
asyncHandler
(
getFinancingInfoByName
));
/**新注册或迁入企业 */
/**新注册或迁入企业 */
httpServer
.
post
(
'/fuhuaqi/enterprise/register'
,
checkFuHuaQiToken
,
asyncHandler
(
registerEnterprise
));
httpServer
.
post
(
'/fuhuaqi/enterprise/register'
,
checkFuHuaQiToken
,
asyncHandler
(
registerEnterprise
));
...
...
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