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
d03f5ca3
Commit
d03f5ca3
authored
Dec 07, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
68a5d751
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
8 deletions
+30
-8
PointController.java
...join/amos/patrol/business/controller/PointController.java
+17
-0
RoutePointItemMapper.java
...amos/patrol/business/dao/mapper/RoutePointItemMapper.java
+1
-1
IPointClassifyDao.java
...mos/patrol/business/dao/repository/IPointClassifyDao.java
+5
-0
routePointItemMapper.xml
...rol/src/main/resources/db/mapper/routePointItemMapper.xml
+7
-7
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 @
d03f5ca3
...
...
@@ -204,6 +204,15 @@ public class PointController extends AbstractBaseController {
public
CommonResponse
addPointXcdx
(
@ApiParam
(
value
=
"新增巡查对象"
,
required
=
true
)
@RequestBody
PointInputItemNewVo
pointClassify
){
try
{
//增加判断
PointClassify
PointClassifyk
=
iPointClassifyDao
.
getPointClassifyByPointIdandcode
(
pointClassify
.
getPointId
(),
pointClassify
.
getCode
());
if
(
PointClassifyk
!=
null
){
if
(
PointClassifyk
.
getId
()!=
pointClassify
.
getId
()){
return
CommonResponseUtil
.
failure
(
"巡查对象code,不能重复!"
);
}
}
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassify
.
getPointId
());
AgencyUserModel
user
=
getUserInfo
();
PointClassify
newPointClassify
=
new
PointClassify
();
...
...
@@ -334,6 +343,14 @@ public class PointController extends AbstractBaseController {
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassifys
.
get
(
0
).
getPointId
());
for
(
PointInputItemNewVo
pointClassify
:
pointClassifys
)
{
PointClassify
PointClassifyk
=
iPointClassifyDao
.
getPointClassifyByPointIdandcode
(
pointClassify
.
getPointId
(),
pointClassify
.
getCode
());
if
(
PointClassifyk
!=
null
){
if
(
PointClassifyk
.
getId
()!=
pointClassify
.
getId
()){
return
CommonResponseUtil
.
failure
(
"巡查对象code,不能重复!"
);
}
}
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/mapper/RoutePointItemMapper.java
View file @
d03f5ca3
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
public
interface
RoutePointItemMapper
extends
BaseMapper
{
...
...
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 @
d03f5ca3
...
...
@@ -50,4 +50,9 @@ public interface IPointClassifyDao extends BaseDao<PointClassify, Long> {
List
<
PointClassify
>
selectByOriginalId
(
String
id
);
PointClassify
findByOriginalId
(
String
originalId
);
@Query
(
value
=
"select * from p_point_classify where point_id = ?1 and code = ?2 and is_delete = 0 "
,
nativeQuery
=
true
)
PointClassify
getPointClassifyByPointIdandcode
(
long
id
,
String
code
);
}
amos-boot-system-patrol/src/main/resources/db/mapper/routePointItemMapper.xml
View file @
d03f5ca3
...
...
@@ -64,13 +64,13 @@
(`id`, `route_point_id`, `order_no`, `point_input_item_id`, `creator_id`, `create_date`, `point_classify_id`, `basis_json`)
VALUES(
#{id},
#{route
_point_i
d},
#{order
_n
o},
#{point
_input_item_i
d},
#{creator
_i
d},
#{create
_d
ate},
#{point
_classify_i
d},
#{basis
_j
son})
#{route
PointI
d},
#{order
N
o},
#{point
InputItemI
d},
#{creator
I
d},
#{create
D
ate},
#{point
ClassifyI
d},
#{basis
J
son})
</insert>
...
...
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