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
4553619c
Commit
4553619c
authored
Oct 27, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_patrol' into develop_tzs_patrol
parents
12533868
b6b3cf59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
RouteController.java
...join/amos/patrol/business/controller/RouteController.java
+2
-1
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 @
4553619c
...
...
@@ -31,6 +31,7 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
liquibase.pro.packaged.S
;
import
org.apache.commons.lang3.StringUtils
;
import
org.aspectj.weaver.ast.Var
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -886,7 +887,7 @@ 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
;
pointPage
.
setTotal
(
pointMapper
.
countRoutePointList
(
name
,
pointNo
));
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 @
4553619c
...
...
@@ -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 @
4553619c
...
...
@@ -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