Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
7138c52c
Commit
7138c52c
authored
Oct 26, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页功能失效bug
parent
2c03f454
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
PointMapper.java
.../yeejoin/amos/patrol/business/dao/mapper/PointMapper.java
+1
-1
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+2
-1
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+1
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PointMapper.java
View file @
7138c52c
...
...
@@ -47,7 +47,7 @@ public interface PointMapper extends BaseMapper {
List
<
PointInputItemVo
>
getPointClassInputItemById
(
@Param
(
value
=
"pointId"
)
Long
pointId
);
List
<
Point
>
listByParams
(
@Param
(
value
=
"pointParams"
)
PointQueryVo
pointParams
);
List
<
Point
>
listByParams
(
@Param
(
value
=
"pointParams"
)
PointQueryVo
pointParams
,
int
number
,
int
size
);
int
listByParamsCount
(
PointQueryVo
pointParams
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
7138c52c
...
...
@@ -2121,7 +2121,8 @@ public class PointServiceImpl implements IPointService {
/*13迭代新增列表方法*/
public
IPage
<
PointVo
>
queryPointInfoNew
(
PointQueryVo
pointParams
,
int
current
,
int
size
,
String
loginOrgCode
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
Object
>
page
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<>(
current
,
size
);
List
<
Point
>
pointPage
=
pointMapper
.
listByParams
(
pointParams
);
current
=
(
current
-
1
)
*
size
;
List
<
Point
>
pointPage
=
pointMapper
.
listByParams
(
pointParams
,
current
,
size
);
int
num
=
pointMapper
.
listByParamsCount
(
pointParams
);
List
<
PointVo
>
pointVoList
=
new
ArrayList
<>();
for
(
Point
point
:
pointPage
)
{
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
7138c52c
...
...
@@ -111,6 +111,7 @@
</if>
</where>
ORDER BY p.id DESC
LIMIT #{number}, #{size}
</select>
<select
id=
"listByParamsCount"
resultType=
"int"
>
...
...
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