|
|
@@ -13,7 +13,7 @@ |
|
|
|
|
|
|
|
<!-- 获取巡检记录详情 --> |
|
|
|
<select id="getInspectInfo" parameterType="java.lang.Integer" resultType="com.taauav.app.vo.InspectListVo"> |
|
|
|
SELECT a.id as 'inspectId',i.id as 'inspectDriverId',a.inspect_no as 'inspectNo',a.driver_id AS 'driverId',d.`name` AS 'driverName',d.driver_area AS 'driverArea',a.begin_time AS 'beginTime',a.end_time AS 'endTime',u.realname,(SELECT TIMESTAMPDIFF( MINUTE,a.begin_time,NOW())) AS 'timeUse' FROM tauv_inspect_app AS a |
|
|
|
SELECT a.id as 'inspectId',a.`status`,i.id as 'inspectDriverId',a.inspect_no as 'inspectNo',a.driver_id AS 'driverId',d.`name` AS 'driverName',d.driver_area AS 'driverArea',a.begin_time AS 'beginTime',a.end_time AS 'endTime',u.realname,(SELECT TIMESTAMPDIFF( MINUTE,a.begin_time,NOW())) AS 'timeUse' FROM tauv_inspect_app AS a |
|
|
|
INNER JOIN tauv_inspect_driver AS i ON i.inspect_id=a.id |
|
|
|
INNER JOIN tauv_driver AS d ON a.driver_id=d.id |
|
|
|
INNER JOIN user_admin AS u ON a.create_user=u.id |