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
45210086
Commit
45210086
authored
May 06, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检bug
parent
37036c8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+12
-6
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+0
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
45210086
...
@@ -1944,15 +1944,21 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1944,15 +1944,21 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
defectMap
.
put
(
"defect_num"
,
x
.
getDefectNum
());
defectMap
.
put
(
"defect_num"
,
x
.
getDefectNum
());
defectMap
.
put
(
"defect_level"
,
DefectLevelEnum
.
getByKey
(
x
.
getDefectLevel
()).
getValue
());
defectMap
.
put
(
"defect_level"
,
DefectLevelEnum
.
getByKey
(
x
.
getDefectLevel
()).
getValue
());
defectMap
.
put
(
"defect_equip_name"
,
x
.
getDefectEquipmentName
());
defectMap
.
put
(
"defect_equip_name"
,
x
.
getDefectEquipmentName
());
String
[]
ids
=
x
.
getDefectEquipmentIds
().
split
(
","
);
List
<
String
>
equipIds
=
Arrays
.
asList
(
ids
);
StringBuffer
sb
=
new
StringBuffer
();
StringBuffer
sb
=
new
StringBuffer
();
if
(
0
<
equipIds
.
size
())
{
if
(!
StringUtils
.
isEmpty
(
x
.
getDefectEquipmentIds
())){
for
(
String
s
:
equipIds
)
{
if
(
x
.
getDefectEquipmentIds
().
contains
(
","
)){
sb
.
append
(
planTaskMapper
.
getDefectEquipInfo
(
s
).
get
(
"equipLocation"
)).
append
(
","
);
String
[]
ids
=
x
.
getDefectEquipmentIds
().
split
(
","
);
List
<
String
>
equipIds
=
Arrays
.
asList
(
ids
);
if
(
0
<
equipIds
.
size
())
{
for
(
String
s
:
equipIds
)
{
sb
.
append
(
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
==
null
?
""
:
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
.
get
(
"equipLocation"
)).
append
(
","
);
}
}
}
else
{
sb
.
append
(
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
==
null
?
""
:
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
.
get
(
"equipLocation"
));
}
}
}
}
defectMap
.
put
(
"defect_equip_position"
,
sb
.
length
()
>
0
?
sb
.
deleteCharAt
(
sb
.
length
()
-
1
).
toString
()
:
""
);
defectMap
.
put
(
"defect_equip_position"
,
sb
==
null
?
""
:
sb
);
defectMap
.
put
(
"defect_equip_describe"
,
x
.
getDefectDescribe
());
defectMap
.
put
(
"defect_equip_describe"
,
x
.
getDefectDescribe
());
defectMap
.
put
(
"defect_report_time"
,
sdf
.
format
(
x
.
getAddTime
()));
defectMap
.
put
(
"defect_report_time"
,
sdf
.
format
(
x
.
getAddTime
()));
defectMap
.
put
(
"defect_discovery_name"
,
x
.
getDefectDiscover
());
defectMap
.
put
(
"defect_discovery_name"
,
x
.
getDefectDiscover
());
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
45210086
...
@@ -1172,8 +1172,6 @@
...
@@ -1172,8 +1172,6 @@
<if
test=
"param.routeId != null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.routeId != null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.bizOrgCode != null"
>
and pp.biz_org_code like concat('%',#{param.bizOrgCode},'%')
</if>
<if
test=
"param.bizOrgCode != null"
>
and pp.biz_org_code like concat('%',#{param.bizOrgCode},'%')
</if>
</where>
</where>
ORDER BY
ppk.begin_time DESC
</select>
</select>
<select
id=
"planTaskPage"
resultType=
"java.util.HashMap"
>
<select
id=
"planTaskPage"
resultType=
"java.util.HashMap"
>
...
...
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