明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
letian_backend
Commits
154b6d23
Commit
154b6d23
authored
Oct 24, 2024
by
zengfanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
99804b2e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
excelRecordController.js
controller/excelRecordController.js
+1
-1
letianExcelRecord.js
db/models/letianExcelRecord.js
+0
-1
No files found.
controller/excelRecordController.js
View file @
154b6d23
...
...
@@ -24,7 +24,7 @@ async function list(req, res, next) {
let
pageSize
=
req
.
body
.
pageSize
||
10
;
let
skip
=
(
page
-
1
)
*
pageSize
;
let
count
=
await
DB
.
ExcelRecord
.
countDocuments
(
search
);
let
list
=
await
DB
.
ExcelRecord
.
find
(
search
).
skip
(
skip
).
limit
(
pageSize
).
populate
({
path
:
'creator'
,
select
:
"mobile name"
}).
populate
({
path
:
'excelUrl'
}).
lean
().
exec
();
let
list
=
await
DB
.
ExcelRecord
.
find
(
search
).
skip
(
skip
).
limit
(
pageSize
).
sort
({
_id
:
-
1
}).
populate
({
path
:
'creator'
,
select
:
"mobile name"
}).
populate
({
path
:
'excelUrl'
}).
lean
().
exec
();
res
.
sendData
({
count
,
list
})
}
catch
(
error
)
{
next
(
error
);
...
...
db/models/letianExcelRecord.js
View file @
154b6d23
...
...
@@ -12,7 +12,6 @@ const ExcelSchema = new Schema({
modleName
:
String
,
search
:
{
type
:
Object
},
status
:
{
type
:
Number
,
default
:
1
,
comment
:
"1, 未完成, 2 已完成。"
},
createdAt
:
{
type
:
Date
,
default
:
Date
.
now
,
...
...
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