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
90f16312
Commit
90f16312
authored
Jul 21, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检计划、巡检记录、报警信息、隐患信息
parent
9e0b923c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
2944 additions
and
61 deletions
+2944
-61
TDeviceAlarmController.java
...web/controller/dataMonitoring/TDeviceAlarmController.java
+103
-0
TInspectionPlanController.java
...ontroller/deviceInspection/TInspectionPlanController.java
+103
-0
THiddenTroubleController.java
...b/controller/riskManagement/THiddenTroubleController.java
+103
-0
TDeviceAlarm.java
.../src/main/java/com/zehong/system/domain/TDeviceAlarm.java
+156
-0
THiddenTrouble.java
...rc/main/java/com/zehong/system/domain/THiddenTrouble.java
+124
-0
TInspectionData.java
...c/main/java/com/zehong/system/domain/TInspectionData.java
+26
-42
TInspectionPlan.java
...c/main/java/com/zehong/system/domain/TInspectionPlan.java
+127
-0
TDeviceAlarmMapper.java
...ain/java/com/zehong/system/mapper/TDeviceAlarmMapper.java
+61
-0
THiddenTroubleMapper.java
...n/java/com/zehong/system/mapper/THiddenTroubleMapper.java
+61
-0
TInspectionDataMapper.java
.../java/com/zehong/system/mapper/TInspectionDataMapper.java
+1
-1
TInspectionPlanMapper.java
.../java/com/zehong/system/mapper/TInspectionPlanMapper.java
+61
-0
ITDeviceAlarmService.java
.../java/com/zehong/system/service/ITDeviceAlarmService.java
+61
-0
ITHiddenTroubleService.java
...ava/com/zehong/system/service/ITHiddenTroubleService.java
+61
-0
ITInspectionDataService.java
...va/com/zehong/system/service/ITInspectionDataService.java
+1
-1
ITInspectionPlanService.java
...va/com/zehong/system/service/ITInspectionPlanService.java
+61
-0
TDeviceAlarmServiceImpl.java
...m/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
+96
-0
THiddenTroubleServiceImpl.java
...zehong/system/service/impl/THiddenTroubleServiceImpl.java
+96
-0
TInspectionDataServiceImpl.java
...ehong/system/service/impl/TInspectionDataServiceImpl.java
+2
-1
TInspectionPlanServiceImpl.java
...ehong/system/service/impl/TInspectionPlanServiceImpl.java
+96
-0
TOrderFeedbackServiceImpl.java
...zehong/system/service/impl/TOrderFeedbackServiceImpl.java
+7
-0
TDeviceAlarmMapper.xml
...m/src/main/resources/mapper/system/TDeviceAlarmMapper.xml
+99
-0
THiddenTroubleMapper.xml
...src/main/resources/mapper/system/THiddenTroubleMapper.xml
+89
-0
TInspectionDataMapper.xml
...rc/main/resources/mapper/system/TInspectionDataMapper.xml
+20
-16
TInspectionPlanMapper.xml
...rc/main/resources/mapper/system/TInspectionPlanMapper.xml
+89
-0
deviceAlarm.js
gassafety-web/src/api/dataMonitoring/deviceAlarm.js
+53
-0
inspectionPlan.js
gassafety-web/src/api/deviceInspection/inspectionPlan.js
+53
-0
hiddenTrouble.js
gassafety-web/src/api/riskManagement/hiddenTrouble.js
+53
-0
index.vue
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
+387
-0
index.vue
...y-web/src/views/deviceInspection/inspectionPlan/index.vue
+355
-0
index.vue
...fety-web/src/views/riskManagement/hiddenTrouble/index.vue
+339
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/dataMonitoring/TDeviceAlarmController.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
web
.
controller
.
dataMonitoring
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
com.zehong.system.service.ITDeviceAlarmService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 报警信息Controller
*
* @author zehong
* @date 2021-07-21
*/
@RestController
@RequestMapping
(
"/dataMonitoring/deviceAlarm"
)
public
class
TDeviceAlarmController
extends
BaseController
{
@Autowired
private
ITDeviceAlarmService
tDeviceAlarmService
;
/**
* 查询报警信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TDeviceAlarm
tDeviceAlarm
)
{
startPage
();
List
<
TDeviceAlarm
>
list
=
tDeviceAlarmService
.
selectTDeviceAlarmList
(
tDeviceAlarm
);
return
getDataTable
(
list
);
}
/**
* 导出报警信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:export')"
)
@Log
(
title
=
"报警信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TDeviceAlarm
tDeviceAlarm
)
{
List
<
TDeviceAlarm
>
list
=
tDeviceAlarmService
.
selectTDeviceAlarmList
(
tDeviceAlarm
);
ExcelUtil
<
TDeviceAlarm
>
util
=
new
ExcelUtil
<
TDeviceAlarm
>(
TDeviceAlarm
.
class
);
return
util
.
exportExcel
(
list
,
"报警信息数据"
);
}
/**
* 获取报警信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:query')"
)
@GetMapping
(
value
=
"/{alarmId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"alarmId"
)
Long
alarmId
)
{
return
AjaxResult
.
success
(
tDeviceAlarmService
.
selectTDeviceAlarmById
(
alarmId
));
}
/**
* 新增报警信息
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:add')"
)
@Log
(
title
=
"报警信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TDeviceAlarm
tDeviceAlarm
)
{
return
toAjax
(
tDeviceAlarmService
.
insertTDeviceAlarm
(
tDeviceAlarm
));
}
/**
* 修改报警信息
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:edit')"
)
@Log
(
title
=
"报警信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TDeviceAlarm
tDeviceAlarm
)
{
return
toAjax
(
tDeviceAlarmService
.
updateTDeviceAlarm
(
tDeviceAlarm
));
}
/**
* 删除报警信息
*/
@PreAuthorize
(
"@ss.hasPermi('dataMonitoring:deviceAlarm:remove')"
)
@Log
(
title
=
"报警信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{alarmIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
alarmIds
)
{
return
toAjax
(
tDeviceAlarmService
.
deleteTDeviceAlarmByIds
(
alarmIds
));
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/deviceInspection/TInspectionPlanController.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
web
.
controller
.
deviceInspection
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.service.ITInspectionPlanService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 巡检计划Controller
*
* @author zehong
* @date 2021-07-21
*/
@RestController
@RequestMapping
(
"/deviceInspection/inspectionPlan"
)
public
class
TInspectionPlanController
extends
BaseController
{
@Autowired
private
ITInspectionPlanService
tInspectionPlanService
;
/**
* 查询巡检计划列表
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInspectionPlan
tInspectionPlan
)
{
startPage
();
List
<
TInspectionPlan
>
list
=
tInspectionPlanService
.
selectTInspectionPlanList
(
tInspectionPlan
);
return
getDataTable
(
list
);
}
/**
* 导出巡检计划列表
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:export')"
)
@Log
(
title
=
"巡检计划"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInspectionPlan
tInspectionPlan
)
{
List
<
TInspectionPlan
>
list
=
tInspectionPlanService
.
selectTInspectionPlanList
(
tInspectionPlan
);
ExcelUtil
<
TInspectionPlan
>
util
=
new
ExcelUtil
<
TInspectionPlan
>(
TInspectionPlan
.
class
);
return
util
.
exportExcel
(
list
,
"巡检计划数据"
);
}
/**
* 获取巡检计划详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:query')"
)
@GetMapping
(
value
=
"/{planId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"planId"
)
Long
planId
)
{
return
AjaxResult
.
success
(
tInspectionPlanService
.
selectTInspectionPlanById
(
planId
));
}
/**
* 新增巡检计划
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:add')"
)
@Log
(
title
=
"巡检计划"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInspectionPlan
tInspectionPlan
)
{
return
toAjax
(
tInspectionPlanService
.
insertTInspectionPlan
(
tInspectionPlan
));
}
/**
* 修改巡检计划
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:edit')"
)
@Log
(
title
=
"巡检计划"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInspectionPlan
tInspectionPlan
)
{
return
toAjax
(
tInspectionPlanService
.
updateTInspectionPlan
(
tInspectionPlan
));
}
/**
* 删除巡检计划
*/
@PreAuthorize
(
"@ss.hasPermi('deviceInspection:inspectionPlan:remove')"
)
@Log
(
title
=
"巡检计划"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{planIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
planIds
)
{
return
toAjax
(
tInspectionPlanService
.
deleteTInspectionPlanByIds
(
planIds
));
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/riskManagement/THiddenTroubleController.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
web
.
controller
.
riskManagement
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.THiddenTrouble
;
import
com.zehong.system.service.ITHiddenTroubleService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 隐患信息Controller
*
* @author zehong
* @date 2021-07-21
*/
@RestController
@RequestMapping
(
"/riskManagement/hiddenTrouble"
)
public
class
THiddenTroubleController
extends
BaseController
{
@Autowired
private
ITHiddenTroubleService
tHiddenTroubleService
;
/**
* 查询隐患信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
THiddenTrouble
tHiddenTrouble
)
{
startPage
();
List
<
THiddenTrouble
>
list
=
tHiddenTroubleService
.
selectTHiddenTroubleList
(
tHiddenTrouble
);
return
getDataTable
(
list
);
}
/**
* 导出隐患信息列表
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:export')"
)
@Log
(
title
=
"隐患信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
THiddenTrouble
tHiddenTrouble
)
{
List
<
THiddenTrouble
>
list
=
tHiddenTroubleService
.
selectTHiddenTroubleList
(
tHiddenTrouble
);
ExcelUtil
<
THiddenTrouble
>
util
=
new
ExcelUtil
<
THiddenTrouble
>(
THiddenTrouble
.
class
);
return
util
.
exportExcel
(
list
,
"隐患信息数据"
);
}
/**
* 获取隐患信息详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:query')"
)
@GetMapping
(
value
=
"/{troubleId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"troubleId"
)
Long
troubleId
)
{
return
AjaxResult
.
success
(
tHiddenTroubleService
.
selectTHiddenTroubleById
(
troubleId
));
}
/**
* 新增隐患信息
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:add')"
)
@Log
(
title
=
"隐患信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
THiddenTrouble
tHiddenTrouble
)
{
return
toAjax
(
tHiddenTroubleService
.
insertTHiddenTrouble
(
tHiddenTrouble
));
}
/**
* 修改隐患信息
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:edit')"
)
@Log
(
title
=
"隐患信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
THiddenTrouble
tHiddenTrouble
)
{
return
toAjax
(
tHiddenTroubleService
.
updateTHiddenTrouble
(
tHiddenTrouble
));
}
/**
* 删除隐患信息
*/
@PreAuthorize
(
"@ss.hasPermi('riskManagement:hiddenTrouble:remove')"
)
@Log
(
title
=
"隐患信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{troubleIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
troubleIds
)
{
return
toAjax
(
tHiddenTroubleService
.
deleteTHiddenTroubleByIds
(
troubleIds
));
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TDeviceAlarm.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 报警信息对象 t_device_alarm
*
* @author zehong
* @date 2021-07-21
*/
public
class
TDeviceAlarm
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
alarmId
;
/** 设备id */
@Excel
(
name
=
"设备id"
)
private
Long
deviceId
;
/** 工单id */
@Excel
(
name
=
"工单id"
)
private
String
orderId
;
/** 报警类型 */
@Excel
(
name
=
"报警类型"
)
private
String
alarmType
;
/** 报警值(报警信息) */
@Excel
(
name
=
"报警值"
,
readConverterExp
=
"报警信息"
)
private
String
alarmValue
;
/** 报警开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"报警开始时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
startTime
;
/** 报警结束时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"报警结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
endTime
;
/**
处理状态(1不需处理,2已处理完成,3未处理完成) */
@Excel
(
name
=
"处理状态"
,
readConverterExp
=
"1不需处理,2已处理完成,3未处理完成"
)
private
String
dealStatus
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setAlarmId
(
Long
alarmId
)
{
this
.
alarmId
=
alarmId
;
}
public
Long
getAlarmId
()
{
return
alarmId
;
}
public
void
setDeviceId
(
Long
deviceId
)
{
this
.
deviceId
=
deviceId
;
}
public
Long
getDeviceId
()
{
return
deviceId
;
}
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setAlarmType
(
String
alarmType
)
{
this
.
alarmType
=
alarmType
;
}
public
String
getAlarmType
()
{
return
alarmType
;
}
public
void
setAlarmValue
(
String
alarmValue
)
{
this
.
alarmValue
=
alarmValue
;
}
public
String
getAlarmValue
()
{
return
alarmValue
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setDealStatus
(
String
dealStatus
)
{
this
.
dealStatus
=
dealStatus
;
}
public
String
getDealStatus
()
{
return
dealStatus
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"alarmId"
,
getAlarmId
())
.
append
(
"deviceId"
,
getDeviceId
())
.
append
(
"orderId"
,
getOrderId
())
.
append
(
"alarmType"
,
getAlarmType
())
.
append
(
"alarmValue"
,
getAlarmValue
())
.
append
(
"startTime"
,
getStartTime
())
.
append
(
"endTime"
,
getEndTime
())
.
append
(
"dealStatus"
,
getDealStatus
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/domain/THiddenTrouble.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 隐患信息对象 t_hidden_trouble
*
* @author zehong
* @date 2021-07-21
*/
public
class
THiddenTrouble
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 隐患信息id */
private
Long
troubleId
;
/** 设备id */
@Excel
(
name
=
"设备id"
)
private
Long
deviceId
;
/** 工单id */
@Excel
(
name
=
"工单id"
)
private
String
orderId
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 处理状态(1不需处理,2已处理完成,3未处理完成) */
@Excel
(
name
=
"处理状态"
,
readConverterExp
=
"1=不需处理,2已处理完成,3未处理完成"
)
private
String
dealStatus
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setTroubleId
(
Long
troubleId
)
{
this
.
troubleId
=
troubleId
;
}
public
Long
getTroubleId
()
{
return
troubleId
;
}
public
void
setDeviceId
(
Long
deviceId
)
{
this
.
deviceId
=
deviceId
;
}
public
Long
getDeviceId
()
{
return
deviceId
;
}
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setDealStatus
(
String
dealStatus
)
{
this
.
dealStatus
=
dealStatus
;
}
public
String
getDealStatus
()
{
return
dealStatus
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"troubleId"
,
getTroubleId
())
.
append
(
"deviceId"
,
getDeviceId
())
.
append
(
"orderId"
,
getOrderId
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"dealStatus"
,
getDealStatus
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/domain/TInspectionData.java
View file @
90f16312
package
com
.
zehong
.
system
.
domain
;
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.annotation.Excel
;
...
@@ -13,7 +9,7 @@ import com.zehong.common.core.domain.BaseEntity;
...
@@ -13,7 +9,7 @@ import com.zehong.common.core.domain.BaseEntity;
* 巡检记录对象 t_inspection_data
* 巡检记录对象 t_inspection_data
*
*
* @author zehong
* @author zehong
* @date 2021-07-
09
* @date 2021-07-
21
*/
*/
public
class
TInspectionData
extends
BaseEntity
public
class
TInspectionData
extends
BaseEntity
{
{
...
@@ -22,22 +18,17 @@ public class TInspectionData extends BaseEntity
...
@@ -22,22 +18,17 @@ public class TInspectionData extends BaseEntity
/** 巡检记录id */
/** 巡检记录id */
private
Long
dataId
;
private
Long
dataId
;
/** 巡检员id */
/** 巡检计划id */
@Excel
(
name
=
"巡检员id"
)
@Excel
(
name
=
"巡检计划id"
)
private
Long
inspectorId
;
private
Long
planId
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/**
纬度
*/
/**
设备id
*/
@Excel
(
name
=
"
纬度
"
)
@Excel
(
name
=
"
设备id
"
)
private
BigDecimal
latitude
;
private
Long
deviceId
;
/** 创建时间 */
/** 处理状态(1不需处理,2已处理完成,3未处理完成) */
@JsonFormat
(
pattern
=
"yyyy-MM-dd hh:mm:ss"
)
@Excel
(
name
=
"处理状态"
,
readConverterExp
=
"1=不需处理,2已处理完成,3未处理完成"
)
@Excel
(
name
=
"创建时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd hh:mm:ss"
)
private
String
dealStatus
;
private
Date
createTime
;
/** 备注 */
/** 备注 */
@Excel
(
name
=
"备注"
)
@Excel
(
name
=
"备注"
)
...
@@ -52,32 +43,32 @@ public class TInspectionData extends BaseEntity
...
@@ -52,32 +43,32 @@ public class TInspectionData extends BaseEntity
{
{
return
dataId
;
return
dataId
;
}
}
public
void
set
InspectorId
(
Long
inspector
Id
)
public
void
set
PlanId
(
Long
plan
Id
)
{
{
this
.
inspectorId
=
inspector
Id
;
this
.
planId
=
plan
Id
;
}
}
public
Long
get
Inspector
Id
()
public
Long
get
Plan
Id
()
{
{
return
inspector
Id
;
return
plan
Id
;
}
}
public
void
set
Longitude
(
BigDecimal
longitude
)
public
void
set
DeviceId
(
Long
deviceId
)
{
{
this
.
longitude
=
longitude
;
this
.
deviceId
=
deviceId
;
}
}
public
BigDecimal
getLongitude
()
public
Long
getDeviceId
()
{
{
return
longitude
;
return
deviceId
;
}
}
public
void
set
Latitude
(
BigDecimal
latitude
)
public
void
set
DealStatus
(
String
dealStatus
)
{
{
this
.
latitude
=
latitude
;
this
.
dealStatus
=
dealStatus
;
}
}
public
BigDecimal
getLatitude
()
public
String
getDealStatus
()
{
{
return
latitude
;
return
dealStatus
;
}
}
public
void
setRemarks
(
String
remarks
)
public
void
setRemarks
(
String
remarks
)
{
{
...
@@ -89,21 +80,14 @@ public class TInspectionData extends BaseEntity
...
@@ -89,21 +80,14 @@ public class TInspectionData extends BaseEntity
return
remarks
;
return
remarks
;
}
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"dataId"
,
getDataId
())
.
append
(
"dataId"
,
getDataId
())
.
append
(
"inspectorId"
,
getInspectorId
())
.
append
(
"planId"
,
getPlanId
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"deviceId"
,
getDeviceId
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"dealStatus"
,
getDealStatus
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
.
toString
();
...
...
gassafety-system/src/main/java/com/zehong/system/domain/TInspectionPlan.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 巡检计划对象 t_inspection_plan
*
* @author zehong
* @date 2021-07-21
*/
public
class
TInspectionPlan
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 巡检计划id */
private
Long
planId
;
/** 巡检计划名称 */
@Excel
(
name
=
"巡检计划名称"
)
private
String
planName
;
/** 工单id */
@Excel
(
name
=
"工单id"
)
private
String
orderId
;
/** 开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"开始时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
startTime
;
/** 结束时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
endTime
;
/** 状态 */
@Excel
(
name
=
"状态"
)
private
String
planStatus
;
/** 计划描述 */
@Excel
(
name
=
"计划描述"
)
private
String
remarks
;
public
void
setPlanId
(
Long
planId
)
{
this
.
planId
=
planId
;
}
public
Long
getPlanId
()
{
return
planId
;
}
public
void
setPlanName
(
String
planName
)
{
this
.
planName
=
planName
;
}
public
String
getPlanName
()
{
return
planName
;
}
public
void
setOrderId
(
String
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderId
()
{
return
orderId
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setPlanStatus
(
String
planStatus
)
{
this
.
planStatus
=
planStatus
;
}
public
String
getPlanStatus
()
{
return
planStatus
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"planId"
,
getPlanId
())
.
append
(
"planName"
,
getPlanName
())
.
append
(
"orderId"
,
getOrderId
())
.
append
(
"startTime"
,
getStartTime
())
.
append
(
"endTime"
,
getEndTime
())
.
append
(
"planStatus"
,
getPlanStatus
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/mapper/TDeviceAlarmMapper.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TDeviceAlarm
;
/**
* 报警信息Mapper接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
TDeviceAlarmMapper
{
/**
* 查询报警信息
*
* @param alarmId 报警信息ID
* @return 报警信息
*/
public
TDeviceAlarm
selectTDeviceAlarmById
(
Long
alarmId
);
/**
* 查询报警信息列表
*
* @param tDeviceAlarm 报警信息
* @return 报警信息集合
*/
public
List
<
TDeviceAlarm
>
selectTDeviceAlarmList
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 新增报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
public
int
insertTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 修改报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
public
int
updateTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 删除报警信息
*
* @param alarmId 报警信息ID
* @return 结果
*/
public
int
deleteTDeviceAlarmById
(
Long
alarmId
);
/**
* 批量删除报警信息
*
* @param alarmIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTDeviceAlarmByIds
(
Long
[]
alarmIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/THiddenTroubleMapper.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.THiddenTrouble
;
/**
* 隐患信息Mapper接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
THiddenTroubleMapper
{
/**
* 查询隐患信息
*
* @param troubleId 隐患信息ID
* @return 隐患信息
*/
public
THiddenTrouble
selectTHiddenTroubleById
(
Long
troubleId
);
/**
* 查询隐患信息列表
*
* @param tHiddenTrouble 隐患信息
* @return 隐患信息集合
*/
public
List
<
THiddenTrouble
>
selectTHiddenTroubleList
(
THiddenTrouble
tHiddenTrouble
);
/**
* 新增隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
public
int
insertTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
);
/**
* 修改隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
public
int
updateTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
);
/**
* 删除隐患信息
*
* @param troubleId 隐患信息ID
* @return 结果
*/
public
int
deleteTHiddenTroubleById
(
Long
troubleId
);
/**
* 批量删除隐患信息
*
* @param troubleIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTHiddenTroubleByIds
(
Long
[]
troubleIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TInspectionDataMapper.java
View file @
90f16312
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TInspectionData;
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TInspectionData;
* 巡检记录Mapper接口
* 巡检记录Mapper接口
*
*
* @author zehong
* @author zehong
* @date 2021-07-
09
* @date 2021-07-
21
*/
*/
public
interface
TInspectionDataMapper
public
interface
TInspectionDataMapper
{
{
...
...
gassafety-system/src/main/java/com/zehong/system/mapper/TInspectionPlanMapper.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInspectionPlan
;
/**
* 巡检计划Mapper接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
TInspectionPlanMapper
{
/**
* 查询巡检计划
*
* @param planId 巡检计划ID
* @return 巡检计划
*/
public
TInspectionPlan
selectTInspectionPlanById
(
Long
planId
);
/**
* 查询巡检计划列表
*
* @param tInspectionPlan 巡检计划
* @return 巡检计划集合
*/
public
List
<
TInspectionPlan
>
selectTInspectionPlanList
(
TInspectionPlan
tInspectionPlan
);
/**
* 新增巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
public
int
insertTInspectionPlan
(
TInspectionPlan
tInspectionPlan
);
/**
* 修改巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
public
int
updateTInspectionPlan
(
TInspectionPlan
tInspectionPlan
);
/**
* 删除巡检计划
*
* @param planId 巡检计划ID
* @return 结果
*/
public
int
deleteTInspectionPlanById
(
Long
planId
);
/**
* 批量删除巡检计划
*
* @param planIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInspectionPlanByIds
(
Long
[]
planIds
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITDeviceAlarmService.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TDeviceAlarm
;
/**
* 报警信息Service接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
ITDeviceAlarmService
{
/**
* 查询报警信息
*
* @param alarmId 报警信息ID
* @return 报警信息
*/
public
TDeviceAlarm
selectTDeviceAlarmById
(
Long
alarmId
);
/**
* 查询报警信息列表
*
* @param tDeviceAlarm 报警信息
* @return 报警信息集合
*/
public
List
<
TDeviceAlarm
>
selectTDeviceAlarmList
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 新增报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
public
int
insertTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 修改报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
public
int
updateTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
);
/**
* 批量删除报警信息
*
* @param alarmIds 需要删除的报警信息ID
* @return 结果
*/
public
int
deleteTDeviceAlarmByIds
(
Long
[]
alarmIds
);
/**
* 删除报警信息信息
*
* @param alarmId 报警信息ID
* @return 结果
*/
public
int
deleteTDeviceAlarmById
(
Long
alarmId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITHiddenTroubleService.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.THiddenTrouble
;
/**
* 隐患信息Service接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
ITHiddenTroubleService
{
/**
* 查询隐患信息
*
* @param troubleId 隐患信息ID
* @return 隐患信息
*/
public
THiddenTrouble
selectTHiddenTroubleById
(
Long
troubleId
);
/**
* 查询隐患信息列表
*
* @param tHiddenTrouble 隐患信息
* @return 隐患信息集合
*/
public
List
<
THiddenTrouble
>
selectTHiddenTroubleList
(
THiddenTrouble
tHiddenTrouble
);
/**
* 新增隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
public
int
insertTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
);
/**
* 修改隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
public
int
updateTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
);
/**
* 批量删除隐患信息
*
* @param troubleIds 需要删除的隐患信息ID
* @return 结果
*/
public
int
deleteTHiddenTroubleByIds
(
Long
[]
troubleIds
);
/**
* 删除隐患信息信息
*
* @param troubleId 隐患信息ID
* @return 结果
*/
public
int
deleteTHiddenTroubleById
(
Long
troubleId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITInspectionDataService.java
View file @
90f16312
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TInspectionData;
...
@@ -7,7 +7,7 @@ import com.zehong.system.domain.TInspectionData;
* 巡检记录Service接口
* 巡检记录Service接口
*
*
* @author zehong
* @author zehong
* @date 2021-07-
09
* @date 2021-07-
21
*/
*/
public
interface
ITInspectionDataService
public
interface
ITInspectionDataService
{
{
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITInspectionPlanService.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInspectionPlan
;
/**
* 巡检计划Service接口
*
* @author zehong
* @date 2021-07-21
*/
public
interface
ITInspectionPlanService
{
/**
* 查询巡检计划
*
* @param planId 巡检计划ID
* @return 巡检计划
*/
public
TInspectionPlan
selectTInspectionPlanById
(
Long
planId
);
/**
* 查询巡检计划列表
*
* @param tInspectionPlan 巡检计划
* @return 巡检计划集合
*/
public
List
<
TInspectionPlan
>
selectTInspectionPlanList
(
TInspectionPlan
tInspectionPlan
);
/**
* 新增巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
public
int
insertTInspectionPlan
(
TInspectionPlan
tInspectionPlan
);
/**
* 修改巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
public
int
updateTInspectionPlan
(
TInspectionPlan
tInspectionPlan
);
/**
* 批量删除巡检计划
*
* @param planIds 需要删除的巡检计划ID
* @return 结果
*/
public
int
deleteTInspectionPlanByIds
(
Long
[]
planIds
);
/**
* 删除巡检计划信息
*
* @param planId 巡检计划ID
* @return 结果
*/
public
int
deleteTInspectionPlanById
(
Long
planId
);
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceAlarmServiceImpl.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TDeviceAlarmMapper
;
import
com.zehong.system.domain.TDeviceAlarm
;
import
com.zehong.system.service.ITDeviceAlarmService
;
/**
* 报警信息Service业务层处理
*
* @author zehong
* @date 2021-07-21
*/
@Service
public
class
TDeviceAlarmServiceImpl
implements
ITDeviceAlarmService
{
@Autowired
private
TDeviceAlarmMapper
tDeviceAlarmMapper
;
/**
* 查询报警信息
*
* @param alarmId 报警信息ID
* @return 报警信息
*/
@Override
public
TDeviceAlarm
selectTDeviceAlarmById
(
Long
alarmId
)
{
return
tDeviceAlarmMapper
.
selectTDeviceAlarmById
(
alarmId
);
}
/**
* 查询报警信息列表
*
* @param tDeviceAlarm 报警信息
* @return 报警信息
*/
@Override
public
List
<
TDeviceAlarm
>
selectTDeviceAlarmList
(
TDeviceAlarm
tDeviceAlarm
)
{
return
tDeviceAlarmMapper
.
selectTDeviceAlarmList
(
tDeviceAlarm
);
}
/**
* 新增报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
@Override
public
int
insertTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
)
{
tDeviceAlarm
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tDeviceAlarmMapper
.
insertTDeviceAlarm
(
tDeviceAlarm
);
}
/**
* 修改报警信息
*
* @param tDeviceAlarm 报警信息
* @return 结果
*/
@Override
public
int
updateTDeviceAlarm
(
TDeviceAlarm
tDeviceAlarm
)
{
tDeviceAlarm
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tDeviceAlarmMapper
.
updateTDeviceAlarm
(
tDeviceAlarm
);
}
/**
* 批量删除报警信息
*
* @param alarmIds 需要删除的报警信息ID
* @return 结果
*/
@Override
public
int
deleteTDeviceAlarmByIds
(
Long
[]
alarmIds
)
{
return
tDeviceAlarmMapper
.
deleteTDeviceAlarmByIds
(
alarmIds
);
}
/**
* 删除报警信息信息
*
* @param alarmId 报警信息ID
* @return 结果
*/
@Override
public
int
deleteTDeviceAlarmById
(
Long
alarmId
)
{
return
tDeviceAlarmMapper
.
deleteTDeviceAlarmById
(
alarmId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleServiceImpl.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
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
;
/**
* 隐患信息Service业务层处理
*
* @author zehong
* @date 2021-07-21
*/
@Service
public
class
THiddenTroubleServiceImpl
implements
ITHiddenTroubleService
{
@Autowired
private
THiddenTroubleMapper
tHiddenTroubleMapper
;
/**
* 查询隐患信息
*
* @param troubleId 隐患信息ID
* @return 隐患信息
*/
@Override
public
THiddenTrouble
selectTHiddenTroubleById
(
Long
troubleId
)
{
return
tHiddenTroubleMapper
.
selectTHiddenTroubleById
(
troubleId
);
}
/**
* 查询隐患信息列表
*
* @param tHiddenTrouble 隐患信息
* @return 隐患信息
*/
@Override
public
List
<
THiddenTrouble
>
selectTHiddenTroubleList
(
THiddenTrouble
tHiddenTrouble
)
{
return
tHiddenTroubleMapper
.
selectTHiddenTroubleList
(
tHiddenTrouble
);
}
/**
* 新增隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
@Override
public
int
insertTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
)
{
tHiddenTrouble
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tHiddenTroubleMapper
.
insertTHiddenTrouble
(
tHiddenTrouble
);
}
/**
* 修改隐患信息
*
* @param tHiddenTrouble 隐患信息
* @return 结果
*/
@Override
public
int
updateTHiddenTrouble
(
THiddenTrouble
tHiddenTrouble
)
{
tHiddenTrouble
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tHiddenTroubleMapper
.
updateTHiddenTrouble
(
tHiddenTrouble
);
}
/**
* 批量删除隐患信息
*
* @param troubleIds 需要删除的隐患信息ID
* @return 结果
*/
@Override
public
int
deleteTHiddenTroubleByIds
(
Long
[]
troubleIds
)
{
return
tHiddenTroubleMapper
.
deleteTHiddenTroubleByIds
(
troubleIds
);
}
/**
* 删除隐患信息信息
*
* @param troubleId 隐患信息ID
* @return 结果
*/
@Override
public
int
deleteTHiddenTroubleById
(
Long
troubleId
)
{
return
tHiddenTroubleMapper
.
deleteTHiddenTroubleById
(
troubleId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TInspectionDataServiceImpl.java
View file @
90f16312
...
@@ -12,7 +12,7 @@ import com.zehong.system.service.ITInspectionDataService;
...
@@ -12,7 +12,7 @@ import com.zehong.system.service.ITInspectionDataService;
* 巡检记录Service业务层处理
* 巡检记录Service业务层处理
*
*
* @author zehong
* @author zehong
* @date 2021-07-
09
* @date 2021-07-
21
*/
*/
@Service
@Service
public
class
TInspectionDataServiceImpl
implements
ITInspectionDataService
public
class
TInspectionDataServiceImpl
implements
ITInspectionDataService
...
@@ -66,6 +66,7 @@ public class TInspectionDataServiceImpl implements ITInspectionDataService
...
@@ -66,6 +66,7 @@ public class TInspectionDataServiceImpl implements ITInspectionDataService
@Override
@Override
public
int
updateTInspectionData
(
TInspectionData
tInspectionData
)
public
int
updateTInspectionData
(
TInspectionData
tInspectionData
)
{
{
tInspectionData
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tInspectionDataMapper
.
updateTInspectionData
(
tInspectionData
);
return
tInspectionDataMapper
.
updateTInspectionData
(
tInspectionData
);
}
}
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TInspectionPlanServiceImpl.java
0 → 100644
View file @
90f16312
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TInspectionPlanMapper
;
import
com.zehong.system.domain.TInspectionPlan
;
import
com.zehong.system.service.ITInspectionPlanService
;
/**
* 巡检计划Service业务层处理
*
* @author zehong
* @date 2021-07-21
*/
@Service
public
class
TInspectionPlanServiceImpl
implements
ITInspectionPlanService
{
@Autowired
private
TInspectionPlanMapper
tInspectionPlanMapper
;
/**
* 查询巡检计划
*
* @param planId 巡检计划ID
* @return 巡检计划
*/
@Override
public
TInspectionPlan
selectTInspectionPlanById
(
Long
planId
)
{
return
tInspectionPlanMapper
.
selectTInspectionPlanById
(
planId
);
}
/**
* 查询巡检计划列表
*
* @param tInspectionPlan 巡检计划
* @return 巡检计划
*/
@Override
public
List
<
TInspectionPlan
>
selectTInspectionPlanList
(
TInspectionPlan
tInspectionPlan
)
{
return
tInspectionPlanMapper
.
selectTInspectionPlanList
(
tInspectionPlan
);
}
/**
* 新增巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
@Override
public
int
insertTInspectionPlan
(
TInspectionPlan
tInspectionPlan
)
{
tInspectionPlan
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tInspectionPlanMapper
.
insertTInspectionPlan
(
tInspectionPlan
);
}
/**
* 修改巡检计划
*
* @param tInspectionPlan 巡检计划
* @return 结果
*/
@Override
public
int
updateTInspectionPlan
(
TInspectionPlan
tInspectionPlan
)
{
tInspectionPlan
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tInspectionPlanMapper
.
updateTInspectionPlan
(
tInspectionPlan
);
}
/**
* 批量删除巡检计划
*
* @param planIds 需要删除的巡检计划ID
* @return 结果
*/
@Override
public
int
deleteTInspectionPlanByIds
(
Long
[]
planIds
)
{
return
tInspectionPlanMapper
.
deleteTInspectionPlanByIds
(
planIds
);
}
/**
* 删除巡检计划信息
*
* @param planId 巡检计划ID
* @return 结果
*/
@Override
public
int
deleteTInspectionPlanById
(
Long
planId
)
{
return
tInspectionPlanMapper
.
deleteTInspectionPlanById
(
planId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TOrderFeedbackServiceImpl.java
View file @
90f16312
...
@@ -52,6 +52,13 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
...
@@ -52,6 +52,13 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
@Override
@Override
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
{
{
Long
deviceId
=
tOrderFeedback
.
getDeviceId
();
// 更改巡检记录状态
if
(
deviceId
!=
0L
){
String
dealStatus
=
tOrderFeedback
.
getDealStatus
();
}
return
tOrderFeedbackMapper
.
insertTOrderFeedback
(
tOrderFeedback
);
return
tOrderFeedbackMapper
.
insertTOrderFeedback
(
tOrderFeedback
);
}
}
...
...
gassafety-system/src/main/resources/mapper/system/TDeviceAlarmMapper.xml
0 → 100644
View file @
90f16312
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TDeviceAlarmMapper"
>
<resultMap
type=
"TDeviceAlarm"
id=
"TDeviceAlarmResult"
>
<result
property=
"alarmId"
column=
"alarm_id"
/>
<result
property=
"deviceId"
column=
"device_id"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"alarmType"
column=
"alarm_type"
/>
<result
property=
"alarmValue"
column=
"alarm_value"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"endTime"
column=
"end_time"
/>
<result
property=
"dealStatus"
column=
"deal_status"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTDeviceAlarmVo"
>
select alarm_id, device_id, order_id, alarm_type, alarm_value, start_time, end_time, deal_status, update_time, create_time, remarks from t_device_alarm
</sql>
<select
id=
"selectTDeviceAlarmList"
parameterType=
"TDeviceAlarm"
resultMap=
"TDeviceAlarmResult"
>
<include
refid=
"selectTDeviceAlarmVo"
/>
<where>
<if
test=
"deviceId != null "
>
and device_id = #{deviceId}
</if>
<if
test=
"orderId != null and orderId != ''"
>
and order_id = #{orderId}
</if>
<if
test=
"alarmType != null and alarmType != ''"
>
and alarm_type = #{alarmType}
</if>
<if
test=
"alarmValue != null and alarmValue != ''"
>
and alarm_value = #{alarmValue}
</if>
<if
test=
"startTime != null "
>
and start_time = #{startTime}
</if>
<if
test=
"endTime != null "
>
and end_time = #{endTime}
</if>
<if
test=
"dealStatus != null and dealStatus != ''"
>
and deal_status = #{dealStatus}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTDeviceAlarmById"
parameterType=
"Long"
resultMap=
"TDeviceAlarmResult"
>
<include
refid=
"selectTDeviceAlarmVo"
/>
where alarm_id = #{alarmId}
</select>
<insert
id=
"insertTDeviceAlarm"
parameterType=
"TDeviceAlarm"
useGeneratedKeys=
"true"
keyProperty=
"alarmId"
>
insert into t_device_alarm
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
device_id,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"alarmType != null"
>
alarm_type,
</if>
<if
test=
"alarmValue != null"
>
alarm_value,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"dealStatus != null"
>
deal_status,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
#{deviceId},
</if>
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"alarmType != null"
>
#{alarmType},
</if>
<if
test=
"alarmValue != null"
>
#{alarmValue},
</if>
<if
test=
"startTime != null"
>
#{startTime},
</if>
<if
test=
"endTime != null"
>
#{endTime},
</if>
<if
test=
"dealStatus != null"
>
#{dealStatus},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTDeviceAlarm"
parameterType=
"TDeviceAlarm"
>
update t_device_alarm
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
device_id = #{deviceId},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"alarmType != null"
>
alarm_type = #{alarmType},
</if>
<if
test=
"alarmValue != null"
>
alarm_value = #{alarmValue},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime},
</if>
<if
test=
"endTime != null"
>
end_time = #{endTime},
</if>
<if
test=
"dealStatus != null"
>
deal_status = #{dealStatus},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where alarm_id = #{alarmId}
</update>
<delete
id=
"deleteTDeviceAlarmById"
parameterType=
"Long"
>
delete from t_device_alarm where alarm_id = #{alarmId}
</delete>
<delete
id=
"deleteTDeviceAlarmByIds"
parameterType=
"String"
>
delete from t_device_alarm where alarm_id in
<foreach
item=
"alarmId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{alarmId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/THiddenTroubleMapper.xml
0 → 100644
View file @
90f16312
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.THiddenTroubleMapper"
>
<resultMap
type=
"THiddenTrouble"
id=
"THiddenTroubleResult"
>
<result
property=
"troubleId"
column=
"trouble_id"
/>
<result
property=
"deviceId"
column=
"device_id"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"dealStatus"
column=
"deal_status"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTHiddenTroubleVo"
>
select trouble_id, device_id, order_id, longitude, latitude, deal_status, update_time, create_time, remarks from t_hidden_trouble
</sql>
<select
id=
"selectTHiddenTroubleList"
parameterType=
"THiddenTrouble"
resultMap=
"THiddenTroubleResult"
>
<include
refid=
"selectTHiddenTroubleVo"
/>
<where>
<if
test=
"deviceId != null "
>
and device_id = #{deviceId}
</if>
<if
test=
"orderId != null and orderId != ''"
>
and order_id = #{orderId}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"dealStatus != null and dealStatus != ''"
>
and deal_status = #{dealStatus}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTHiddenTroubleById"
parameterType=
"Long"
resultMap=
"THiddenTroubleResult"
>
<include
refid=
"selectTHiddenTroubleVo"
/>
where trouble_id = #{troubleId}
</select>
<insert
id=
"insertTHiddenTrouble"
parameterType=
"THiddenTrouble"
useGeneratedKeys=
"true"
keyProperty=
"troubleId"
>
insert into t_hidden_trouble
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
device_id,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"dealStatus != null"
>
deal_status,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
#{deviceId},
</if>
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"dealStatus != null"
>
#{dealStatus},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTHiddenTrouble"
parameterType=
"THiddenTrouble"
>
update t_hidden_trouble
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"deviceId != null"
>
device_id = #{deviceId},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"dealStatus != null"
>
deal_status = #{dealStatus},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where trouble_id = #{troubleId}
</update>
<delete
id=
"deleteTHiddenTroubleById"
parameterType=
"Long"
>
delete from t_hidden_trouble where trouble_id = #{troubleId}
</delete>
<delete
id=
"deleteTHiddenTroubleByIds"
parameterType=
"String"
>
delete from t_hidden_trouble where trouble_id in
<foreach
item=
"troubleId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{troubleId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TInspectionDataMapper.xml
View file @
90f16312
...
@@ -6,23 +6,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -6,23 +6,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap
type=
"TInspectionData"
id=
"TInspectionDataResult"
>
<resultMap
type=
"TInspectionData"
id=
"TInspectionDataResult"
>
<result
property=
"dataId"
column=
"data_id"
/>
<result
property=
"dataId"
column=
"data_id"
/>
<result
property=
"inspectorId"
column=
"inspector_id"
/>
<result
property=
"planId"
column=
"plan_id"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"deviceId"
column=
"device_id"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"dealStatus"
column=
"deal_status"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTInspectionDataVo"
>
<sql
id=
"selectTInspectionDataVo"
>
select data_id,
inspector_id, longitude, latitud
e, create_time, remarks from t_inspection_data
select data_id,
plan_id, device_id, deal_status, update_tim
e, create_time, remarks from t_inspection_data
</sql>
</sql>
<select
id=
"selectTInspectionDataList"
parameterType=
"TInspectionData"
resultMap=
"TInspectionDataResult"
>
<select
id=
"selectTInspectionDataList"
parameterType=
"TInspectionData"
resultMap=
"TInspectionDataResult"
>
<include
refid=
"selectTInspectionDataVo"
/>
<include
refid=
"selectTInspectionDataVo"
/>
<where>
<where>
<if
test=
"
inspectorId != null "
>
and inspector_id = #{inspector
Id}
</if>
<if
test=
"
planId != null "
>
and plan_id = #{plan
Id}
</if>
<if
test=
"
longitude != null "
>
and longitude = #{longitude
}
</if>
<if
test=
"
deviceId != null "
>
and device_id = #{deviceId
}
</if>
<if
test=
"
latitude != null "
>
and latitude = #{latitude
}
</if>
<if
test=
"
dealStatus != null and dealStatus != ''"
>
and deal_status = #{dealStatus
}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</where>
</select>
</select>
...
@@ -36,17 +37,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -36,17 +37,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into t_inspection_data
insert into t_inspection_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"dataId != null"
>
data_id,
</if>
<if
test=
"dataId != null"
>
data_id,
</if>
<if
test=
"inspectorId != null"
>
inspector_id,
</if>
<if
test=
"planId != null"
>
plan_id,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"deviceId != null"
>
device_id,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"dealStatus != null"
>
deal_status,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"dataId != null"
>
#{dataId},
</if>
<if
test=
"dataId != null"
>
#{dataId},
</if>
<if
test=
"inspectorId != null"
>
#{inspectorId},
</if>
<if
test=
"planId != null"
>
#{planId},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"deviceId != null"
>
#{deviceId},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"dealStatus != null"
>
#{dealStatus},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</trim>
...
@@ -55,9 +58,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -55,9 +58,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update
id=
"updateTInspectionData"
parameterType=
"TInspectionData"
>
<update
id=
"updateTInspectionData"
parameterType=
"TInspectionData"
>
update t_inspection_data
update t_inspection_data
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"inspectorId != null"
>
inspector_id = #{inspectorId},
</if>
<if
test=
"planId != null"
>
plan_id = #{planId},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"deviceId != null"
>
device_id = #{deviceId},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"dealStatus != null"
>
deal_status = #{dealStatus},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
</trim>
...
...
gassafety-system/src/main/resources/mapper/system/TInspectionPlanMapper.xml
0 → 100644
View file @
90f16312
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TInspectionPlanMapper"
>
<resultMap
type=
"TInspectionPlan"
id=
"TInspectionPlanResult"
>
<result
property=
"planId"
column=
"plan_id"
/>
<result
property=
"planName"
column=
"plan_name"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"endTime"
column=
"end_time"
/>
<result
property=
"planStatus"
column=
"plan_status"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTInspectionPlanVo"
>
select plan_id, plan_name, order_id, start_time, end_time, plan_status, update_time, create_time, remarks from t_inspection_plan
</sql>
<select
id=
"selectTInspectionPlanList"
parameterType=
"TInspectionPlan"
resultMap=
"TInspectionPlanResult"
>
<include
refid=
"selectTInspectionPlanVo"
/>
<where>
<if
test=
"planName != null and planName != ''"
>
and plan_name like concat('%', #{planName}, '%')
</if>
<if
test=
"orderId != null and orderId != ''"
>
and order_id = #{orderId}
</if>
<if
test=
"startTime != null "
>
and start_time = #{startTime}
</if>
<if
test=
"endTime != null "
>
and end_time = #{endTime}
</if>
<if
test=
"planStatus != null and planStatus != ''"
>
and plan_status = #{planStatus}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTInspectionPlanById"
parameterType=
"Long"
resultMap=
"TInspectionPlanResult"
>
<include
refid=
"selectTInspectionPlanVo"
/>
where plan_id = #{planId}
</select>
<insert
id=
"insertTInspectionPlan"
parameterType=
"TInspectionPlan"
useGeneratedKeys=
"true"
keyProperty=
"planId"
>
insert into t_inspection_plan
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"planName != null"
>
plan_name,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"planStatus != null"
>
plan_status,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"planName != null"
>
#{planName},
</if>
<if
test=
"orderId != null"
>
#{orderId},
</if>
<if
test=
"startTime != null"
>
#{startTime},
</if>
<if
test=
"endTime != null"
>
#{endTime},
</if>
<if
test=
"planStatus != null"
>
#{planStatus},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTInspectionPlan"
parameterType=
"TInspectionPlan"
>
update t_inspection_plan
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"planName != null"
>
plan_name = #{planName},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime},
</if>
<if
test=
"endTime != null"
>
end_time = #{endTime},
</if>
<if
test=
"planStatus != null"
>
plan_status = #{planStatus},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where plan_id = #{planId}
</update>
<delete
id=
"deleteTInspectionPlanById"
parameterType=
"Long"
>
delete from t_inspection_plan where plan_id = #{planId}
</delete>
<delete
id=
"deleteTInspectionPlanByIds"
parameterType=
"String"
>
delete from t_inspection_plan where plan_id in
<foreach
item=
"planId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{planId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-web/src/api/dataMonitoring/deviceAlarm.js
0 → 100644
View file @
90f16312
import
request
from
'@/utils/request'
// 查询报警信息列表
export
function
listDeviceAlarm
(
query
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询报警信息详细
export
function
getDeviceAlarm
(
alarmId
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm/'
+
alarmId
,
method
:
'get'
})
}
// 新增报警信息
export
function
addDeviceAlarm
(
data
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm'
,
method
:
'post'
,
data
:
data
})
}
// 修改报警信息
export
function
updateDeviceAlarm
(
data
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm'
,
method
:
'put'
,
data
:
data
})
}
// 删除报警信息
export
function
delDeviceAlarm
(
alarmId
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm/'
+
alarmId
,
method
:
'delete'
})
}
// 导出报警信息
export
function
exportDeviceAlarm
(
query
)
{
return
request
({
url
:
'/dataMonitoring/deviceAlarm/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/api/deviceInspection/inspectionPlan.js
0 → 100644
View file @
90f16312
import
request
from
'@/utils/request'
// 查询巡检计划列表
export
function
listInspectionPlan
(
query
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询巡检计划详细
export
function
getInspectionPlan
(
planId
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan/'
+
planId
,
method
:
'get'
})
}
// 新增巡检计划
export
function
addInspectionPlan
(
data
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan'
,
method
:
'post'
,
data
:
data
})
}
// 修改巡检计划
export
function
updateInspectionPlan
(
data
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan'
,
method
:
'put'
,
data
:
data
})
}
// 删除巡检计划
export
function
delInspectionPlan
(
planId
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan/'
+
planId
,
method
:
'delete'
})
}
// 导出巡检计划
export
function
exportInspectionPlan
(
query
)
{
return
request
({
url
:
'/deviceInspection/inspectionPlan/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/api/riskManagement/hiddenTrouble.js
0 → 100644
View file @
90f16312
import
request
from
'@/utils/request'
// 查询隐患信息列表
export
function
listHiddenTrouble
(
query
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询隐患信息详细
export
function
getHiddenTrouble
(
troubleId
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble/'
+
troubleId
,
method
:
'get'
})
}
// 新增隐患信息
export
function
addHiddenTrouble
(
data
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble'
,
method
:
'post'
,
data
:
data
})
}
// 修改隐患信息
export
function
updateHiddenTrouble
(
data
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble'
,
method
:
'put'
,
data
:
data
})
}
// 删除隐患信息
export
function
delHiddenTrouble
(
troubleId
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble/'
+
troubleId
,
method
:
'delete'
})
}
// 导出隐患信息
export
function
exportHiddenTrouble
(
query
)
{
return
request
({
url
:
'/riskManagement/hiddenTrouble/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/views/dataMonitoring/deviceAlarm/index.vue
0 → 100644
View file @
90f16312
This diff is collapsed.
Click to expand it.
gassafety-web/src/views/deviceInspection/inspectionPlan/index.vue
0 → 100644
View file @
90f16312
This diff is collapsed.
Click to expand it.
gassafety-web/src/views/riskManagement/hiddenTrouble/index.vue
0 → 100644
View file @
90f16312
This diff is collapsed.
Click to expand it.
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