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
d164866c
Commit
d164866c
authored
Apr 09, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检报告查看API优化
parent
d645040f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
PlanTaskMapper.java
...ejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
+3
-0
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+7
-3
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+17
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
View file @
d164866c
...
@@ -209,6 +209,9 @@ public interface PlanTaskMapper extends BaseMapper {
...
@@ -209,6 +209,9 @@ public interface PlanTaskMapper extends BaseMapper {
Map
<
String
,
Object
>
getDefectEquipInfo
(
@Param
(
value
=
"id"
)
String
id
);
Map
<
String
,
Object
>
getDefectEquipInfo
(
@Param
(
value
=
"id"
)
String
id
);
List
<
Map
<
String
,
String
>>
getDefectEquipInfoByIds
(
@Param
(
value
=
"ids"
)
List
<
String
>
ids
);
List
<
Map
<
String
,
Object
>>
getCheckMissedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckMissedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
...
...
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 @
d164866c
...
@@ -1960,13 +1960,17 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1960,13 +1960,17 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if
(
x
.
getDefectEquipmentIds
().
contains
(
","
)){
if
(
x
.
getDefectEquipmentIds
().
contains
(
","
)){
String
[]
ids
=
x
.
getDefectEquipmentIds
().
split
(
","
);
String
[]
ids
=
x
.
getDefectEquipmentIds
().
split
(
","
);
List
<
String
>
equipIds
=
Arrays
.
asList
(
ids
);
List
<
String
>
equipIds
=
Arrays
.
asList
(
ids
);
if
(
0
<
equipIds
.
size
())
{
List
<
String
>
collect
=
equipIds
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
defectEquipInfoByIds
=
planTaskMapper
.
getDefectEquipInfoByIds
(
collect
);
Map
<
String
,
String
>
equipLocationMap
=
defectEquipInfoByIds
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
get
(
"id"
),
t
->
t
.
get
(
"equipLocation"
)));
if
(
CollectionUtils
.
isNotEmpty
(
equipIds
))
{
for
(
String
s
:
equipIds
)
{
for
(
String
s
:
equipIds
)
{
sb
.
append
(
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
==
null
?
""
:
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
.
get
(
"equipLocation"
)
).
append
(
","
);
sb
.
append
(
!
ObjectUtils
.
isEmpty
(
equipLocationMap
)
?
equipLocationMap
.
getOrDefault
(
s
,
""
)
:
""
).
append
(
","
);
}
}
}
}
}
else
{
}
else
{
sb
.
append
(
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
==
null
?
""
:
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
())
.
get
(
"equipLocation"
));
Map
<
String
,
Object
>
defectEquipInfo
=
planTaskMapper
.
getDefectEquipInfo
(
x
.
getDefectEquipmentIds
());
sb
.
append
(
ObjectUtils
.
isEmpty
(
defectEquipInfo
)
?
""
:
defectEquipInfo
.
getOrDefault
(
"equipLocation"
,
""
));
}
}
}
}
defectMap
.
put
(
"defect_equip_position"
,
sb
==
null
?
""
:
sb
);
defectMap
.
put
(
"defect_equip_position"
,
sb
==
null
?
""
:
sb
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
d164866c
...
@@ -1269,6 +1269,23 @@
...
@@ -1269,6 +1269,23 @@
</where>
</where>
</select>
</select>
<select
id=
"getDefectEquipInfoByIds"
resultType=
"Map"
>
SELECT
es.position AS equipLocation,
es.id as id
FROM
wl_equipment_specific es
<where>
<if
test=
"ids != null"
>
es.id in
<foreach
item=
"id"
collection=
"ids"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
</where>
</select>
<select
id=
"getCheckMissedEquipInfo"
resultType=
"Map"
>
<select
id=
"getCheckMissedEquipInfo"
resultType=
"Map"
>
SELECT
SELECT
cl.`name` AS equipName,
cl.`name` AS equipName,
...
...
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