Ver código fonte

更新

master
鲲鹏 4 anos atrás
pai
commit
105d3abb9e
2 arquivos alterados com 6 adições e 1 exclusões
  1. +1
    -1
      src/main/java/com/taauav/app/mapper/InspectAppMapper.xml
  2. +5
    -0
      src/main/java/com/taauav/app/vo/InspectListVo.java

+ 1
- 1
src/main/java/com/taauav/app/mapper/InspectAppMapper.xml Ver arquivo

@@ -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

+ 5
- 0
src/main/java/com/taauav/app/vo/InspectListVo.java Ver arquivo

@@ -20,6 +20,11 @@ public class InspectListVo {
*/
private Integer inspectId;

/**
* 巡检任务状态
*/
private Integer status;

/**
* 巡检河流ID
*/

Carregando…
Cancelar
Salvar