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
2c8dc34c
Commit
2c8dc34c
authored
Sep 22, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检服务方法
parent
36ede852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
LatentDangerServiceImpl.java
...vision/business/service/impl/LatentDangerServiceImpl.java
+10
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/LatentDangerServiceImpl.java
View file @
2c8dc34c
...
@@ -1636,10 +1636,11 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
...
@@ -1636,10 +1636,11 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
Long
checkId
=
param
.
getLong
(
"checkId"
);
Long
checkId
=
param
.
getLong
(
"checkId"
);
Long
itemId
=
param
.
getLong
(
"itemId"
);
Long
itemId
=
param
.
getLong
(
"itemId"
);
Long
routePointItemId
=
param
.
getLong
(
"routePointItemId"
);
Long
routePointItemId
=
param
.
getLong
(
"routePointItemId"
);
Long
checkInputId
=
param
.
getLong
(
"checkInputId"
);
Integer
checkType
=
null
;
Integer
checkType
=
null
;
Check
check
=
getCheck
(
checkId
);
Check
check
=
getCheck
(
checkId
);
InputCheckDto
inputCheckDto
=
getInputCheckDto
(
check
Id
,
itemId
,
routePointItem
Id
);
InputCheckDto
inputCheckDto
=
getInputCheckDto
(
check
,
itemId
,
routePointItemId
,
checkInput
Id
);
InputItem
inputItem
=
getInputItem
(
itemId
);
InputItem
inputItem
=
getInputItem
(
itemId
);
String
photoUrls
=
getPhotoUrls
(
inputCheckDto
);
String
photoUrls
=
getPhotoUrls
(
inputCheckDto
);
...
@@ -1665,12 +1666,18 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
...
@@ -1665,12 +1666,18 @@ public class LatentDangerServiceImpl implements ILatentDangerService {
return
check
;
return
check
;
}
}
private
InputCheckDto
getInputCheckDto
(
Long
checkId
,
Long
itemId
,
Long
routePointItem
Id
)
{
private
InputCheckDto
getInputCheckDto
(
Check
check
,
Long
itemId
,
Long
routePointItemId
,
Long
checkInput
Id
)
{
if
(
ValidationUtil
.
isEmpty
(
itemId
)
||
ValidationUtil
.
isEmpty
(
routePointItemId
))
{
if
(
ValidationUtil
.
isEmpty
(
itemId
)
||
ValidationUtil
.
isEmpty
(
routePointItemId
))
{
return
null
;
return
null
;
}
}
InputCheckDto
inputCheckDto
=
checkInputMapper
.
getByCheckIdAndItemIdAndRoutePointItemId
(
check
Id
,
InputCheckDto
inputCheckDto
=
checkInputMapper
.
getByCheckIdAndItemIdAndRoutePointItemId
(
check
.
getId
()
,
itemId
,
routePointItemId
,
null
);
itemId
,
routePointItemId
,
null
);
if
(
CheckModeEnum
.
WEB_OUT
.
getCode
().
equals
(
check
.
getCheckMode
()))
{
// 如果是外来检查,这里itemList里面无法区分InputCheckDto...
// 在LatentDangerPatrolItemParam中增加checkInputId字段来区分
inputCheckDto
=
checkInputMapper
.
getByCheckIdAndItemIdAndRoutePointItemId
(
null
,
null
,
null
,
checkInputId
);
}
return
inputCheckDto
;
return
inputCheckDto
;
}
}
...
...
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