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
32973e9a
Commit
32973e9a
authored
Jul 25, 2022
by
chenzhao
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
f0edbff5
3851ef01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
32 deletions
+35
-32
PointController.java
...join/amos/patrol/business/controller/PointController.java
+35
-32
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 @
32973e9a
...
@@ -143,45 +143,48 @@ public class PointController extends AbstractBaseController {
...
@@ -143,45 +143,48 @@ public class PointController extends AbstractBaseController {
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassify
.
getPointId
());
List
<
RoutePoint
>
routePointList
=
iRoutePointDao
.
queryByPointId
(
pointClassify
.
getPointId
());
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
PointClassify
newPointClassify
=
new
PointClassify
();
PointClassify
newPointClassify
=
new
PointClassify
();
if
(
pointClassify
.
getId
()!=
null
){
if
(
pointClassify
.
getId
()==
null
){
newPointClassify
.
setId
(
pointClassify
.
getId
());
}
newPointClassify
.
setEquipmentId
(
pointClassify
.
getEquipmentId
());
newPointClassify
.
setEquipmentId
(
pointClassify
.
getEquipmentId
());
newPointClassify
.
setName
(
pointClassify
.
getName
());
newPointClassify
.
setName
(
pointClassify
.
getName
());
newPointClassify
.
setInspectionSpecName
(
pointClassify
.
getInspectionName
());
newPointClassify
.
setInspectionSpecName
(
pointClassify
.
getInspectionName
());
newPointClassify
.
setCreatorId
(
user
.
getUserId
());
newPointClassify
.
setCreatorId
(
user
.
getUserId
());
newPointClassify
.
setPointId
(
pointClassify
.
getPointId
());
newPointClassify
.
setPointId
(
pointClassify
.
getPointId
());
newPointClassify
.
setOrderNo
(
0
);
newPointClassify
.
setOrderNo
(
0
);
newPointClassify
.
setDataSourceCode
(
pointClassify
.
getDataSourceCode
());
newPointClassify
.
setDataSourceCode
(
pointClassify
.
getDataSourceCode
());
newPointClassify
.
setDataSourceName
(
pointClassify
.
getDataSourceName
());
newPointClassify
.
setDataSourceName
(
pointClassify
.
getDataSourceName
());
newPointClassify
.
setAddress
(
pointClassify
.
getAddress
());
newPointClassify
.
setAddress
(
pointClassify
.
getAddress
());
newPointClassify
.
setBuildingId
(
pointClassify
.
getBuildingId
());
newPointClassify
.
setBuildingId
(
pointClassify
.
getBuildingId
());
if
(
pointClassify
.
getBuildingName
()==
null
){
if
(
pointClassify
.
getBuildingName
()==
null
){
FeignClientResult
responseModel
=
equipFeign
.
getBuildingTreeOne
(
pointClassify
.
getBuildingId
());
FeignClientResult
responseModel
=
equipFeign
.
getBuildingTreeOne
(
pointClassify
.
getBuildingId
());
if
(
ObjectUtils
.
isEmpty
(
responseModel
.
getResult
())
||
responseModel
.
getStatus
()
!=
HttpStatus
.
OK
.
value
())
{
if
(
ObjectUtils
.
isEmpty
(
responseModel
.
getResult
())
||
responseModel
.
getStatus
()
!=
HttpStatus
.
OK
.
value
())
{
throw
new
RuntimeException
(
responseModel
.
getDevMessage
());
throw
new
RuntimeException
(
responseModel
.
getDevMessage
());
}
else
{
Map
<
String
,
Object
>
dat
=(
Map
<
String
,
Object
>)
responseModel
.
getResult
();
newPointClassify
.
setBuildingName
(
dat
.
get
(
"name"
).
toString
());
}
}
else
{
}
else
{
Map
<
String
,
Object
>
dat
=(
Map
<
String
,
Object
>)
responseModel
.
getResult
();
newPointClassify
.
setBuildingName
(
pointClassify
.
getBuildingName
());
newPointClassify
.
setBuildingName
(
dat
.
get
(
"name"
).
toString
());
}
}
}
else
{
newPointClassify
.
setBuildingName
(
pointClassify
.
getBuildingName
());
}
if
(
pointClassify
.
getOriginalId
()!=
null
){
if
(
pointClassify
.
getOriginalId
()!=
null
){
newPointClassify
.
setOriginalId
(
pointClassify
.
getOriginalId
());
newPointClassify
.
setOriginalId
(
pointClassify
.
getOriginalId
());
}
else
{
String
uuid
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
newPointClassify
.
setOriginalId
(
uuid
.
substring
(
0
,
16
));
}
newPointClassify
.
setCategoryCode
(
pointClassify
.
getCategoryCode
());
newPointClassify
.
setCategoryName
(
pointClassify
.
getCategoryName
());
newPointClassify
.
setCode
(
pointClassify
.
getCode
());
iPointService
.
addPointClassifyByPointId
(
newPointClassify
);
}
else
{
}
else
{
String
uuid
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
newPointClassify
.
setId
(
pointClassify
.
getId
());
newPointClassify
.
setOriginalId
(
uuid
.
substring
(
0
,
16
));
}
}
newPointClassify
.
setCategoryCode
(
pointClassify
.
getCategoryCode
());
newPointClassify
.
setCategoryName
(
pointClassify
.
getCategoryName
());
newPointClassify
.
setCode
(
pointClassify
.
getCode
());
iPointService
.
addPointClassifyByPointId
(
newPointClassify
);
List
<
PointInputItemVo
>
customInputList
=
pointClassify
.
getEquipIputDetailData
();
//巡检项
List
<
PointInputItemVo
>
customInputList
=
pointClassify
.
getEquipIputDetailData
();
//巡检项
...
...
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