Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
9f704243
Commit
9f704243
authored
Jul 26, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单详情显示地址
parent
fb90504f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
3 deletions
+36
-3
THiddenTrouble.java
...rc/main/java/com/zehong/system/domain/THiddenTrouble.java
+15
-1
WorkOrderVo.java
...rc/main/java/com/zehong/system/domain/vo/WorkOrderVo.java
+12
-0
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+3
-0
THiddenTroubleMapper.xml
...src/main/resources/mapper/system/THiddenTroubleMapper.xml
+5
-1
TInspectionDataMapper.xml
...rc/main/resources/mapper/system/TInspectionDataMapper.xml
+1
-1
No files found.
gassafety-system/src/main/java/com/zehong/system/domain/THiddenTrouble.java
View file @
9f704243
...
@@ -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
())
...
...
gassafety-system/src/main/java/com/zehong/system/domain/vo/WorkOrderVo.java
View file @
9f704243
...
@@ -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
())
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
9f704243
...
@@ -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
());
}
}
}
}
...
...
gassafety-system/src/main/resources/mapper/system/THiddenTroubleMapper.xml
View file @
9f704243
...
@@ -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>
...
...
gassafety-system/src/main/resources/mapper/system/TInspectionDataMapper.xml
View file @
9f704243
...
@@ -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"
>
...
...
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