明树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
5360ed38
Commit
5360ed38
authored
Sep 12, 2024
by
zengfanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6a8d2813
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
userController.js
controller/userController.js
+1
-1
letian
db/models/letian
+0
-0
No files found.
README.md
View file @
5360ed38
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
| IPS | 虫情 |
| IPS | 虫情 |
| SMC | 土壤墒情 |
| SMC | 土壤墒情 |
| WS | 气象 |
| WS | 气象 |
| ACMS | 农事综合管理系统 |
# 记录
# 记录
...
...
controller/userController.js
View file @
5360ed38
...
@@ -242,7 +242,7 @@ async function listRole(req, res, next) {
...
@@ -242,7 +242,7 @@ async function listRole(req, res, next) {
search
.
name
=
{
$regex
:
req
.
body
.
name
};
search
.
name
=
{
$regex
:
req
.
body
.
name
};
}
}
const
count
=
await
DB
.
Role
.
countDocuments
(
search
);
const
count
=
await
DB
.
Role
.
countDocuments
(
search
);
const
list
=
await
DB
.
Role
.
find
(
search
).
skip
(
skip
).
limit
(
limit
);
const
list
=
await
DB
.
Role
.
find
(
search
).
skip
(
skip
).
limit
(
pageSize
);
res
.
sendData
({
list
,
count
});
res
.
sendData
({
list
,
count
});
}
catch
(
error
)
{
}
catch
(
error
)
{
next
(
error
);
next
(
error
);
...
...
db/models/letian
0 → 100644
View file @
5360ed38
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