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
8ec125fe
Commit
8ec125fe
authored
Aug 01, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
18719393
488294d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+2
-2
PointController.java
...join/amos/patrol/business/controller/PointController.java
+15
-5
IPointClassifyDao.java
...mos/patrol/business/dao/repository/IPointClassifyDao.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
8ec125fe
...
...
@@ -991,7 +991,7 @@ public class OrgUsrController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@
Ge
tMapping
(
value
=
"/selectByIdDeptList"
)
@
Pos
tMapping
(
value
=
"/selectByIdDeptList"
)
public
ResponseModel
<
Object
>
selectByIdDeptList
(
@RequestBody
String
ids
)
throws
Exception
{
String
[]
slid
=
ids
.
split
(
","
);
...
...
@@ -1003,7 +1003,7 @@ public class OrgUsrController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@
Ge
tMapping
(
value
=
"/selectByAmosOrgIdDeptList"
)
@
Pos
tMapping
(
value
=
"/selectByAmosOrgIdDeptList"
)
public
ResponseModel
<
Object
>
selectByAmosOrgIdDeptList
(
@RequestBody
String
ids
)
throws
Exception
{
String
[]
slid
=
ids
.
split
(
","
);
...
...
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 @
8ec125fe
...
...
@@ -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
());
...
...
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 @
8ec125fe
...
...
@@ -18,7 +18,7 @@ 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
)
@Query
(
value
=
"SELECT * FROM `p_
point_classify
` where point_id = ?1 and equipment_id = ?2"
,
nativeQuery
=
true
)
List
<
PointClassify
>
queryByPointIdAndEquipmentId
(
Long
pointId
,
String
equipmentId
);
@Modifying
...
...
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