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
b6b3cf59
Commit
b6b3cf59
authored
Oct 26, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管控清单接口修改-bug修改
parent
ea053bc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
RouteController.java
...join/amos/patrol/business/controller/RouteController.java
+2
-4
PointMapper.java
.../yeejoin/amos/patrol/business/dao/mapper/PointMapper.java
+1
-1
pointMapper.xml
...ystem-patrol/src/main/resources/db/mapper/pointMapper.xml
+7
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/RouteController.java
View file @
b6b3cf59
...
...
@@ -887,10 +887,8 @@ public class RouteController extends AbstractBaseController {
@RequestParam
(
value
=
"pointNo"
,
required
=
false
)
String
pointNo
){
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
Point
>
pointPage
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<>();
number
=
(
number
-
1
)
*
size
;
List
<
Point
>
points
=
pointMapper
.
selectRoutePointList
(
number
,
size
,
name
,
pointNo
,
routeId
);
pointPage
.
setTotal
(
points
.
size
());
pointPage
.
setRecords
(
points
);
pointPage
.
setTotal
(
pointMapper
.
countRoutePointList
(
name
,
pointNo
,
routeId
));
pointPage
.
setRecords
(
pointMapper
.
selectRoutePointList
(
number
,
size
,
name
,
pointNo
,
routeId
));
return
CommonResponseUtil
.
success
(
pointPage
);
}
}
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 @
b6b3cf59
...
...
@@ -157,7 +157,7 @@ public interface PointMapper extends BaseMapper {
List
<
Map
<
String
,
Object
>>
getPointRefItem
(
List
<
Long
>
list
);
List
<
Point
>
selectRoutePointList
(
Long
number
,
Long
size
,
String
name
,
String
pointNo
,
String
routeId
);
Integer
countRoutePointList
(
String
name
,
String
pointNo
);
Integer
countRoutePointList
(
String
name
,
String
pointNo
,
String
routeId
);
List
<
RoutePoint
>
getRoutePoint
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
List
<
Point
>
findByName
(
@Param
(
value
=
"pointName"
)
String
pointName
,
@Param
(
value
=
"pointId"
)
String
pointId
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/pointMapper.xml
View file @
b6b3cf59
...
...
@@ -1462,6 +1462,13 @@
<select
id=
"countRoutePointList"
resultType=
"java.lang.Integer"
>
SELECT count(1) from p_point
WHERE route_id is null and is_delete = 0
<if
test=
"routeId != null and routeId != ''"
>
AND id not in (
select point_id
from p_route_point
where route_id = #{routeId}
)
</if>
<if
test=
"name != null and name != ''"
>
AND name like concat('%', #{name}, '%')
</if>
...
...
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