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
0c546391
Commit
0c546391
authored
Feb 09, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
67cb5281
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
18 deletions
+36
-18
month.ts
src/biz/fuHuqQi/month.ts
+17
-1
ojbectResultKeyConfig.ts
src/config/ojbectResultKeyConfig.ts
+2
-2
fuhuaqi.ts
src/routers/fuhuaqi.ts
+17
-15
No files found.
src/biz/fuHuqQi/month.ts
View file @
0c546391
...
@@ -6,9 +6,10 @@
...
@@ -6,9 +6,10 @@
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
*
as
monthData
from
"../../data/fuHuaQi/monthTable"
;
import
*
as
monthData
from
"../../data/fuHuaQi/monthTable"
;
import
{
getTaskId
}
from
"../../util/tools"
;
import
{
extractData
,
getTaskId
}
from
"../../util/tools"
;
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
findAllFuHuaQiOperationNameMap
,
getFuHuaQiCreateDataTimeMap
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
findAllFuHuaQiOperationNameMap
,
getFuHuaQiCreateDataTimeMap
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
MonthListConfig
}
from
"../../config/ojbectResultKeyConfig"
;
/**
/**
* 新添加孵化器月度填报
* 新添加孵化器月度填报
...
@@ -123,3 +124,17 @@ async function getCompleted(selectParam, page) {
...
@@ -123,3 +124,17 @@ async function getCompleted(selectParam, page) {
});
});
return
{
count
,
dataList
}
return
{
count
,
dataList
}
}
}
/**
* 根据uscc查询任务信息
* @param uscc 企业统一信用代码
*/
export
async
function
getMonthByUscc
(
uscc
:
string
)
{
const
TaskId
=
getTaskId
(
uscc
);
let
dataBaseInfo
=
await
monthData
.
findmonthTableByTaskId
(
TaskId
);
if
(
!
dataBaseInfo
||
!
dataBaseInfo
.
taskId
)
throw
new
BizError
(
ERRORENUM
.
未找到数据
,
`未找到
${
uscc
}
的月度报表`
);
let
data
=
extractData
(
MonthListConfig
,
dataBaseInfo
);
return
{
data
};
}
\ No newline at end of file
src/config/ojbectResultKeyConfig.ts
View file @
0c546391
...
@@ -107,9 +107,9 @@ export const FuHuaQiListConfig = {
...
@@ -107,9 +107,9 @@ export const FuHuaQiListConfig = {
/**
/**
* 孵化器
任务信息
参数转换配置
* 孵化器
月度报表
参数转换配置
*/
*/
export
const
Task
ListConfig
=
{
export
const
Month
ListConfig
=
{
name
:{
key
:
"任务名称"
},
name
:{
key
:
"任务名称"
},
fuHuaQiUscc
:{
key
:
"任务所属孵化器id"
},
fuHuaQiUscc
:{
key
:
"任务所属孵化器id"
},
occupancyRate
:{
key
:
"出租率"
},
occupancyRate
:{
key
:
"出租率"
},
...
...
src/routers/fuhuaqi.ts
View file @
0c546391
...
@@ -22,11 +22,12 @@ export function setRouter(httpServer) {
...
@@ -22,11 +22,12 @@ export function setRouter(httpServer) {
/**任务 */
/**任务 */
httpServer
.
post
(
'/fuhuaqi/task/list'
,
checkFuHuaQiToken
,
asyncHandler
(
taskList
));
httpServer
.
post
(
'/fuhuaqi/task/list'
,
checkFuHuaQiToken
,
asyncHandler
(
taskList
));
httpServer
.
post
(
'/fuhuaqi/task/submit'
,
checkFuHuaQiToken
,
asyncHandler
(
submitTask
));
httpServer
.
post
(
'/fuhuaqi/task/submit'
,
checkFuHuaQiToken
,
asyncHandler
(
submitTask
));
httpServer
.
post
(
'/fuhuaqi/task/select'
,
checkFuHuaQiToken
,
asyncHandler
(
selectTaskInfo
));
/**月度报表 */
/**月度报表 */
httpServer
.
post
(
'/fuhuaqi/month/addreport'
,
checkFuHuaQiToken
,
asyncHandler
(
addReport
));
httpServer
.
post
(
'/fuhuaqi/month/addreport'
,
checkFuHuaQiToken
,
asyncHandler
(
addReport
));
httpServer
.
post
(
'/fuhuaqi/month/updatereport'
,
checkFuHuaQiToken
,
asyncHandler
(
updateReport
));
httpServer
.
post
(
'/fuhuaqi/month/updatereport'
,
checkFuHuaQiToken
,
asyncHandler
(
updateReport
));
httpServer
.
post
(
'/fuhuaqi/month/deletereport'
,
checkFuHuaQiToken
,
asyncHandler
(
deleteReport
));
httpServer
.
post
(
'/fuhuaqi/month/deletereport'
,
checkFuHuaQiToken
,
asyncHandler
(
deleteReport
));
httpServer
.
post
(
'/fuhuaqi/month/select'
,
checkFuHuaQiToken
,
asyncHandler
(
selectMonthInfo
));
/**融资企业填报 */
/**融资企业填报 */
httpServer
.
post
(
'/fuhuaqi/financing/create'
,
checkFuHuaQiToken
,
asyncHandler
(
createFinancingInfo
));
httpServer
.
post
(
'/fuhuaqi/financing/create'
,
checkFuHuaQiToken
,
asyncHandler
(
createFinancingInfo
));
...
@@ -319,20 +320,6 @@ async function submitTask(req, res) {
...
@@ -319,20 +320,6 @@ async function submitTask(req, res) {
/**
/**
* 查询迁入企业登记信息或新建企业登录信息
* @param req
* @param res
*/
async
function
selectTaskInfo
(
req
,
res
)
{
let
reqConf
=
{
uscc
:
'String'
};
let
{
uscc
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
result
=
await
taskBiz
.
getTaskByUscc
(
uscc
);
res
.
success
(
result
);
}
/**
* 更新基础数据
* 更新基础数据
* @param req
* @param req
* @param res
* @param res
...
@@ -372,6 +359,21 @@ async function deleteReport(req, res) {
...
@@ -372,6 +359,21 @@ async function deleteReport(req, res) {
res
.
success
(
monthInfo
);
res
.
success
(
monthInfo
);
}
}
/**
* 查询迁入企业登记信息或新建企业登录信息
* @param req
* @param res
*/
async
function
selectMonthInfo
(
req
,
res
)
{
let
reqConf
=
{
uscc
:
'String'
};
let
{
uscc
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
result
=
await
monthBiz
.
getMonthByUscc
(
uscc
);
res
.
success
(
result
);
}
/**
/**
* 孵化器月度填报 修改报表
* 孵化器月度填报 修改报表
* @param req
* @param req
...
...
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