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
488294d7
Commit
488294d7
authored
Aug 01, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加接口
parent
5053cc9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
PointController.java
...join/amos/patrol/business/controller/PointController.java
+15
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
488294d7
...
...
@@ -259,6 +259,21 @@ public class PointController extends AbstractBaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"新增巡查对象"
,
notes
=
"新增巡查对象"
)
@GetMapping
(
value
=
"/xcdxIsExits"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
xcdxIsExits
(
Long
pointId
,
String
equipMentId
){
List
<
PointClassify
>
pointClassifies
=
iPointClassifyDao
.
queryByPointIdAndEquipmentId
(
pointId
,
equipMentId
);
if
(
pointClassifies
.
size
()
>
0
){
throw
new
RuntimeException
(
pointClassifies
.
get
(
0
).
getName
()
+
"已存在,不可添加"
);
}
return
CommonResponseUtil
.
success
(
true
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"新增巡查对象"
,
notes
=
"新增巡查对象"
)
@PostMapping
(
value
=
"/addPointXcdxList"
,
produces
=
"application/json;charset=UTF-8"
)
...
...
@@ -269,11 +284,6 @@ public class PointController extends AbstractBaseController {
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassifys
.
get
(
0
).
getPointId
());
for
(
PointInputItemNewVo
pointClassify
:
pointClassifys
)
{
List
<
PointClassify
>
pointClassifies
=
iPointClassifyDao
.
queryByPointIdAndEquipmentId
(
pointClassify
.
getPointId
(),
pointClassify
.
getEquipmentId
());
if
(
pointClassifies
.
size
()
>
0
){
throw
new
RuntimeException
(
pointClassify
.
getName
()+
"已存在,不可添加"
);
}
PointClassify
newPointClassify
=
new
PointClassify
();
newPointClassify
.
setEquipmentId
(
pointClassify
.
getEquipmentId
());
newPointClassify
.
setName
(
pointClassify
.
getName
());
...
...
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