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
a6045363
Commit
a6045363
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
29b05dd5
881cf5b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
month.ts
src/biz/fuHuqQi/month.ts
+4
-4
admin.ts
src/routers/admin.ts
+1
-1
No files found.
src/biz/fuHuqQi/month.ts
View file @
a6045363
...
...
@@ -7,7 +7,7 @@
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
*
as
monthData
from
"../../data/fuHuaQi/monthTable"
;
import
{
extractData
,
getTaskId
}
from
"../../util/tools"
;
import
{
changeEnumValue
,
extractData
,
getTaskId
}
from
"../../util/tools"
;
import
{
findAllFuHuaQiOperationNameMap
}
from
"../../data/fuHuaQi/fuhuaqi"
;
import
{
MonthConfig
}
from
"../../config/ojbectResultKeyConfig"
;
...
...
@@ -109,15 +109,15 @@ export async function monthTableList(state:number, year:number, month:number, pa
let
dataBaseList
=
await
monthData
.
findMonthTableList
(
selectParam
,
(
page
-
1
)
*
10
);
let
count
=
await
monthData
.
findMonthTableListCount
(
selectParam
);
let
operationNameMap
=
findAllFuHuaQiOperationNameMap
();
let
operationNameMap
=
await
findAllFuHuaQiOperationNameMap
();
let
dataList
=
[];
dataBaseList
.
forEach
(
info
=>
{
let
onceInfo
=
{
operationName
:
operationNameMap
[
info
.
fuHuaQiUscc
],
state
:
'已填报'
,
state
:
info
.
draftLock
==
false
?
'未填报'
:
'已填报'
,
time
:
`
${
info
.
year
}
年
${
info
.
month
}
月`
,
occupancyRate
:
info
.
occupancyRate
occupancyRate
:
info
.
occupancyRate
||
'-'
};
dataList
.
push
(
onceInfo
);
});
...
...
src/routers/admin.ts
View file @
a6045363
...
...
@@ -62,7 +62,7 @@ async function fuHuaQiBaseList(req, res) {
*/
async
function
getMonthList
(
req
,
res
)
{
let
reqConf
=
{
state
:
'Number'
,
year
:
'Number'
,
month
:
'Number'
,
page
:
'Number'
};
let
{
state
,
year
,
month
,
page
}
=
check
ReqParam
(
reqConf
,
req
.
body
);
let
{
state
,
year
,
month
,
page
}
=
check
ParamaterType
(
reqConf
,
req
.
body
);
let
result
=
await
monthTableList
(
state
,
year
,
month
,
page
);
res
.
success
(
result
);
...
...
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