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
10ada647
Commit
10ada647
authored
Aug 16, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新接口
parent
069d5418
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
dbTemplate_check.xml
...tenance/src/main/resources/db/mapper/dbTemplate_check.xml
+23
-8
No files found.
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
10ada647
...
@@ -1899,9 +1899,9 @@
...
@@ -1899,9 +1899,9 @@
pc.id checkId,
pc.id checkId,
pc.user_id userId,
pc.user_id userId,
pc.is_ok isOk,
pc.is_ok isOk,
p
r
.owner_id ownerId,
p
p
.owner_id ownerId,
date_format(
date_format(
pc.check_time
,
pc.check_time,
'%Y-%m-%d %H:%i:%s'
'%Y-%m-%d %H:%i:%s'
) checkDate,
) checkDate,
pp.id pointId,
pp.id pointId,
...
@@ -1913,7 +1913,6 @@
...
@@ -1913,7 +1913,6 @@
CONCAT(pp.address, pp.building_name) buildingName
CONCAT(pp.address, pp.building_name) buildingName
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_route pr on pr.id = pc.route_id
) a
) a
<include
refid=
"mobile-check-record-where"
/>
<include
refid=
"mobile-check-record-where"
/>
limit #{offset},#{pageSize}
limit #{offset},#{pageSize}
...
@@ -1999,8 +1998,11 @@
...
@@ -1999,8 +1998,11 @@
pc.id checkId,
pc.id checkId,
pc.user_id userId,
pc.user_id userId,
pc.is_ok isOk,
pc.is_ok isOk,
pr.owner_id ownerId,
pp.owner_id ownerId,
pc.check_time checkDate,
date_format(
pc.check_time,
'%Y-%m-%d %H:%i:%s'
) checkDate,
pp.id pointId,
pp.id pointId,
pp.equipment_id equipmentId,
pp.equipment_id equipmentId,
pp.equipment_name equipmentName,
pp.equipment_name equipmentName,
...
@@ -2010,7 +2012,6 @@
...
@@ -2010,7 +2012,6 @@
CONCAT(pp.address, pp.building_name) buildingName
CONCAT(pp.address, pp.building_name) buildingName
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_route pr on pr.id = pc.route_id
) a
) a
<include
refid=
"mobile-check-record-where"
/>
<include
refid=
"mobile-check-record-where"
/>
</select>
</select>
...
@@ -2019,15 +2020,29 @@
...
@@ -2019,15 +2020,29 @@
SELECT
SELECT
pc.id checkId,
pc.id checkId,
pc.is_ok isOk,
pc.is_ok isOk,
pc.create_date maintenanceDate,
date_format(
pc.check_time,
'%Y-%m-%d %H:%i:%s'
) maintenanceDate,
pp.id pointId,
pp.id pointId,
pp.equipment_id equipmentId,
pp.equipment_id equipmentId,
pp.equipment_name equipmentName,
pp.equipment_name equipmentName,
pp.belong_system_id systemId,
pp.belong_system_id systemId,
pp.belong_system_name systemName,
pp.belong_system_name systemName,
CONCAT(pp.address, pp.building_name) address
CONCAT(pp.address, pp.building_name) address,
CONCAT(date_format(
ppl.plan_begin,
'%Y-%m-%d %H:%i:%s'
), '-', date_format(
ppl.plan_end,
'%Y-%m-%d %H:%i:%s'
)) planDate,
ppl.name planName,
ppt.user_name planUser
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_task ppt ON ppt.id = pc.plan_task_id
WHERE
WHERE
pc.id = #{id}
pc.id = #{id}
</select>
</select>
...
...
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