Commit 9f704243 authored by 王晓倩's avatar 王晓倩

工单详情显示地址

parent fb90504f
...@@ -30,6 +30,10 @@ public class THiddenTrouble extends BaseEntity ...@@ -30,6 +30,10 @@ public class THiddenTrouble extends BaseEntity
@Excel(name = "工单id") @Excel(name = "工单id")
private String orderId; private String orderId;
/** 地址 */
@Excel(name = "地址")
private String address;
/** 经度 */ /** 经度 */
@Excel(name = "经度") @Excel(name = "经度")
private BigDecimal longitude; private BigDecimal longitude;
...@@ -86,7 +90,16 @@ public class THiddenTrouble extends BaseEntity ...@@ -86,7 +90,16 @@ public class THiddenTrouble extends BaseEntity
{ {
return orderId; return orderId;
} }
public void setLongitude(BigDecimal longitude)
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public void setLongitude(BigDecimal longitude)
{ {
this.longitude = longitude; this.longitude = longitude;
} }
...@@ -139,6 +152,7 @@ public class THiddenTrouble extends BaseEntity ...@@ -139,6 +152,7 @@ public class THiddenTrouble extends BaseEntity
.append("deviceCode", getDeviceCode()) .append("deviceCode", getDeviceCode())
.append("deviceType", getDeviceType()) .append("deviceType", getDeviceType())
.append("orderId", getOrderId()) .append("orderId", getOrderId())
.append("address", getAddress())
.append("longitude", getLongitude()) .append("longitude", getLongitude())
.append("latitude", getLatitude()) .append("latitude", getLatitude())
.append("coordinates", getCoordinates()) .append("coordinates", getCoordinates())
......
...@@ -56,6 +56,9 @@ public class WorkOrderVo extends BaseEntity ...@@ -56,6 +56,9 @@ public class WorkOrderVo extends BaseEntity
/** 坐标 */ /** 坐标 */
private String coordinates; private String coordinates;
/** 地址 */
private String address;
/** 工单状态(0未接收,1已接收,2进行中,3已反馈,4已归档) */ /** 工单状态(0未接收,1已接收,2进行中,3已反馈,4已归档) */
private String orderStatus; private String orderStatus;
...@@ -193,6 +196,14 @@ public class WorkOrderVo extends BaseEntity ...@@ -193,6 +196,14 @@ public class WorkOrderVo extends BaseEntity
this.coordinates = coordinates; this.coordinates = coordinates;
} }
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public void setOrderStatus(String orderStatus) public void setOrderStatus(String orderStatus)
{ {
this.orderStatus = orderStatus; this.orderStatus = orderStatus;
...@@ -302,6 +313,7 @@ public class WorkOrderVo extends BaseEntity ...@@ -302,6 +313,7 @@ public class WorkOrderVo extends BaseEntity
.append("longitude", getLongitude()) .append("longitude", getLongitude())
.append("latitude", getLatitude()) .append("latitude", getLatitude())
.append("coordinates", getCoordinates()) .append("coordinates", getCoordinates())
.append("address", getAddress())
.append("orderStatus", getOrderStatus()) .append("orderStatus", getOrderStatus())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())
.append("appointInspector", getAppointInspector()) .append("appointInspector", getAppointInspector())
......
...@@ -106,6 +106,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService ...@@ -106,6 +106,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
workOrderVo.setLatitude(trouble.getLatitude() != null ? trouble.getLatitude() : null); workOrderVo.setLatitude(trouble.getLatitude() != null ? trouble.getLatitude() : null);
workOrderVo.setCoordinates(trouble.getCoordinates() != null ? trouble.getCoordinates() : null); workOrderVo.setCoordinates(trouble.getCoordinates() != null ? trouble.getCoordinates() : null);
workOrderVo.setDeviceType(trouble.getDeviceType()); workOrderVo.setDeviceType(trouble.getDeviceType());
workOrderVo.setAddress(trouble.getAddress());
} else { } else {
...@@ -118,11 +119,13 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService ...@@ -118,11 +119,13 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
TPipe pipe = tPipeMapper.selectTPipeByCode(deviceCode); TPipe pipe = tPipeMapper.selectTPipeByCode(deviceCode);
workOrderVo.setCoordinates(pipe.getCoordinates()); workOrderVo.setCoordinates(pipe.getCoordinates());
workOrderVo.setDeviceType("0"); workOrderVo.setDeviceType("0");
workOrderVo.setAddress(pipe.getPipeAddr());
} else { } else {
TDeviceInfo device = tDeviceInfoMapper.selectTDeviceInfoByCode(deviceCode); TDeviceInfo device = tDeviceInfoMapper.selectTDeviceInfoByCode(deviceCode);
workOrderVo.setLongitude(device.getLongitude()); workOrderVo.setLongitude(device.getLongitude());
workOrderVo.setLatitude(device.getLatitude()); workOrderVo.setLatitude(device.getLatitude());
workOrderVo.setDeviceType(device.getDeviceType()); workOrderVo.setDeviceType(device.getDeviceType());
workOrderVo.setAddress(device.getDeviceAddr());
} }
} }
......
...@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="deviceCode" column="device_code" /> <result property="deviceCode" column="device_code" />
<result property="deviceType" column="device_type" /> <result property="deviceType" column="device_type" />
<result property="orderId" column="order_id" /> <result property="orderId" column="order_id" />
<result property="address" column="address" />
<result property="longitude" column="longitude" /> <result property="longitude" column="longitude" />
<result property="latitude" column="latitude" /> <result property="latitude" column="latitude" />
<result property="coordinates" column="coordinates" /> <result property="coordinates" column="coordinates" />
...@@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectTHiddenTroubleVo"> <sql id="selectTHiddenTroubleVo">
select trouble_id, device_code, device_type, order_id, longitude, latitude, coordinates, deal_status, update_time, create_time, remarks from t_hidden_trouble select trouble_id, device_code, device_type, order_id, address, longitude, latitude, coordinates, deal_status, update_time, create_time, remarks from t_hidden_trouble
</sql> </sql>
<select id="selectTHiddenTroubleList" parameterType="THiddenTrouble" resultMap="THiddenTroubleResult"> <select id="selectTHiddenTroubleList" parameterType="THiddenTrouble" resultMap="THiddenTroubleResult">
...@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deviceCode != null">device_code,</if> <if test="deviceCode != null">device_code,</if>
<if test="deviceType != null">device_type,</if> <if test="deviceType != null">device_type,</if>
<if test="orderId != null">order_id,</if> <if test="orderId != null">order_id,</if>
<if test="address != null">address,</if>
<if test="longitude != null">longitude,</if> <if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if> <if test="latitude != null">latitude,</if>
<if test="coordinates != null">coordinates,</if> <if test="coordinates != null">coordinates,</if>
...@@ -59,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -59,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deviceCode != null">#{deviceCode},</if> <if test="deviceCode != null">#{deviceCode},</if>
<if test="deviceType != null">#{deviceType},</if> <if test="deviceType != null">#{deviceType},</if>
<if test="orderId != null">#{orderId},</if> <if test="orderId != null">#{orderId},</if>
<if test="address != null">#{address},</if>
<if test="longitude != null">#{longitude},</if> <if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if> <if test="latitude != null">#{latitude},</if>
<if test="coordinates != null">#{coordinates},</if> <if test="coordinates != null">#{coordinates},</if>
...@@ -75,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -75,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deviceCode != null">device_code = #{deviceCode},</if> <if test="deviceCode != null">device_code = #{deviceCode},</if>
<if test="deviceType != null">device_code = #{deviceType},</if> <if test="deviceType != null">device_code = #{deviceType},</if>
<if test="orderId != null">order_id = #{orderId},</if> <if test="orderId != null">order_id = #{orderId},</if>
<if test="address != null">address = #{address},</if>
<if test="longitude != null">longitude = #{longitude},</if> <if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if> <if test="latitude != null">latitude = #{latitude},</if>
<if test="coordinates != null">coordinates = #{coordinates},</if> <if test="coordinates != null">coordinates = #{coordinates},</if>
......
...@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectFinishTInspectionData" parameterType="int" resultType="int"> <select id="selectFinishTInspectionData" parameterType="int" resultType="int">
select count(*) from t_inspection_data select count(*) from t_inspection_data
where plan_id = #{planId} where plan_id = #{planId}
and deal_status != null and deal_status is not null
</select> </select>
<select id="selectTInspectionDataById" parameterType="int" resultMap="TInspectionDataResult"> <select id="selectTInspectionDataById" parameterType="int" resultMap="TInspectionDataResult">
......
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