Commit 10ada647 authored by KeYong's avatar KeYong

更新接口

parent 069d5418
...@@ -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,
pr.owner_id ownerId, pp.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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment