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
bb937fbe
Commit
bb937fbe
authored
Aug 16, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新接口
parent
94fc52cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
CheckServiceImpl.java
...s/maintenance/business/service/impl/CheckServiceImpl.java
+8
-1
dbTemplate_check.xml
...tenance/src/main/resources/db/mapper/dbTemplate_check.xml
+8
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/CheckServiceImpl.java
View file @
bb937fbe
...
@@ -1052,7 +1052,14 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1052,7 +1052,14 @@ public class CheckServiceImpl implements ICheckService {
@Override
@Override
public
Map
<
String
,
Object
>
getCheckDetail
(
String
id
)
{
public
Map
<
String
,
Object
>
getCheckDetail
(
String
id
)
{
return
checkMapper
.
getCheckDetail
(
id
);
Map
<
String
,
Object
>
map
=
checkMapper
.
getCheckDetail
(
id
);
if
(
map
.
containsKey
(
"isOk"
))
{
map
.
put
(
"status"
,
CheckStatusEnum
.
getEnum
(
String
.
valueOf
(
map
.
get
(
"isOk"
))).
getName
());
}
if
(
map
.
containsKey
(
"picture"
))
{
map
.
put
(
"picture"
,
fileUrl
+
map
.
get
(
"picture"
));
}
return
map
;
}
}
@Override
@Override
...
...
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
bb937fbe
...
@@ -2019,13 +2019,14 @@
...
@@ -2019,13 +2019,14 @@
<select
id=
"getCheckDetail"
resultType=
"Map"
>
<select
id=
"getCheckDetail"
resultType=
"Map"
>
SELECT
SELECT
pc.id checkId,
pc.id checkId,
pc.is_ok isOk,
pc
i
.is_ok isOk,
date_format(
date_format(
pc.check_time,
pc.check_time,
'%Y-%m-%d %H:%i:%s'
'%Y-%m-%d %H:%i:%s'
) maintenanceDate,
) maintenanceDate,
pp.id pointId,
pp.id pointId,
pp.equipment_id equipmentId,
pp.equipment_id equipmentId,
pp.remark remark,
pp.owner_name ownerName,
pp.owner_name ownerName,
pp.equipment_name equipmentName,
pp.equipment_name equipmentName,
pp.belong_system_id systemId,
pp.belong_system_id systemId,
...
@@ -2041,12 +2042,17 @@
...
@@ -2041,12 +2042,17 @@
ppl.name planName,
ppl.name planName,
pp.plan_type planType,
pp.plan_type planType,
ppt.user_name planUser,
ppt.user_name planUser,
pii.name itemName
pci.input_name itemName,
pii.maintenance_content itemContent,
pcs.photo_data picture,
pcs.point_name pointName,
pcs.shot_type shotType
FROM p_check pc
FROM p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id
LEFT JOIN p_point pp ON pp.id = pc.point_id
LEFT JOIN p_plan ppl ON ppl.id = pc.plan_id
LEFT JOIN p_plan ppl ON ppl.id = pc.plan_id
LEFT JOIN p_check_input pci ON pci.check_id = pc.id
LEFT JOIN p_check_input pci ON pci.check_id = pc.id
LEFT JOIN p_input_item pii ON pii.id = pci.input_id
LEFT JOIN p_input_item pii ON pii.id = pci.input_id
LEFT JOIN p_check_shot pcs ON pcs.check_id = pc.id
LEFT JOIN p_plan_task ppt ON ppt.id = pc.plan_task_id
LEFT JOIN p_plan_task ppt ON ppt.id = pc.plan_task_id
WHERE
WHERE
pc.id = #{id}
pc.id = #{id}
...
...
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