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
5eb72f3f
Commit
5eb72f3f
authored
Jul 29, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
95514982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
RouteController.java
...join/amos/patrol/business/controller/RouteController.java
+17
-8
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 @
5eb72f3f
...
...
@@ -169,7 +169,7 @@ public class RouteController extends AbstractBaseController {
/**
* 根据ID查询巡检路线信息
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -240,7 +240,7 @@ public class RouteController extends AbstractBaseController {
/**
* 增加巡检路线
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -290,7 +290,7 @@ public class RouteController extends AbstractBaseController {
/**
* 更新巡检路线
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -364,7 +364,7 @@ public class RouteController extends AbstractBaseController {
/**
* 根据ID查询巡检路线信息
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -400,7 +400,7 @@ public class RouteController extends AbstractBaseController {
/**
* 查询巡检路线信息
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -509,7 +509,7 @@ public class RouteController extends AbstractBaseController {
/**
* 查询巡检路线上点列表
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -547,7 +547,7 @@ public class RouteController extends AbstractBaseController {
/**
* 巡检路线上增加巡检点
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -584,7 +584,7 @@ public class RouteController extends AbstractBaseController {
/**
* 巡检路线上删除巡检点
*
* @param
point
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -747,6 +747,15 @@ public class RouteController extends AbstractBaseController {
String
orgCode
=
getOrgCode
(
reginParams
);
route
.
setOrgCode
(
orgCode
);
route
.
setCreatorId
(
getUserId
());
//判断当前点,是不是已经绑定到当前线路上
List
<
Long
>
poi
=
route
.
getRoutePointList
().
stream
().
map
(
p
->
p
.
getPointId
()).
collect
(
Collectors
.
toList
());
List
<
RoutePoint
>
list
=
iRoutePointDao
.
queryRoutePoint
(
route
.
getId
(),
poi
.
toArray
(
new
Long
[
poi
.
size
()]));
if
(
list
.
size
()>
0
){
return
CommonResponseUtil
.
failure
(
"有巡检点已绑定,不能重复绑定!"
);
}
return
CommonResponseUtil
.
success
(
routeService
.
relevancyPoint
(
route
));
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
...
...
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