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
2a3c2cd7
Commit
2a3c2cd7
authored
Aug 01, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
ab449410
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
PointController.java
...join/amos/patrol/business/controller/PointController.java
+6
-0
IPointClassifyDao.java
...mos/patrol/business/dao/repository/IPointClassifyDao.java
+4
-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/PointController.java
View file @
2a3c2cd7
...
...
@@ -268,6 +268,12 @@ public class PointController extends AbstractBaseController {
AgencyUserModel
user
=
getUserInfo
();
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
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/repository/IPointClassifyDao.java
View file @
2a3c2cd7
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.patrol.business.dao.repository;
import
java.util.List
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePoint
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.stereotype.Repository
;
...
...
@@ -17,6 +18,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> {
@Query
(
value
=
"select * from p_point_classify where point_id = ?1 and is_delete = 0"
,
nativeQuery
=
true
)
List
<
PointClassify
>
getPointClassifyByPointId
(
long
id
);
@Query
(
value
=
"SELECT * FROM `p_route_point` where point_id = ?1 and equipment_id = ?2"
,
nativeQuery
=
true
)
List
<
PointClassify
>
queryByPointIdAndEquipmentId
(
Long
pointId
,
String
equipmentId
);
@Modifying
@Transactional
@Query
(
value
=
"select * from p_point_classify where name = ?1"
,
nativeQuery
=
true
)
...
...
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