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
96a98bbd
Commit
96a98bbd
authored
Aug 23, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改地图显示隐患信息列表接口
parent
e4cd6844
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
8 deletions
+80
-8
THiddenTroubleController.java
...b/controller/riskManagement/THiddenTroubleController.java
+3
-3
HiddenTroubleVo.java
...ain/java/com/zehong/system/domain/vo/HiddenTroubleVo.java
+39
-1
THiddenTroubleMapper.java
...n/java/com/zehong/system/mapper/THiddenTroubleMapper.java
+8
-0
ITHiddenTroubleService.java
...ava/com/zehong/system/service/ITHiddenTroubleService.java
+8
-0
THiddenTroubleServiceImpl.java
...zehong/system/service/impl/THiddenTroubleServiceImpl.java
+17
-4
THiddenTroubleMapper.xml
...src/main/resources/mapper/system/THiddenTroubleMapper.xml
+5
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/riskManagement/THiddenTroubleController.java
View file @
96a98bbd
...
...
@@ -49,13 +49,13 @@ public class THiddenTroubleController extends BaseController
/**
* 地图初始化隐患
* @param
tHiddenTrouble
* @param
* @return
*/
@GetMapping
(
"/getMapHiddenTroublelist"
)
public
AjaxResult
getMapHiddenTroublelist
(
THiddenTrouble
tHiddenTrouble
)
public
AjaxResult
getMapHiddenTroublelist
()
{
List
<
HiddenTroubleVo
>
list
=
tHiddenTroubleService
.
selectTHiddenTroubleList
(
tHiddenTrouble
);
List
<
THiddenTrouble
>
list
=
tHiddenTroubleService
.
getMapTHiddenTroubleList
(
);
return
AjaxResult
.
success
(
list
);
}
...
...
gassafety-system/src/main/java/com/zehong/system/domain/vo/HiddenTroubleVo.java
View file @
96a98bbd
package
com
.
zehong
.
system
.
domain
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
/**
* 隐患信息对象 t_hidden_trouble
...
...
@@ -34,6 +37,16 @@ public class HiddenTroubleVo extends BaseEntity
@Excel
(
name
=
"工单id"
)
private
String
orderId
;
/** 指定执行人员姓名 */
private
String
appointInspectorName
;
/** 下发时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
allotTime
;
/** 反馈信息列表 */
private
List
<
OrderFeedbackVo
>
feedbackList
;
/** 设备id */
@Excel
(
name
=
"设备id"
)
private
Integer
deviceId
;
...
...
@@ -135,6 +148,31 @@ public class HiddenTroubleVo extends BaseEntity
{
return
orderId
;
}
public
String
getAppointInspectorName
()
{
return
appointInspectorName
;
}
public
void
setAppointInspectorName
(
String
appointInspectorName
)
{
this
.
appointInspectorName
=
appointInspectorName
;
}
public
Date
getAllotTime
()
{
return
allotTime
;
}
public
void
setAllotTime
(
Date
allotTime
)
{
this
.
allotTime
=
allotTime
;
}
public
List
<
OrderFeedbackVo
>
getFeedbackList
()
{
return
feedbackList
;
}
public
void
setFeedbackList
(
List
<
OrderFeedbackVo
>
feedbackList
)
{
this
.
feedbackList
=
feedbackList
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
...
...
gassafety-system/src/main/java/com/zehong/system/mapper/THiddenTroubleMapper.java
View file @
96a98bbd
...
...
@@ -27,6 +27,14 @@ public interface THiddenTroubleMapper
*/
public
List
<
THiddenTrouble
>
selectTHiddenTroubleList
(
THiddenTrouble
tHiddenTrouble
);
/**
* 地图显示隐患信息列表
*
* @param
* @return 隐患信息集合
*/
public
List
<
THiddenTrouble
>
getMapTHiddenTroubleList
();
/**
* 新增隐患信息
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITHiddenTroubleService.java
View file @
96a98bbd
...
...
@@ -28,6 +28,14 @@ public interface ITHiddenTroubleService
*/
public
List
<
HiddenTroubleVo
>
selectTHiddenTroubleList
(
THiddenTrouble
tHiddenTrouble
);
/**
* 地图显示隐患信息列表
*
* @param
* @return 隐患信息集合
*/
public
List
<
THiddenTrouble
>
getMapTHiddenTroubleList
();
/**
* 新增隐患信息
*
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleServiceImpl.java
View file @
96a98bbd
...
...
@@ -8,13 +8,10 @@ import com.zehong.common.utils.DateUtils;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.vo.HiddenTroubleVo
;
import
com.zehong.system.mapper.SysUserMapper
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.mapper.TPipeMapper
;
import
com.zehong.system.mapper.*
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.THiddenTroubleMapper
;
import
com.zehong.system.domain.THiddenTrouble
;
import
com.zehong.system.service.ITHiddenTroubleService
;
...
...
@@ -35,6 +32,10 @@ public class THiddenTroubleServiceImpl implements ITHiddenTroubleService
private
TPipeMapper
tPipeMapper
;
@Autowired
private
SysUserMapper
sysUserMapper
;
@Autowired
private
TWorkOrderMapper
tWorkOrderMapper
;
@Autowired
private
TOrderFeedbackMapper
tOrderFeedbackMapper
;
/**
* 查询隐患信息
...
...
@@ -87,6 +88,18 @@ public class THiddenTroubleServiceImpl implements ITHiddenTroubleService
return
list
;
}
/**
* 地图显示隐患信息列表
*
* @param
* @return 隐患信息集合
*/
@Override
public
List
<
THiddenTrouble
>
getMapTHiddenTroubleList
()
{
return
tHiddenTroubleMapper
.
getMapTHiddenTroubleList
();
}
/**
* 新增隐患信息
*
...
...
gassafety-system/src/main/resources/mapper/system/THiddenTroubleMapper.xml
View file @
96a98bbd
...
...
@@ -48,6 +48,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select
id=
"getMapTHiddenTroubleList"
resultMap=
"THiddenTroubleResult"
>
<include
refid=
"selectTHiddenTroubleVo"
/>
where is_del = '0' and (deal_status is null or deal_status = '3')
</select>
<select
id=
"selectTHiddenTroubleById"
parameterType=
"int"
resultMap=
"THiddenTroubleResult"
>
<include
refid=
"selectTHiddenTroubleVo"
/>
where trouble_id = #{troubleId}
...
...
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