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
c86c815b
Commit
c86c815b
authored
Jul 09, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管道、设备、巡检员、巡检记录
parent
068c6f1c
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
2304 additions
and
2056 deletions
+2304
-2056
TDeviceInfoController.java
...m/zehong/web/controller/device/TDeviceInfoController.java
+103
-0
TInspectionDataController.java
...hong/web/controller/device/TInspectionDataController.java
+103
-0
TInspectorController.java
...om/zehong/web/controller/device/TInspectorController.java
+15
-21
TPipeController.java
...ava/com/zehong/web/controller/device/TPipeController.java
+15
-21
TFlowmeterController.java
...om/zehong/web/controller/system/TFlowmeterController.java
+0
-103
TRegulatorBoxController.java
...zehong/web/controller/system/TRegulatorBoxController.java
+0
-103
TDeviceInfo.java
...m/src/main/java/com/zehong/system/domain/TDeviceInfo.java
+30
-16
TGasMeter.java
...tem/src/main/java/com/zehong/system/domain/TGasMeter.java
+0
-238
TInspectionData.java
...c/main/java/com/zehong/system/domain/TInspectionData.java
+95
-0
TValveWell.java
...em/src/main/java/com/zehong/system/domain/TValveWell.java
+0
-210
TDeviceInfoMapper.java
...main/java/com/zehong/system/mapper/TDeviceInfoMapper.java
+61
-0
TFlowmeterMapper.java
.../main/java/com/zehong/system/mapper/TFlowmeterMapper.java
+0
-61
TGasMeterMapper.java
...c/main/java/com/zehong/system/mapper/TGasMeterMapper.java
+0
-61
TInspectionDataMapper.java
.../java/com/zehong/system/mapper/TInspectionDataMapper.java
+61
-0
TRegulatorBoxMapper.java
...in/java/com/zehong/system/mapper/TRegulatorBoxMapper.java
+0
-61
TValveWellMapper.java
.../main/java/com/zehong/system/mapper/TValveWellMapper.java
+0
-61
ITDeviceInfoService.java
...n/java/com/zehong/system/service/ITDeviceInfoService.java
+61
-0
ITFlowmeterService.java
...in/java/com/zehong/system/service/ITFlowmeterService.java
+0
-61
ITGasMeterService.java
...ain/java/com/zehong/system/service/ITGasMeterService.java
+0
-61
ITInspectionDataService.java
...va/com/zehong/system/service/ITInspectionDataService.java
+61
-0
ITRegulatorBoxService.java
...java/com/zehong/system/service/ITRegulatorBoxService.java
+0
-61
ITValveWellService.java
...in/java/com/zehong/system/service/ITValveWellService.java
+0
-61
TDeviceInfoServiceImpl.java
...om/zehong/system/service/impl/TDeviceInfoServiceImpl.java
+93
-0
TFlowmeterServiceImpl.java
...com/zehong/system/service/impl/TFlowmeterServiceImpl.java
+0
-93
TGasMeterServiceImpl.java
.../com/zehong/system/service/impl/TGasMeterServiceImpl.java
+0
-93
TInspectionDataServiceImpl.java
...ehong/system/service/impl/TInspectionDataServiceImpl.java
+95
-0
TRegulatorBoxServiceImpl.java
.../zehong/system/service/impl/TRegulatorBoxServiceImpl.java
+0
-93
TValveWellServiceImpl.java
...com/zehong/system/service/impl/TValveWellServiceImpl.java
+0
-93
TDeviceInfoMapper.xml
...em/src/main/resources/mapper/system/TDeviceInfoMapper.xml
+26
-21
TGasMeterMapper.xml
...stem/src/main/resources/mapper/system/TGasMeterMapper.xml
+0
-121
TInspectionDataMapper.xml
...rc/main/resources/mapper/system/TInspectionDataMapper.xml
+77
-0
TRegulatorBoxMapper.xml
.../src/main/resources/mapper/system/TRegulatorBoxMapper.xml
+0
-111
TValveWellMapper.xml
...tem/src/main/resources/mapper/system/TValveWellMapper.xml
+0
-111
deviceInfo.js
gassafety-web/src/api/device/deviceInfo.js
+53
-0
inspectionData.js
gassafety-web/src/api/device/inspectionData.js
+53
-0
inspector.js
gassafety-web/src/api/device/inspector.js
+7
-7
pipe.js
gassafety-web/src/api/device/pipe.js
+7
-7
regulatorBox.js
gassafety-web/src/api/system/regulatorBox.js
+0
-53
valveWell.js
gassafety-web/src/api/system/valveWell.js
+0
-53
index.vue
gassafety-web/src/views/device/deviceInfo/index.vue
+383
-0
index.vue
gassafety-web/src/views/device/inspectionData/index.vue
+269
-0
index.vue
gassafety-web/src/views/device/inspector/index.vue
+291
-0
index.vue
gassafety-web/src/views/device/pipe/index.vue
+345
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/
system/TGasMeter
Controller.java
→
gassafety-admin/src/main/java/com/zehong/web/controller/
device/TDeviceInfo
Controller.java
View file @
c86c815b
package
com
.
zehong
.
web
.
controller
.
system
;
package
com
.
zehong
.
web
.
controller
.
device
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -15,89 +15,89 @@ import com.zehong.common.annotation.Log;
...
@@ -15,89 +15,89 @@ import com.zehong.common.annotation.Log;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.T
GasMeter
;
import
com.zehong.system.domain.T
DeviceInfo
;
import
com.zehong.system.service.IT
GasMeter
Service
;
import
com.zehong.system.service.IT
DeviceInfo
Service
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
/**
*
物联网燃气表
Controller
*
设备信息
Controller
*
*
* @author zehong
* @author zehong
* @date 2021-07-0
8
* @date 2021-07-0
9
*/
*/
@RestController
@RestController
@RequestMapping
(
"/
system/gasMeter
"
)
@RequestMapping
(
"/
device/deviceInfo
"
)
public
class
T
GasMeter
Controller
extends
BaseController
public
class
T
DeviceInfo
Controller
extends
BaseController
{
{
@Autowired
@Autowired
private
IT
GasMeterService
tGasMeter
Service
;
private
IT
DeviceInfoService
tDeviceInfo
Service
;
/**
/**
* 查询
物联网燃气表
列表
* 查询
设备信息
列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:list')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
T
GasMeter
tGasMeter
)
public
TableDataInfo
list
(
T
DeviceInfo
tDeviceInfo
)
{
{
startPage
();
startPage
();
List
<
T
GasMeter
>
list
=
tGasMeterService
.
selectTGasMeterList
(
tGasMeter
);
List
<
T
DeviceInfo
>
list
=
tDeviceInfoService
.
selectTDeviceInfoList
(
tDeviceInfo
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
/**
/**
* 导出
物联网燃气表
列表
* 导出
设备信息
列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:export')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:export')"
)
@Log
(
title
=
"
物联网燃气表
"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"
设备信息
"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
T
GasMeter
tGasMeter
)
public
AjaxResult
export
(
T
DeviceInfo
tDeviceInfo
)
{
{
List
<
T
GasMeter
>
list
=
tGasMeterService
.
selectTGasMeterList
(
tGasMeter
);
List
<
T
DeviceInfo
>
list
=
tDeviceInfoService
.
selectTDeviceInfoList
(
tDeviceInfo
);
ExcelUtil
<
T
GasMeter
>
util
=
new
ExcelUtil
<
TGasMeter
>(
TGasMeter
.
class
);
ExcelUtil
<
T
DeviceInfo
>
util
=
new
ExcelUtil
<
TDeviceInfo
>(
TDeviceInfo
.
class
);
return
util
.
exportExcel
(
list
,
"
物联网燃气表
数据"
);
return
util
.
exportExcel
(
list
,
"
设备信息
数据"
);
}
}
/**
/**
* 获取
物联网燃气表
详细信息
* 获取
设备信息
详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:query')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:query')"
)
@GetMapping
(
value
=
"/{
gas
Id}"
)
@GetMapping
(
value
=
"/{
device
Id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
gasId"
)
Long
gas
Id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
deviceId"
)
Long
device
Id
)
{
{
return
AjaxResult
.
success
(
t
GasMeterService
.
selectTGasMeterById
(
gas
Id
));
return
AjaxResult
.
success
(
t
DeviceInfoService
.
selectTDeviceInfoById
(
device
Id
));
}
}
/**
/**
* 新增
物联网燃气表
* 新增
设备信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:add')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:add')"
)
@Log
(
title
=
"
物联网燃气表
"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"
设备信息
"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
T
GasMeter
tGasMeter
)
public
AjaxResult
add
(
@RequestBody
T
DeviceInfo
tDeviceInfo
)
{
{
return
toAjax
(
t
GasMeterService
.
insertTGasMeter
(
tGasMeter
));
return
toAjax
(
t
DeviceInfoService
.
insertTDeviceInfo
(
tDeviceInfo
));
}
}
/**
/**
* 修改
物联网燃气表
* 修改
设备信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:edit')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:edit')"
)
@Log
(
title
=
"
物联网燃气表
"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"
设备信息
"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
T
GasMeter
tGasMeter
)
public
AjaxResult
edit
(
@RequestBody
T
DeviceInfo
tDeviceInfo
)
{
{
return
toAjax
(
t
GasMeterService
.
updateTGasMeter
(
tGasMeter
));
return
toAjax
(
t
DeviceInfoService
.
updateTDeviceInfo
(
tDeviceInfo
));
}
}
/**
/**
* 删除
物联网燃气表
* 删除
设备信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:gasMeter
:remove')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:deviceInfo
:remove')"
)
@Log
(
title
=
"
物联网燃气表
"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"
设备信息
"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{
gas
Ids}"
)
@DeleteMapping
(
"/{
device
Ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
gas
Ids
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
device
Ids
)
{
{
return
toAjax
(
t
GasMeterService
.
deleteTGasMeterByIds
(
gas
Ids
));
return
toAjax
(
t
DeviceInfoService
.
deleteTDeviceInfoByIds
(
device
Ids
));
}
}
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/
system/TValveWell
Controller.java
→
gassafety-admin/src/main/java/com/zehong/web/controller/
device/TInspectionData
Controller.java
View file @
c86c815b
package
com
.
zehong
.
web
.
controller
.
system
;
package
com
.
zehong
.
web
.
controller
.
device
;
import
java.util.List
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -15,89 +15,89 @@ import com.zehong.common.annotation.Log;
...
@@ -15,89 +15,89 @@ import com.zehong.common.annotation.Log;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.T
ValveWell
;
import
com.zehong.system.domain.T
InspectionData
;
import
com.zehong.system.service.IT
ValveWell
Service
;
import
com.zehong.system.service.IT
InspectionData
Service
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
/**
*
阀门井
Controller
*
巡检记录
Controller
*
*
* @author zehong
* @author zehong
* @date 2021-07-0
8
* @date 2021-07-0
9
*/
*/
@RestController
@RestController
@RequestMapping
(
"/
system/valveWell
"
)
@RequestMapping
(
"/
device/inspectionData
"
)
public
class
T
ValveWell
Controller
extends
BaseController
public
class
T
InspectionData
Controller
extends
BaseController
{
{
@Autowired
@Autowired
private
IT
ValveWellService
tValveWell
Service
;
private
IT
InspectionDataService
tInspectionData
Service
;
/**
/**
* 查询
阀门井
列表
* 查询
巡检记录
列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:list')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
T
ValveWell
tValveWell
)
public
TableDataInfo
list
(
T
InspectionData
tInspectionData
)
{
{
startPage
();
startPage
();
List
<
T
ValveWell
>
list
=
tValveWellService
.
selectTValveWellList
(
tValveWell
);
List
<
T
InspectionData
>
list
=
tInspectionDataService
.
selectTInspectionDataList
(
tInspectionData
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
/**
/**
* 导出
阀门井
列表
* 导出
巡检记录
列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:export')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:export')"
)
@Log
(
title
=
"
阀门井
"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"
巡检记录
"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
T
ValveWell
tValveWell
)
public
AjaxResult
export
(
T
InspectionData
tInspectionData
)
{
{
List
<
T
ValveWell
>
list
=
tValveWellService
.
selectTValveWellList
(
tValveWell
);
List
<
T
InspectionData
>
list
=
tInspectionDataService
.
selectTInspectionDataList
(
tInspectionData
);
ExcelUtil
<
T
ValveWell
>
util
=
new
ExcelUtil
<
TValveWell
>(
TValveWell
.
class
);
ExcelUtil
<
T
InspectionData
>
util
=
new
ExcelUtil
<
TInspectionData
>(
TInspectionData
.
class
);
return
util
.
exportExcel
(
list
,
"
阀门井
数据"
);
return
util
.
exportExcel
(
list
,
"
巡检记录
数据"
);
}
}
/**
/**
* 获取
阀门井
详细信息
* 获取
巡检记录
详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:query')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:query')"
)
@GetMapping
(
value
=
"/{
well
Id}"
)
@GetMapping
(
value
=
"/{
data
Id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
wellId"
)
Long
well
Id
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
dataId"
)
Long
data
Id
)
{
{
return
AjaxResult
.
success
(
t
ValveWellService
.
selectTValveWellById
(
well
Id
));
return
AjaxResult
.
success
(
t
InspectionDataService
.
selectTInspectionDataById
(
data
Id
));
}
}
/**
/**
* 新增
阀门井
* 新增
巡检记录
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:add')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:add')"
)
@Log
(
title
=
"
阀门井
"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"
巡检记录
"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
T
ValveWell
tValveWell
)
public
AjaxResult
add
(
@RequestBody
T
InspectionData
tInspectionData
)
{
{
return
toAjax
(
t
ValveWellService
.
insertTValveWell
(
tValveWell
));
return
toAjax
(
t
InspectionDataService
.
insertTInspectionData
(
tInspectionData
));
}
}
/**
/**
* 修改
阀门井
* 修改
巡检记录
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:edit')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:edit')"
)
@Log
(
title
=
"
阀门井
"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"
巡检记录
"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
T
ValveWell
tValveWell
)
public
AjaxResult
edit
(
@RequestBody
T
InspectionData
tInspectionData
)
{
{
return
toAjax
(
t
ValveWellService
.
updateTValveWell
(
tValveWell
));
return
toAjax
(
t
InspectionDataService
.
updateTInspectionData
(
tInspectionData
));
}
}
/**
/**
* 删除
阀门井
* 删除
巡检记录
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system:valveWell
:remove')"
)
@PreAuthorize
(
"@ss.hasPermi('
device:inspectionData
:remove')"
)
@Log
(
title
=
"
阀门井
"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"
巡检记录
"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{
well
Ids}"
)
@DeleteMapping
(
"/{
data
Ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
well
Ids
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
data
Ids
)
{
{
return
toAjax
(
t
ValveWellService
.
deleteTValveWellByIds
(
well
Ids
));
return
toAjax
(
t
InspectionDataService
.
deleteTInspectionDataByIds
(
data
Ids
));
}
}
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/
system
/TInspectorController.java
→
gassafety-admin/src/main/java/com/zehong/web/controller/
device
/TInspectorController.java
View file @
c86c815b
package
com
.
zehong
.
web
.
controller
.
system
;
package
com
.
zehong
.
web
.
controller
.
device
;
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.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TInspector
;
import
com.zehong.system.domain.TInspector
;
import
com.zehong.system.service.ITInspectorService
;
import
com.zehong.system.service.ITInspectorService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
/**
* 巡检员Controller
* 巡检员Controller
...
@@ -27,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo;
...
@@ -27,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo;
* @date 2021-07-08
* @date 2021-07-08
*/
*/
@RestController
@RestController
@RequestMapping
(
"/
system
/inspector"
)
@RequestMapping
(
"/
device
/inspector"
)
public
class
TInspectorController
extends
BaseController
public
class
TInspectorController
extends
BaseController
{
{
@Autowired
@Autowired
...
@@ -36,7 +30,7 @@ public class TInspectorController extends BaseController
...
@@ -36,7 +30,7 @@ public class TInspectorController extends BaseController
/**
/**
* 查询巡检员列表
* 查询巡检员列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:list')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInspector
tInspector
)
public
TableDataInfo
list
(
TInspector
tInspector
)
{
{
...
@@ -48,7 +42,7 @@ public class TInspectorController extends BaseController
...
@@ -48,7 +42,7 @@ public class TInspectorController extends BaseController
/**
/**
* 导出巡检员列表
* 导出巡检员列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:export')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:export')"
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInspector
tInspector
)
public
AjaxResult
export
(
TInspector
tInspector
)
...
@@ -61,7 +55,7 @@ public class TInspectorController extends BaseController
...
@@ -61,7 +55,7 @@ public class TInspectorController extends BaseController
/**
/**
* 获取巡检员详细信息
* 获取巡检员详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:query')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:query')"
)
@GetMapping
(
value
=
"/{inspectorId}"
)
@GetMapping
(
value
=
"/{inspectorId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"inspectorId"
)
Long
inspectorId
)
public
AjaxResult
getInfo
(
@PathVariable
(
"inspectorId"
)
Long
inspectorId
)
{
{
...
@@ -71,7 +65,7 @@ public class TInspectorController extends BaseController
...
@@ -71,7 +65,7 @@ public class TInspectorController extends BaseController
/**
/**
* 新增巡检员
* 新增巡检员
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:add')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:add')"
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInspector
tInspector
)
public
AjaxResult
add
(
@RequestBody
TInspector
tInspector
)
...
@@ -82,7 +76,7 @@ public class TInspectorController extends BaseController
...
@@ -82,7 +76,7 @@ public class TInspectorController extends BaseController
/**
/**
* 修改巡检员
* 修改巡检员
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:edit')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:edit')"
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInspector
tInspector
)
public
AjaxResult
edit
(
@RequestBody
TInspector
tInspector
)
...
@@ -93,7 +87,7 @@ public class TInspectorController extends BaseController
...
@@ -93,7 +87,7 @@ public class TInspectorController extends BaseController
/**
/**
* 删除巡检员
* 删除巡检员
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:inspector:remove')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:inspector:remove')"
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"巡检员"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{inspectorIds}"
)
@DeleteMapping
(
"/{inspectorIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
inspectorIds
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
inspectorIds
)
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/
system
/TPipeController.java
→
gassafety-admin/src/main/java/com/zehong/web/controller/
device
/TPipeController.java
View file @
c86c815b
package
com
.
zehong
.
web
.
controller
.
system
;
package
com
.
zehong
.
web
.
controller
.
device
;
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.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.domain.TPipe
;
import
com.zehong.system.service.ITPipeService
;
import
com.zehong.system.service.ITPipeService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
/**
* 管道信息Controller
* 管道信息Controller
...
@@ -27,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo;
...
@@ -27,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo;
* @date 2021-07-08
* @date 2021-07-08
*/
*/
@RestController
@RestController
@RequestMapping
(
"/
system
/pipe"
)
@RequestMapping
(
"/
device
/pipe"
)
public
class
TPipeController
extends
BaseController
public
class
TPipeController
extends
BaseController
{
{
@Autowired
@Autowired
...
@@ -36,7 +30,7 @@ public class TPipeController extends BaseController
...
@@ -36,7 +30,7 @@ public class TPipeController extends BaseController
/**
/**
* 查询管道信息列表
* 查询管道信息列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:list')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TPipe
tPipe
)
public
TableDataInfo
list
(
TPipe
tPipe
)
{
{
...
@@ -48,7 +42,7 @@ public class TPipeController extends BaseController
...
@@ -48,7 +42,7 @@ public class TPipeController extends BaseController
/**
/**
* 导出管道信息列表
* 导出管道信息列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:export')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:export')"
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TPipe
tPipe
)
public
AjaxResult
export
(
TPipe
tPipe
)
...
@@ -61,7 +55,7 @@ public class TPipeController extends BaseController
...
@@ -61,7 +55,7 @@ public class TPipeController extends BaseController
/**
/**
* 获取管道信息详细信息
* 获取管道信息详细信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:query')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:query')"
)
@GetMapping
(
value
=
"/{pipeId}"
)
@GetMapping
(
value
=
"/{pipeId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"pipeId"
)
Long
pipeId
)
public
AjaxResult
getInfo
(
@PathVariable
(
"pipeId"
)
Long
pipeId
)
{
{
...
@@ -71,7 +65,7 @@ public class TPipeController extends BaseController
...
@@ -71,7 +65,7 @@ public class TPipeController extends BaseController
/**
/**
* 新增管道信息
* 新增管道信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:add')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:add')"
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
TPipe
tPipe
)
public
AjaxResult
add
(
@RequestBody
TPipe
tPipe
)
...
@@ -82,7 +76,7 @@ public class TPipeController extends BaseController
...
@@ -82,7 +76,7 @@ public class TPipeController extends BaseController
/**
/**
* 修改管道信息
* 修改管道信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:edit')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:edit')"
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
UPDATE
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TPipe
tPipe
)
public
AjaxResult
edit
(
@RequestBody
TPipe
tPipe
)
...
@@ -93,7 +87,7 @@ public class TPipeController extends BaseController
...
@@ -93,7 +87,7 @@ public class TPipeController extends BaseController
/**
/**
* 删除管道信息
* 删除管道信息
*/
*/
@PreAuthorize
(
"@ss.hasPermi('
system
:pipe:remove')"
)
@PreAuthorize
(
"@ss.hasPermi('
device
:pipe:remove')"
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
DELETE
)
@Log
(
title
=
"管道信息"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{pipeIds}"
)
@DeleteMapping
(
"/{pipeIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
pipeIds
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
pipeIds
)
...
...
gassafety-admin/src/main/java/com/zehong/web/controller/system/TFlowmeterController.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
web
.
controller
.
system
;
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.TFlowmeter
;
import
com.zehong.system.service.ITFlowmeterService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 流量计Controller
*
* @author zehong
* @date 2021-07-08
*/
@RestController
@RequestMapping
(
"/system/flowmeter"
)
public
class
TFlowmeterController
extends
BaseController
{
@Autowired
private
ITFlowmeterService
tFlowmeterService
;
/**
* 查询流量计列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TFlowmeter
tFlowmeter
)
{
startPage
();
List
<
TFlowmeter
>
list
=
tFlowmeterService
.
selectTFlowmeterList
(
tFlowmeter
);
return
getDataTable
(
list
);
}
/**
* 导出流量计列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:export')"
)
@Log
(
title
=
"流量计"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TFlowmeter
tFlowmeter
)
{
List
<
TFlowmeter
>
list
=
tFlowmeterService
.
selectTFlowmeterList
(
tFlowmeter
);
ExcelUtil
<
TFlowmeter
>
util
=
new
ExcelUtil
<
TFlowmeter
>(
TFlowmeter
.
class
);
return
util
.
exportExcel
(
list
,
"流量计数据"
);
}
/**
* 获取流量计详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:query')"
)
@GetMapping
(
value
=
"/{flowmeterId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"flowmeterId"
)
Long
flowmeterId
)
{
return
AjaxResult
.
success
(
tFlowmeterService
.
selectTFlowmeterById
(
flowmeterId
));
}
/**
* 新增流量计
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:add')"
)
@Log
(
title
=
"流量计"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TFlowmeter
tFlowmeter
)
{
return
toAjax
(
tFlowmeterService
.
insertTFlowmeter
(
tFlowmeter
));
}
/**
* 修改流量计
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:edit')"
)
@Log
(
title
=
"流量计"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TFlowmeter
tFlowmeter
)
{
return
toAjax
(
tFlowmeterService
.
updateTFlowmeter
(
tFlowmeter
));
}
/**
* 删除流量计
*/
@PreAuthorize
(
"@ss.hasPermi('system:flowmeter:remove')"
)
@Log
(
title
=
"流量计"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{flowmeterIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
flowmeterIds
)
{
return
toAjax
(
tFlowmeterService
.
deleteTFlowmeterByIds
(
flowmeterIds
));
}
}
gassafety-admin/src/main/java/com/zehong/web/controller/system/TRegulatorBoxController.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
web
.
controller
.
system
;
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.TRegulatorBox
;
import
com.zehong.system.service.ITRegulatorBoxService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 调压箱Controller
*
* @author zehong
* @date 2021-07-08
*/
@RestController
@RequestMapping
(
"/system/regulatorBox"
)
public
class
TRegulatorBoxController
extends
BaseController
{
@Autowired
private
ITRegulatorBoxService
tRegulatorBoxService
;
/**
* 查询调压箱列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TRegulatorBox
tRegulatorBox
)
{
startPage
();
List
<
TRegulatorBox
>
list
=
tRegulatorBoxService
.
selectTRegulatorBoxList
(
tRegulatorBox
);
return
getDataTable
(
list
);
}
/**
* 导出调压箱列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:export')"
)
@Log
(
title
=
"调压箱"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TRegulatorBox
tRegulatorBox
)
{
List
<
TRegulatorBox
>
list
=
tRegulatorBoxService
.
selectTRegulatorBoxList
(
tRegulatorBox
);
ExcelUtil
<
TRegulatorBox
>
util
=
new
ExcelUtil
<
TRegulatorBox
>(
TRegulatorBox
.
class
);
return
util
.
exportExcel
(
list
,
"调压箱数据"
);
}
/**
* 获取调压箱详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:query')"
)
@GetMapping
(
value
=
"/{boxId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"boxId"
)
Long
boxId
)
{
return
AjaxResult
.
success
(
tRegulatorBoxService
.
selectTRegulatorBoxById
(
boxId
));
}
/**
* 新增调压箱
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:add')"
)
@Log
(
title
=
"调压箱"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TRegulatorBox
tRegulatorBox
)
{
return
toAjax
(
tRegulatorBoxService
.
insertTRegulatorBox
(
tRegulatorBox
));
}
/**
* 修改调压箱
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:edit')"
)
@Log
(
title
=
"调压箱"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TRegulatorBox
tRegulatorBox
)
{
return
toAjax
(
tRegulatorBoxService
.
updateTRegulatorBox
(
tRegulatorBox
));
}
/**
* 删除调压箱
*/
@PreAuthorize
(
"@ss.hasPermi('system:regulatorBox:remove')"
)
@Log
(
title
=
"调压箱"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{boxIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
boxIds
)
{
return
toAjax
(
tRegulatorBoxService
.
deleteTRegulatorBoxByIds
(
boxIds
));
}
}
gassafety-system/src/main/java/com/zehong/system/domain/T
Flowmeter
.java
→
gassafety-system/src/main/java/com/zehong/system/domain/T
DeviceInfo
.java
View file @
c86c815b
...
@@ -9,17 +9,17 @@ import com.zehong.common.annotation.Excel;
...
@@ -9,17 +9,17 @@ import com.zehong.common.annotation.Excel;
import
com.zehong.common.core.domain.BaseEntity
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
/**
*
流量计对象 t_flowmeter
*
设备信息对象 t_device_info
*
*
* @author zehong
* @author zehong
* @date 2021-07-0
8
* @date 2021-07-0
9
*/
*/
public
class
T
Flowmeter
extends
BaseEntity
public
class
T
DeviceInfo
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
流量计
id */
/**
设备
id */
private
Long
flowmeter
Id
;
private
Long
device
Id
;
/** 企业id */
/** 企业id */
@Excel
(
name
=
"企业id"
)
@Excel
(
name
=
"企业id"
)
...
@@ -29,18 +29,22 @@ public class TFlowmeter extends BaseEntity
...
@@ -29,18 +29,22 @@ public class TFlowmeter extends BaseEntity
@Excel
(
name
=
"所属管道id"
)
@Excel
(
name
=
"所属管道id"
)
private
Long
pipeId
;
private
Long
pipeId
;
/** 名称 */
/**
设备
名称 */
@Excel
(
name
=
"名称"
)
@Excel
(
name
=
"
设备
名称"
)
private
String
deviceName
;
private
String
deviceName
;
/** 地址 */
/**
所在
地址 */
@Excel
(
name
=
"地址"
)
@Excel
(
name
=
"
所在
地址"
)
private
String
deviceAddr
;
private
String
deviceAddr
;
/** 型号 */
/**
设备
型号 */
@Excel
(
name
=
"型号"
)
@Excel
(
name
=
"
设备
型号"
)
private
String
deviceModel
;
private
String
deviceModel
;
/** 设备类型 */
@Excel
(
name
=
"设备类型"
)
private
String
deviceType
;
/** 经度 */
/** 经度 */
@Excel
(
name
=
"经度"
)
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
private
BigDecimal
longitude
;
...
@@ -79,14 +83,14 @@ public class TFlowmeter extends BaseEntity
...
@@ -79,14 +83,14 @@ public class TFlowmeter extends BaseEntity
@Excel
(
name
=
"备注"
)
@Excel
(
name
=
"备注"
)
private
String
remarks
;
private
String
remarks
;
public
void
set
FlowmeterId
(
Long
flowmeter
Id
)
public
void
set
DeviceId
(
Long
device
Id
)
{
{
this
.
flowmeterId
=
flowmeter
Id
;
this
.
deviceId
=
device
Id
;
}
}
public
Long
get
Flowmeter
Id
()
public
Long
get
Device
Id
()
{
{
return
flowmeter
Id
;
return
device
Id
;
}
}
public
void
setEnterpriseId
(
Long
enterpriseId
)
public
void
setEnterpriseId
(
Long
enterpriseId
)
{
{
...
@@ -133,6 +137,15 @@ public class TFlowmeter extends BaseEntity
...
@@ -133,6 +137,15 @@ public class TFlowmeter extends BaseEntity
{
{
return
deviceModel
;
return
deviceModel
;
}
}
public
void
setDeviceType
(
String
deviceType
)
{
this
.
deviceType
=
deviceType
;
}
public
String
getDeviceType
()
{
return
deviceType
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
public
void
setLongitude
(
BigDecimal
longitude
)
{
{
this
.
longitude
=
longitude
;
this
.
longitude
=
longitude
;
...
@@ -218,12 +231,13 @@ public class TFlowmeter extends BaseEntity
...
@@ -218,12 +231,13 @@ public class TFlowmeter extends BaseEntity
@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
(
"
flowmeterId"
,
getFlowmeter
Id
())
.
append
(
"
deviceId"
,
getDevice
Id
())
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"pipeId"
,
getPipeId
())
.
append
(
"pipeId"
,
getPipeId
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceAddr"
,
getDeviceAddr
())
.
append
(
"deviceAddr"
,
getDeviceAddr
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"deviceType"
,
getDeviceType
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"iotNo"
,
getIotNo
())
.
append
(
"iotNo"
,
getIotNo
())
...
...
gassafety-system/src/main/java/com/zehong/system/domain/TGasMeter.java
deleted
100644 → 0
View file @
068c6f1c
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.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 物联网燃气表对象 t_gas_meter
*
* @author zehong
* @date 2021-07-08
*/
public
class
TGasMeter
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 燃气表id */
private
Long
gasId
;
/** 企业id */
@Excel
(
name
=
"企业id"
)
private
Long
enterpriseId
;
/** 所属管道id */
@Excel
(
name
=
"所属管道id"
)
private
Long
pipeId
;
/** 名称 */
@Excel
(
name
=
"名称"
)
private
String
deviceName
;
/** 地址 */
@Excel
(
name
=
"地址"
)
private
String
deviceAddr
;
/** 型号 */
@Excel
(
name
=
"型号"
)
private
String
deviceModel
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 物联网编号 */
@Excel
(
name
=
"物联网编号"
)
private
String
iotNo
;
/** 设备图片路径 */
@Excel
(
name
=
"设备图片路径"
)
private
String
iconUrl
;
/** 联系人 */
@Excel
(
name
=
"联系人"
)
private
String
linkman
;
/** 电话 */
@Excel
(
name
=
"电话"
)
private
String
phone
;
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
installationTime
;
/** 最后巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
inspectionTime
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setGasId
(
Long
gasId
)
{
this
.
gasId
=
gasId
;
}
public
Long
getGasId
()
{
return
gasId
;
}
public
void
setEnterpriseId
(
Long
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setPipeId
(
Long
pipeId
)
{
this
.
pipeId
=
pipeId
;
}
public
Long
getPipeId
()
{
return
pipeId
;
}
public
void
setDeviceName
(
String
deviceName
)
{
this
.
deviceName
=
deviceName
;
}
public
String
getDeviceName
()
{
return
deviceName
;
}
public
void
setDeviceAddr
(
String
deviceAddr
)
{
this
.
deviceAddr
=
deviceAddr
;
}
public
String
getDeviceAddr
()
{
return
deviceAddr
;
}
public
void
setDeviceModel
(
String
deviceModel
)
{
this
.
deviceModel
=
deviceModel
;
}
public
String
getDeviceModel
()
{
return
deviceModel
;
}
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
setIotNo
(
String
iotNo
)
{
this
.
iotNo
=
iotNo
;
}
public
String
getIotNo
()
{
return
iotNo
;
}
public
void
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setLinkman
(
String
linkman
)
{
this
.
linkman
=
linkman
;
}
public
String
getLinkman
()
{
return
linkman
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setInstallationTime
(
Date
installationTime
)
{
this
.
installationTime
=
installationTime
;
}
public
Date
getInstallationTime
()
{
return
installationTime
;
}
public
void
setInspectionTime
(
Date
inspectionTime
)
{
this
.
inspectionTime
=
inspectionTime
;
}
public
Date
getInspectionTime
()
{
return
inspectionTime
;
}
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
(
"gasId"
,
getGasId
())
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"pipeId"
,
getPipeId
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceAddr"
,
getDeviceAddr
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"iotNo"
,
getIotNo
())
.
append
(
"iconUrl"
,
getIconUrl
())
.
append
(
"linkman"
,
getLinkman
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"installationTime"
,
getInstallationTime
())
.
append
(
"inspectionTime"
,
getInspectionTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/domain/T
RegulatorBox
.java
→
gassafety-system/src/main/java/com/zehong/system/domain/T
InspectionData
.java
View file @
c86c815b
package
com
.
zehong
.
system
.
domain
;
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
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
;
import
com.zehong.common.core.domain.BaseEntity
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
/**
*
调压箱对象 t_regulator_box
*
巡检记录对象 t_inspection_data
*
*
* @author zehong
* @author zehong
* @date 2021-07-0
8
* @date 2021-07-0
9
*/
*/
public
class
T
RegulatorBox
extends
BaseEntity
public
class
T
InspectionData
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
调压箱
id */
/**
巡检记录
id */
private
Long
box
Id
;
private
Long
data
Id
;
/** 企业id */
/** 巡检员id */
@Excel
(
name
=
"企业id"
)
@Excel
(
name
=
"巡检员id"
)
private
Long
enterpriseId
;
private
Long
inspectorId
;
/** 名称 */
@Excel
(
name
=
"名称"
)
private
String
deviceName
;
/** 地址 */
@Excel
(
name
=
"地址"
)
private
String
deviceAddr
;
/** 型号 */
@Excel
(
name
=
"型号"
)
private
String
deviceModel
;
/** 经度 */
/** 经度 */
@Excel
(
name
=
"经度"
)
@Excel
(
name
=
"经度"
)
...
@@ -45,76 +31,27 @@ public class TRegulatorBox extends BaseEntity
...
@@ -45,76 +31,27 @@ public class TRegulatorBox extends BaseEntity
@Excel
(
name
=
"纬度"
)
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
private
BigDecimal
latitude
;
/** 设备图片路径 */
@Excel
(
name
=
"设备图片路径"
)
private
String
iconUrl
;
/** 联系人 */
@Excel
(
name
=
"联系人"
)
private
String
linkman
;
/** 电话 */
@Excel
(
name
=
"电话"
)
private
String
phone
;
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
installationTime
;
/** 最后巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
inspectionTime
;
/** 备注 */
/** 备注 */
@Excel
(
name
=
"备注"
)
@Excel
(
name
=
"备注"
)
private
String
remarks
;
private
String
remarks
;
public
void
setBoxId
(
Long
boxId
)
public
void
setDataId
(
Long
dataId
)
{
this
.
boxId
=
boxId
;
}
public
Long
getBoxId
()
{
return
boxId
;
}
public
void
setEnterpriseId
(
Long
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setDeviceName
(
String
deviceName
)
{
this
.
deviceName
=
deviceName
;
}
public
String
getDeviceName
()
{
{
return
deviceName
;
this
.
dataId
=
dataId
;
}
public
void
setDeviceAddr
(
String
deviceAddr
)
{
this
.
deviceAddr
=
deviceAddr
;
}
}
public
String
getDeviceAddr
()
public
Long
getDataId
()
{
{
return
d
eviceAddr
;
return
d
ataId
;
}
}
public
void
set
DeviceModel
(
String
deviceModel
)
public
void
set
InspectorId
(
Long
inspectorId
)
{
{
this
.
deviceModel
=
deviceModel
;
this
.
inspectorId
=
inspectorId
;
}
}
public
String
getDeviceModel
()
public
Long
getInspectorId
()
{
{
return
deviceModel
;
return
inspectorId
;
}
}
public
void
setLongitude
(
BigDecimal
longitude
)
public
void
setLongitude
(
BigDecimal
longitude
)
{
{
...
@@ -134,51 +71,6 @@ public class TRegulatorBox extends BaseEntity
...
@@ -134,51 +71,6 @@ public class TRegulatorBox extends BaseEntity
{
{
return
latitude
;
return
latitude
;
}
}
public
void
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setLinkman
(
String
linkman
)
{
this
.
linkman
=
linkman
;
}
public
String
getLinkman
()
{
return
linkman
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setInstallationTime
(
Date
installationTime
)
{
this
.
installationTime
=
installationTime
;
}
public
Date
getInstallationTime
()
{
return
installationTime
;
}
public
void
setInspectionTime
(
Date
inspectionTime
)
{
this
.
inspectionTime
=
inspectionTime
;
}
public
Date
getInspectionTime
()
{
return
inspectionTime
;
}
public
void
setRemarks
(
String
remarks
)
public
void
setRemarks
(
String
remarks
)
{
{
this
.
remarks
=
remarks
;
this
.
remarks
=
remarks
;
...
@@ -192,18 +84,11 @@ public class TRegulatorBox extends BaseEntity
...
@@ -192,18 +84,11 @@ public class TRegulatorBox extends BaseEntity
@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
(
"boxId"
,
getBoxId
())
.
append
(
"dataId"
,
getDataId
())
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"inspectorId"
,
getInspectorId
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceAddr"
,
getDeviceAddr
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"iconUrl"
,
getIconUrl
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"linkman"
,
getLinkman
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"installationTime"
,
getInstallationTime
())
.
append
(
"inspectionTime"
,
getInspectionTime
())
.
append
(
"remarks"
,
getRemarks
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
.
toString
();
}
}
...
...
gassafety-system/src/main/java/com/zehong/system/domain/TValveWell.java
deleted
100644 → 0
View file @
068c6f1c
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.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 阀门井对象 t_valve_well
*
* @author zehong
* @date 2021-07-08
*/
public
class
TValveWell
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 阀门井id */
private
Long
wellId
;
/** 企业id */
@Excel
(
name
=
"企业id"
)
private
Long
enterpriseId
;
/** 名称 */
@Excel
(
name
=
"名称"
)
private
String
deviceName
;
/** 地址 */
@Excel
(
name
=
"地址"
)
private
String
deviceAddr
;
/** 型号 */
@Excel
(
name
=
"型号"
)
private
String
deviceModel
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 设备图片路径 */
@Excel
(
name
=
"设备图片路径"
)
private
String
iconUrl
;
/** 联系人 */
@Excel
(
name
=
"联系人"
)
private
String
linkman
;
/** 电话 */
@Excel
(
name
=
"电话"
)
private
String
phone
;
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
installationTime
;
/** 最后巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
inspectionTime
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setWellId
(
Long
wellId
)
{
this
.
wellId
=
wellId
;
}
public
Long
getWellId
()
{
return
wellId
;
}
public
void
setEnterpriseId
(
Long
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setDeviceName
(
String
deviceName
)
{
this
.
deviceName
=
deviceName
;
}
public
String
getDeviceName
()
{
return
deviceName
;
}
public
void
setDeviceAddr
(
String
deviceAddr
)
{
this
.
deviceAddr
=
deviceAddr
;
}
public
String
getDeviceAddr
()
{
return
deviceAddr
;
}
public
void
setDeviceModel
(
String
deviceModel
)
{
this
.
deviceModel
=
deviceModel
;
}
public
String
getDeviceModel
()
{
return
deviceModel
;
}
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
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setLinkman
(
String
linkman
)
{
this
.
linkman
=
linkman
;
}
public
String
getLinkman
()
{
return
linkman
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setInstallationTime
(
Date
installationTime
)
{
this
.
installationTime
=
installationTime
;
}
public
Date
getInstallationTime
()
{
return
installationTime
;
}
public
void
setInspectionTime
(
Date
inspectionTime
)
{
this
.
inspectionTime
=
inspectionTime
;
}
public
Date
getInspectionTime
()
{
return
inspectionTime
;
}
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
(
"wellId"
,
getWellId
())
.
append
(
"enterpriseId"
,
getEnterpriseId
())
.
append
(
"deviceName"
,
getDeviceName
())
.
append
(
"deviceAddr"
,
getDeviceAddr
())
.
append
(
"deviceModel"
,
getDeviceModel
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"iconUrl"
,
getIconUrl
())
.
append
(
"linkman"
,
getLinkman
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"installationTime"
,
getInstallationTime
())
.
append
(
"inspectionTime"
,
getInspectionTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafety-system/src/main/java/com/zehong/system/mapper/TDeviceInfoMapper.java
0 → 100644
View file @
c86c815b
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TDeviceInfo
;
/**
* 设备信息Mapper接口
*
* @author zehong
* @date 2021-07-09
*/
public
interface
TDeviceInfoMapper
{
/**
* 查询设备信息
*
* @param deviceId 设备信息ID
* @return 设备信息
*/
public
TDeviceInfo
selectTDeviceInfoById
(
Long
deviceId
);
/**
* 查询设备信息列表
*
* @param tDeviceInfo 设备信息
* @return 设备信息集合
*/
public
List
<
TDeviceInfo
>
selectTDeviceInfoList
(
TDeviceInfo
tDeviceInfo
);
/**
* 新增设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
public
int
insertTDeviceInfo
(
TDeviceInfo
tDeviceInfo
);
/**
* 修改设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
public
int
updateTDeviceInfo
(
TDeviceInfo
tDeviceInfo
);
/**
* 删除设备信息
*
* @param deviceId 设备信息ID
* @return 结果
*/
public
int
deleteTDeviceInfoById
(
Long
deviceId
);
/**
* 批量删除设备信息
*
* @param deviceIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTDeviceInfoByIds
(
Long
[]
deviceIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TFlowmeterMapper.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TFlowmeter
;
/**
* 流量计Mapper接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
TFlowmeterMapper
{
/**
* 查询流量计
*
* @param flowmeterId 流量计ID
* @return 流量计
*/
public
TFlowmeter
selectTFlowmeterById
(
Long
flowmeterId
);
/**
* 查询流量计列表
*
* @param tFlowmeter 流量计
* @return 流量计集合
*/
public
List
<
TFlowmeter
>
selectTFlowmeterList
(
TFlowmeter
tFlowmeter
);
/**
* 新增流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
public
int
insertTFlowmeter
(
TFlowmeter
tFlowmeter
);
/**
* 修改流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
public
int
updateTFlowmeter
(
TFlowmeter
tFlowmeter
);
/**
* 删除流量计
*
* @param flowmeterId 流量计ID
* @return 结果
*/
public
int
deleteTFlowmeterById
(
Long
flowmeterId
);
/**
* 批量删除流量计
*
* @param flowmeterIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTFlowmeterByIds
(
Long
[]
flowmeterIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TGasMeterMapper.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TGasMeter
;
/**
* 物联网燃气表Mapper接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
TGasMeterMapper
{
/**
* 查询物联网燃气表
*
* @param gasId 物联网燃气表ID
* @return 物联网燃气表
*/
public
TGasMeter
selectTGasMeterById
(
Long
gasId
);
/**
* 查询物联网燃气表列表
*
* @param tGasMeter 物联网燃气表
* @return 物联网燃气表集合
*/
public
List
<
TGasMeter
>
selectTGasMeterList
(
TGasMeter
tGasMeter
);
/**
* 新增物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
public
int
insertTGasMeter
(
TGasMeter
tGasMeter
);
/**
* 修改物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
public
int
updateTGasMeter
(
TGasMeter
tGasMeter
);
/**
* 删除物联网燃气表
*
* @param gasId 物联网燃气表ID
* @return 结果
*/
public
int
deleteTGasMeterById
(
Long
gasId
);
/**
* 批量删除物联网燃气表
*
* @param gasIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTGasMeterByIds
(
Long
[]
gasIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TInspectionDataMapper.java
0 → 100644
View file @
c86c815b
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInspectionData
;
/**
* 巡检记录Mapper接口
*
* @author zehong
* @date 2021-07-09
*/
public
interface
TInspectionDataMapper
{
/**
* 查询巡检记录
*
* @param dataId 巡检记录ID
* @return 巡检记录
*/
public
TInspectionData
selectTInspectionDataById
(
Long
dataId
);
/**
* 查询巡检记录列表
*
* @param tInspectionData 巡检记录
* @return 巡检记录集合
*/
public
List
<
TInspectionData
>
selectTInspectionDataList
(
TInspectionData
tInspectionData
);
/**
* 新增巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
public
int
insertTInspectionData
(
TInspectionData
tInspectionData
);
/**
* 修改巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
public
int
updateTInspectionData
(
TInspectionData
tInspectionData
);
/**
* 删除巡检记录
*
* @param dataId 巡检记录ID
* @return 结果
*/
public
int
deleteTInspectionDataById
(
Long
dataId
);
/**
* 批量删除巡检记录
*
* @param dataIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInspectionDataByIds
(
Long
[]
dataIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TRegulatorBoxMapper.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TRegulatorBox
;
/**
* 调压箱Mapper接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
TRegulatorBoxMapper
{
/**
* 查询调压箱
*
* @param boxId 调压箱ID
* @return 调压箱
*/
public
TRegulatorBox
selectTRegulatorBoxById
(
Long
boxId
);
/**
* 查询调压箱列表
*
* @param tRegulatorBox 调压箱
* @return 调压箱集合
*/
public
List
<
TRegulatorBox
>
selectTRegulatorBoxList
(
TRegulatorBox
tRegulatorBox
);
/**
* 新增调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
public
int
insertTRegulatorBox
(
TRegulatorBox
tRegulatorBox
);
/**
* 修改调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
public
int
updateTRegulatorBox
(
TRegulatorBox
tRegulatorBox
);
/**
* 删除调压箱
*
* @param boxId 调压箱ID
* @return 结果
*/
public
int
deleteTRegulatorBoxById
(
Long
boxId
);
/**
* 批量删除调压箱
*
* @param boxIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTRegulatorBoxByIds
(
Long
[]
boxIds
);
}
gassafety-system/src/main/java/com/zehong/system/mapper/TValveWellMapper.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TValveWell
;
/**
* 阀门井Mapper接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
TValveWellMapper
{
/**
* 查询阀门井
*
* @param wellId 阀门井ID
* @return 阀门井
*/
public
TValveWell
selectTValveWellById
(
Long
wellId
);
/**
* 查询阀门井列表
*
* @param tValveWell 阀门井
* @return 阀门井集合
*/
public
List
<
TValveWell
>
selectTValveWellList
(
TValveWell
tValveWell
);
/**
* 新增阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
public
int
insertTValveWell
(
TValveWell
tValveWell
);
/**
* 修改阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
public
int
updateTValveWell
(
TValveWell
tValveWell
);
/**
* 删除阀门井
*
* @param wellId 阀门井ID
* @return 结果
*/
public
int
deleteTValveWellById
(
Long
wellId
);
/**
* 批量删除阀门井
*
* @param wellIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTValveWellByIds
(
Long
[]
wellIds
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITDeviceInfoService.java
0 → 100644
View file @
c86c815b
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TDeviceInfo
;
/**
* 设备信息Service接口
*
* @author zehong
* @date 2021-07-09
*/
public
interface
ITDeviceInfoService
{
/**
* 查询设备信息
*
* @param deviceId 设备信息ID
* @return 设备信息
*/
public
TDeviceInfo
selectTDeviceInfoById
(
Long
deviceId
);
/**
* 查询设备信息列表
*
* @param tDeviceInfo 设备信息
* @return 设备信息集合
*/
public
List
<
TDeviceInfo
>
selectTDeviceInfoList
(
TDeviceInfo
tDeviceInfo
);
/**
* 新增设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
public
int
insertTDeviceInfo
(
TDeviceInfo
tDeviceInfo
);
/**
* 修改设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
public
int
updateTDeviceInfo
(
TDeviceInfo
tDeviceInfo
);
/**
* 批量删除设备信息
*
* @param deviceIds 需要删除的设备信息ID
* @return 结果
*/
public
int
deleteTDeviceInfoByIds
(
Long
[]
deviceIds
);
/**
* 删除设备信息信息
*
* @param deviceId 设备信息ID
* @return 结果
*/
public
int
deleteTDeviceInfoById
(
Long
deviceId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITFlowmeterService.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TFlowmeter
;
/**
* 流量计Service接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
ITFlowmeterService
{
/**
* 查询流量计
*
* @param flowmeterId 流量计ID
* @return 流量计
*/
public
TFlowmeter
selectTFlowmeterById
(
Long
flowmeterId
);
/**
* 查询流量计列表
*
* @param tFlowmeter 流量计
* @return 流量计集合
*/
public
List
<
TFlowmeter
>
selectTFlowmeterList
(
TFlowmeter
tFlowmeter
);
/**
* 新增流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
public
int
insertTFlowmeter
(
TFlowmeter
tFlowmeter
);
/**
* 修改流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
public
int
updateTFlowmeter
(
TFlowmeter
tFlowmeter
);
/**
* 批量删除流量计
*
* @param flowmeterIds 需要删除的流量计ID
* @return 结果
*/
public
int
deleteTFlowmeterByIds
(
Long
[]
flowmeterIds
);
/**
* 删除流量计信息
*
* @param flowmeterId 流量计ID
* @return 结果
*/
public
int
deleteTFlowmeterById
(
Long
flowmeterId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITGasMeterService.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TGasMeter
;
/**
* 物联网燃气表Service接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
ITGasMeterService
{
/**
* 查询物联网燃气表
*
* @param gasId 物联网燃气表ID
* @return 物联网燃气表
*/
public
TGasMeter
selectTGasMeterById
(
Long
gasId
);
/**
* 查询物联网燃气表列表
*
* @param tGasMeter 物联网燃气表
* @return 物联网燃气表集合
*/
public
List
<
TGasMeter
>
selectTGasMeterList
(
TGasMeter
tGasMeter
);
/**
* 新增物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
public
int
insertTGasMeter
(
TGasMeter
tGasMeter
);
/**
* 修改物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
public
int
updateTGasMeter
(
TGasMeter
tGasMeter
);
/**
* 批量删除物联网燃气表
*
* @param gasIds 需要删除的物联网燃气表ID
* @return 结果
*/
public
int
deleteTGasMeterByIds
(
Long
[]
gasIds
);
/**
* 删除物联网燃气表信息
*
* @param gasId 物联网燃气表ID
* @return 结果
*/
public
int
deleteTGasMeterById
(
Long
gasId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITInspectionDataService.java
0 → 100644
View file @
c86c815b
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInspectionData
;
/**
* 巡检记录Service接口
*
* @author zehong
* @date 2021-07-09
*/
public
interface
ITInspectionDataService
{
/**
* 查询巡检记录
*
* @param dataId 巡检记录ID
* @return 巡检记录
*/
public
TInspectionData
selectTInspectionDataById
(
Long
dataId
);
/**
* 查询巡检记录列表
*
* @param tInspectionData 巡检记录
* @return 巡检记录集合
*/
public
List
<
TInspectionData
>
selectTInspectionDataList
(
TInspectionData
tInspectionData
);
/**
* 新增巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
public
int
insertTInspectionData
(
TInspectionData
tInspectionData
);
/**
* 修改巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
public
int
updateTInspectionData
(
TInspectionData
tInspectionData
);
/**
* 批量删除巡检记录
*
* @param dataIds 需要删除的巡检记录ID
* @return 结果
*/
public
int
deleteTInspectionDataByIds
(
Long
[]
dataIds
);
/**
* 删除巡检记录信息
*
* @param dataId 巡检记录ID
* @return 结果
*/
public
int
deleteTInspectionDataById
(
Long
dataId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITRegulatorBoxService.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TRegulatorBox
;
/**
* 调压箱Service接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
ITRegulatorBoxService
{
/**
* 查询调压箱
*
* @param boxId 调压箱ID
* @return 调压箱
*/
public
TRegulatorBox
selectTRegulatorBoxById
(
Long
boxId
);
/**
* 查询调压箱列表
*
* @param tRegulatorBox 调压箱
* @return 调压箱集合
*/
public
List
<
TRegulatorBox
>
selectTRegulatorBoxList
(
TRegulatorBox
tRegulatorBox
);
/**
* 新增调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
public
int
insertTRegulatorBox
(
TRegulatorBox
tRegulatorBox
);
/**
* 修改调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
public
int
updateTRegulatorBox
(
TRegulatorBox
tRegulatorBox
);
/**
* 批量删除调压箱
*
* @param boxIds 需要删除的调压箱ID
* @return 结果
*/
public
int
deleteTRegulatorBoxByIds
(
Long
[]
boxIds
);
/**
* 删除调压箱信息
*
* @param boxId 调压箱ID
* @return 结果
*/
public
int
deleteTRegulatorBoxById
(
Long
boxId
);
}
gassafety-system/src/main/java/com/zehong/system/service/ITValveWellService.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TValveWell
;
/**
* 阀门井Service接口
*
* @author zehong
* @date 2021-07-08
*/
public
interface
ITValveWellService
{
/**
* 查询阀门井
*
* @param wellId 阀门井ID
* @return 阀门井
*/
public
TValveWell
selectTValveWellById
(
Long
wellId
);
/**
* 查询阀门井列表
*
* @param tValveWell 阀门井
* @return 阀门井集合
*/
public
List
<
TValveWell
>
selectTValveWellList
(
TValveWell
tValveWell
);
/**
* 新增阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
public
int
insertTValveWell
(
TValveWell
tValveWell
);
/**
* 修改阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
public
int
updateTValveWell
(
TValveWell
tValveWell
);
/**
* 批量删除阀门井
*
* @param wellIds 需要删除的阀门井ID
* @return 结果
*/
public
int
deleteTValveWellByIds
(
Long
[]
wellIds
);
/**
* 删除阀门井信息
*
* @param wellId 阀门井ID
* @return 结果
*/
public
int
deleteTValveWellById
(
Long
wellId
);
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceInfoServiceImpl.java
0 → 100644
View file @
c86c815b
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TDeviceInfoMapper
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.service.ITDeviceInfoService
;
/**
* 设备信息Service业务层处理
*
* @author zehong
* @date 2021-07-09
*/
@Service
public
class
TDeviceInfoServiceImpl
implements
ITDeviceInfoService
{
@Autowired
private
TDeviceInfoMapper
tDeviceInfoMapper
;
/**
* 查询设备信息
*
* @param deviceId 设备信息ID
* @return 设备信息
*/
@Override
public
TDeviceInfo
selectTDeviceInfoById
(
Long
deviceId
)
{
return
tDeviceInfoMapper
.
selectTDeviceInfoById
(
deviceId
);
}
/**
* 查询设备信息列表
*
* @param tDeviceInfo 设备信息
* @return 设备信息
*/
@Override
public
List
<
TDeviceInfo
>
selectTDeviceInfoList
(
TDeviceInfo
tDeviceInfo
)
{
return
tDeviceInfoMapper
.
selectTDeviceInfoList
(
tDeviceInfo
);
}
/**
* 新增设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
@Override
public
int
insertTDeviceInfo
(
TDeviceInfo
tDeviceInfo
)
{
return
tDeviceInfoMapper
.
insertTDeviceInfo
(
tDeviceInfo
);
}
/**
* 修改设备信息
*
* @param tDeviceInfo 设备信息
* @return 结果
*/
@Override
public
int
updateTDeviceInfo
(
TDeviceInfo
tDeviceInfo
)
{
return
tDeviceInfoMapper
.
updateTDeviceInfo
(
tDeviceInfo
);
}
/**
* 批量删除设备信息
*
* @param deviceIds 需要删除的设备信息ID
* @return 结果
*/
@Override
public
int
deleteTDeviceInfoByIds
(
Long
[]
deviceIds
)
{
return
tDeviceInfoMapper
.
deleteTDeviceInfoByIds
(
deviceIds
);
}
/**
* 删除设备信息信息
*
* @param deviceId 设备信息ID
* @return 结果
*/
@Override
public
int
deleteTDeviceInfoById
(
Long
deviceId
)
{
return
tDeviceInfoMapper
.
deleteTDeviceInfoById
(
deviceId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TFlowmeterServiceImpl.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TFlowmeterMapper
;
import
com.zehong.system.domain.TFlowmeter
;
import
com.zehong.system.service.ITFlowmeterService
;
/**
* 流量计Service业务层处理
*
* @author zehong
* @date 2021-07-08
*/
@Service
public
class
TFlowmeterServiceImpl
implements
ITFlowmeterService
{
@Autowired
private
TFlowmeterMapper
tFlowmeterMapper
;
/**
* 查询流量计
*
* @param flowmeterId 流量计ID
* @return 流量计
*/
@Override
public
TFlowmeter
selectTFlowmeterById
(
Long
flowmeterId
)
{
return
tFlowmeterMapper
.
selectTFlowmeterById
(
flowmeterId
);
}
/**
* 查询流量计列表
*
* @param tFlowmeter 流量计
* @return 流量计
*/
@Override
public
List
<
TFlowmeter
>
selectTFlowmeterList
(
TFlowmeter
tFlowmeter
)
{
return
tFlowmeterMapper
.
selectTFlowmeterList
(
tFlowmeter
);
}
/**
* 新增流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
@Override
public
int
insertTFlowmeter
(
TFlowmeter
tFlowmeter
)
{
return
tFlowmeterMapper
.
insertTFlowmeter
(
tFlowmeter
);
}
/**
* 修改流量计
*
* @param tFlowmeter 流量计
* @return 结果
*/
@Override
public
int
updateTFlowmeter
(
TFlowmeter
tFlowmeter
)
{
return
tFlowmeterMapper
.
updateTFlowmeter
(
tFlowmeter
);
}
/**
* 批量删除流量计
*
* @param flowmeterIds 需要删除的流量计ID
* @return 结果
*/
@Override
public
int
deleteTFlowmeterByIds
(
Long
[]
flowmeterIds
)
{
return
tFlowmeterMapper
.
deleteTFlowmeterByIds
(
flowmeterIds
);
}
/**
* 删除流量计信息
*
* @param flowmeterId 流量计ID
* @return 结果
*/
@Override
public
int
deleteTFlowmeterById
(
Long
flowmeterId
)
{
return
tFlowmeterMapper
.
deleteTFlowmeterById
(
flowmeterId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TGasMeterServiceImpl.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TGasMeterMapper
;
import
com.zehong.system.domain.TGasMeter
;
import
com.zehong.system.service.ITGasMeterService
;
/**
* 物联网燃气表Service业务层处理
*
* @author zehong
* @date 2021-07-08
*/
@Service
public
class
TGasMeterServiceImpl
implements
ITGasMeterService
{
@Autowired
private
TGasMeterMapper
tGasMeterMapper
;
/**
* 查询物联网燃气表
*
* @param gasId 物联网燃气表ID
* @return 物联网燃气表
*/
@Override
public
TGasMeter
selectTGasMeterById
(
Long
gasId
)
{
return
tGasMeterMapper
.
selectTGasMeterById
(
gasId
);
}
/**
* 查询物联网燃气表列表
*
* @param tGasMeter 物联网燃气表
* @return 物联网燃气表
*/
@Override
public
List
<
TGasMeter
>
selectTGasMeterList
(
TGasMeter
tGasMeter
)
{
return
tGasMeterMapper
.
selectTGasMeterList
(
tGasMeter
);
}
/**
* 新增物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
@Override
public
int
insertTGasMeter
(
TGasMeter
tGasMeter
)
{
return
tGasMeterMapper
.
insertTGasMeter
(
tGasMeter
);
}
/**
* 修改物联网燃气表
*
* @param tGasMeter 物联网燃气表
* @return 结果
*/
@Override
public
int
updateTGasMeter
(
TGasMeter
tGasMeter
)
{
return
tGasMeterMapper
.
updateTGasMeter
(
tGasMeter
);
}
/**
* 批量删除物联网燃气表
*
* @param gasIds 需要删除的物联网燃气表ID
* @return 结果
*/
@Override
public
int
deleteTGasMeterByIds
(
Long
[]
gasIds
)
{
return
tGasMeterMapper
.
deleteTGasMeterByIds
(
gasIds
);
}
/**
* 删除物联网燃气表信息
*
* @param gasId 物联网燃气表ID
* @return 结果
*/
@Override
public
int
deleteTGasMeterById
(
Long
gasId
)
{
return
tGasMeterMapper
.
deleteTGasMeterById
(
gasId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TInspectionDataServiceImpl.java
0 → 100644
View file @
c86c815b
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.TInspectionDataMapper
;
import
com.zehong.system.domain.TInspectionData
;
import
com.zehong.system.service.ITInspectionDataService
;
/**
* 巡检记录Service业务层处理
*
* @author zehong
* @date 2021-07-09
*/
@Service
public
class
TInspectionDataServiceImpl
implements
ITInspectionDataService
{
@Autowired
private
TInspectionDataMapper
tInspectionDataMapper
;
/**
* 查询巡检记录
*
* @param dataId 巡检记录ID
* @return 巡检记录
*/
@Override
public
TInspectionData
selectTInspectionDataById
(
Long
dataId
)
{
return
tInspectionDataMapper
.
selectTInspectionDataById
(
dataId
);
}
/**
* 查询巡检记录列表
*
* @param tInspectionData 巡检记录
* @return 巡检记录
*/
@Override
public
List
<
TInspectionData
>
selectTInspectionDataList
(
TInspectionData
tInspectionData
)
{
return
tInspectionDataMapper
.
selectTInspectionDataList
(
tInspectionData
);
}
/**
* 新增巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
@Override
public
int
insertTInspectionData
(
TInspectionData
tInspectionData
)
{
tInspectionData
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tInspectionDataMapper
.
insertTInspectionData
(
tInspectionData
);
}
/**
* 修改巡检记录
*
* @param tInspectionData 巡检记录
* @return 结果
*/
@Override
public
int
updateTInspectionData
(
TInspectionData
tInspectionData
)
{
return
tInspectionDataMapper
.
updateTInspectionData
(
tInspectionData
);
}
/**
* 批量删除巡检记录
*
* @param dataIds 需要删除的巡检记录ID
* @return 结果
*/
@Override
public
int
deleteTInspectionDataByIds
(
Long
[]
dataIds
)
{
return
tInspectionDataMapper
.
deleteTInspectionDataByIds
(
dataIds
);
}
/**
* 删除巡检记录信息
*
* @param dataId 巡检记录ID
* @return 结果
*/
@Override
public
int
deleteTInspectionDataById
(
Long
dataId
)
{
return
tInspectionDataMapper
.
deleteTInspectionDataById
(
dataId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TRegulatorBoxServiceImpl.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TRegulatorBoxMapper
;
import
com.zehong.system.domain.TRegulatorBox
;
import
com.zehong.system.service.ITRegulatorBoxService
;
/**
* 调压箱Service业务层处理
*
* @author zehong
* @date 2021-07-08
*/
@Service
public
class
TRegulatorBoxServiceImpl
implements
ITRegulatorBoxService
{
@Autowired
private
TRegulatorBoxMapper
tRegulatorBoxMapper
;
/**
* 查询调压箱
*
* @param boxId 调压箱ID
* @return 调压箱
*/
@Override
public
TRegulatorBox
selectTRegulatorBoxById
(
Long
boxId
)
{
return
tRegulatorBoxMapper
.
selectTRegulatorBoxById
(
boxId
);
}
/**
* 查询调压箱列表
*
* @param tRegulatorBox 调压箱
* @return 调压箱
*/
@Override
public
List
<
TRegulatorBox
>
selectTRegulatorBoxList
(
TRegulatorBox
tRegulatorBox
)
{
return
tRegulatorBoxMapper
.
selectTRegulatorBoxList
(
tRegulatorBox
);
}
/**
* 新增调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
@Override
public
int
insertTRegulatorBox
(
TRegulatorBox
tRegulatorBox
)
{
return
tRegulatorBoxMapper
.
insertTRegulatorBox
(
tRegulatorBox
);
}
/**
* 修改调压箱
*
* @param tRegulatorBox 调压箱
* @return 结果
*/
@Override
public
int
updateTRegulatorBox
(
TRegulatorBox
tRegulatorBox
)
{
return
tRegulatorBoxMapper
.
updateTRegulatorBox
(
tRegulatorBox
);
}
/**
* 批量删除调压箱
*
* @param boxIds 需要删除的调压箱ID
* @return 结果
*/
@Override
public
int
deleteTRegulatorBoxByIds
(
Long
[]
boxIds
)
{
return
tRegulatorBoxMapper
.
deleteTRegulatorBoxByIds
(
boxIds
);
}
/**
* 删除调压箱信息
*
* @param boxId 调压箱ID
* @return 结果
*/
@Override
public
int
deleteTRegulatorBoxById
(
Long
boxId
)
{
return
tRegulatorBoxMapper
.
deleteTRegulatorBoxById
(
boxId
);
}
}
gassafety-system/src/main/java/com/zehong/system/service/impl/TValveWellServiceImpl.java
deleted
100644 → 0
View file @
068c6f1c
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TValveWellMapper
;
import
com.zehong.system.domain.TValveWell
;
import
com.zehong.system.service.ITValveWellService
;
/**
* 阀门井Service业务层处理
*
* @author zehong
* @date 2021-07-08
*/
@Service
public
class
TValveWellServiceImpl
implements
ITValveWellService
{
@Autowired
private
TValveWellMapper
tValveWellMapper
;
/**
* 查询阀门井
*
* @param wellId 阀门井ID
* @return 阀门井
*/
@Override
public
TValveWell
selectTValveWellById
(
Long
wellId
)
{
return
tValveWellMapper
.
selectTValveWellById
(
wellId
);
}
/**
* 查询阀门井列表
*
* @param tValveWell 阀门井
* @return 阀门井
*/
@Override
public
List
<
TValveWell
>
selectTValveWellList
(
TValveWell
tValveWell
)
{
return
tValveWellMapper
.
selectTValveWellList
(
tValveWell
);
}
/**
* 新增阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
@Override
public
int
insertTValveWell
(
TValveWell
tValveWell
)
{
return
tValveWellMapper
.
insertTValveWell
(
tValveWell
);
}
/**
* 修改阀门井
*
* @param tValveWell 阀门井
* @return 结果
*/
@Override
public
int
updateTValveWell
(
TValveWell
tValveWell
)
{
return
tValveWellMapper
.
updateTValveWell
(
tValveWell
);
}
/**
* 批量删除阀门井
*
* @param wellIds 需要删除的阀门井ID
* @return 结果
*/
@Override
public
int
deleteTValveWellByIds
(
Long
[]
wellIds
)
{
return
tValveWellMapper
.
deleteTValveWellByIds
(
wellIds
);
}
/**
* 删除阀门井信息
*
* @param wellId 阀门井ID
* @return 结果
*/
@Override
public
int
deleteTValveWellById
(
Long
wellId
)
{
return
tValveWellMapper
.
deleteTValveWellById
(
wellId
);
}
}
gassafety-system/src/main/resources/mapper/system/T
Flowmeter
Mapper.xml
→
gassafety-system/src/main/resources/mapper/system/T
DeviceInfo
Mapper.xml
View file @
c86c815b
...
@@ -2,15 +2,16 @@
...
@@ -2,15 +2,16 @@
<!DOCTYPE mapper
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.T
Flowmeter
Mapper"
>
<mapper
namespace=
"com.zehong.system.mapper.T
DeviceInfo
Mapper"
>
<resultMap
type=
"T
Flowmeter"
id=
"TFlowmeter
Result"
>
<resultMap
type=
"T
DeviceInfo"
id=
"TDeviceInfo
Result"
>
<result
property=
"
flowmeterId"
column=
"flowmeter
_id"
/>
<result
property=
"
deviceId"
column=
"device
_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"pipeId"
column=
"pipe_id"
/>
<result
property=
"pipeId"
column=
"pipe_id"
/>
<result
property=
"deviceName"
column=
"device_name"
/>
<result
property=
"deviceName"
column=
"device_name"
/>
<result
property=
"deviceAddr"
column=
"device_addr"
/>
<result
property=
"deviceAddr"
column=
"device_addr"
/>
<result
property=
"deviceModel"
column=
"device_model"
/>
<result
property=
"deviceModel"
column=
"device_model"
/>
<result
property=
"deviceType"
column=
"device_type"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"iotNo"
column=
"iot_no"
/>
<result
property=
"iotNo"
column=
"iot_no"
/>
...
@@ -22,18 +23,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -22,18 +23,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"remarks"
column=
"remarks"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
</resultMap>
<sql
id=
"selectT
Flowmeter
Vo"
>
<sql
id=
"selectT
DeviceInfo
Vo"
>
select
flowmeter_id, enterprise_id, pipe_id, device_name, device_addr, device_model, longitude, latitude, iot_no, icon_url, linkman, phone, installation_time, inspection_time, remarks from t_flowmeter
select
device_id, enterprise_id, pipe_id, device_name, device_addr, device_model, device_type, longitude, latitude, iot_no, icon_url, linkman, phone, installation_time, inspection_time, remarks from t_device_info
</sql>
</sql>
<select
id=
"selectT
FlowmeterList"
parameterType=
"TFlowmeter"
resultMap=
"TFlowmeter
Result"
>
<select
id=
"selectT
DeviceInfoList"
parameterType=
"TDeviceInfo"
resultMap=
"TDeviceInfo
Result"
>
<include
refid=
"selectT
Flowmeter
Vo"
/>
<include
refid=
"selectT
DeviceInfo
Vo"
/>
<where>
<where>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"pipeId != null "
>
and pipe_id = #{pipeId}
</if>
<if
test=
"pipeId != null "
>
and pipe_id = #{pipeId}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and device_model = #{deviceModel}
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and device_model = #{deviceModel}
</if>
<if
test=
"deviceType != null and deviceType != ''"
>
and device_type = #{deviceType}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"iotNo != null and iotNo != ''"
>
and iot_no = #{iotNo}
</if>
<if
test=
"iotNo != null and iotNo != ''"
>
and iot_no = #{iotNo}
</if>
...
@@ -46,19 +48,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -46,19 +48,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</where>
</select>
</select>
<select
id=
"selectT
FlowmeterById"
parameterType=
"Long"
resultMap=
"TFlowmeter
Result"
>
<select
id=
"selectT
DeviceInfoById"
parameterType=
"Long"
resultMap=
"TDeviceInfo
Result"
>
<include
refid=
"selectT
Flowmeter
Vo"
/>
<include
refid=
"selectT
DeviceInfo
Vo"
/>
where
flowmeter_id = #{flowmeter
Id}
where
device_id = #{device
Id}
</select>
</select>
<insert
id=
"insertT
Flowmeter"
parameterType=
"TFlowmeter"
useGeneratedKeys=
"true"
keyProperty=
"flowmeter
Id"
>
<insert
id=
"insertT
DeviceInfo"
parameterType=
"TDeviceInfo"
useGeneratedKeys=
"true"
keyProperty=
"device
Id"
>
insert into t_
flowmeter
insert into t_
device_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"pipeId != null"
>
pipe_id,
</if>
<if
test=
"pipeId != null"
>
pipe_id,
</if>
<if
test=
"deviceName != null"
>
device_name,
</if>
<if
test=
"deviceName != null"
>
device_name,
</if>
<if
test=
"deviceAddr != null"
>
device_addr,
</if>
<if
test=
"deviceAddr != null"
>
device_addr,
</if>
<if
test=
"deviceModel != null"
>
device_model,
</if>
<if
test=
"deviceModel != null"
>
device_model,
</if>
<if
test=
"deviceType != null"
>
device_type,
</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=
"iotNo != null"
>
iot_no,
</if>
<if
test=
"iotNo != null"
>
iot_no,
</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=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
#{deviceAddr},
</if>
<if
test=
"deviceAddr != null"
>
#{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"deviceType != null"
>
#{deviceType},
</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=
"iotNo != null"
>
#{iotNo},
</if>
<if
test=
"iotNo != null"
>
#{iotNo},
</if>
...
@@ -87,14 +91,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -87,14 +91,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateT
Flowmeter"
parameterType=
"TFlowmeter
"
>
<update
id=
"updateT
DeviceInfo"
parameterType=
"TDeviceInfo
"
>
update t_
flowmeter
update t_
device_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"pipeId != null"
>
pipe_id = #{pipeId},
</if>
<if
test=
"pipeId != null"
>
pipe_id = #{pipeId},
</if>
<if
test=
"deviceName != null"
>
device_name = #{deviceName},
</if>
<if
test=
"deviceName != null"
>
device_name = #{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
device_addr = #{deviceAddr},
</if>
<if
test=
"deviceAddr != null"
>
device_addr = #{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
device_model = #{deviceModel},
</if>
<if
test=
"deviceModel != null"
>
device_model = #{deviceModel},
</if>
<if
test=
"deviceType != null"
>
device_type = #{deviceType},
</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=
"iotNo != null"
>
iot_no = #{iotNo},
</if>
<if
test=
"iotNo != null"
>
iot_no = #{iotNo},
</if>
...
@@ -105,17 +110,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -105,17 +110,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"inspectionTime != null"
>
inspection_time = #{inspectionTime},
</if>
<if
test=
"inspectionTime != null"
>
inspection_time = #{inspectionTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
</trim>
where
flowmeter_id = #{flowmeter
Id}
where
device_id = #{device
Id}
</update>
</update>
<delete
id=
"deleteT
Flowmeter
ById"
parameterType=
"Long"
>
<delete
id=
"deleteT
DeviceInfo
ById"
parameterType=
"Long"
>
delete from t_
flowmeter where flowmeter_id = #{flowmeter
Id}
delete from t_
device_info where device_id = #{device
Id}
</delete>
</delete>
<delete
id=
"deleteT
Flowmeter
ByIds"
parameterType=
"String"
>
<delete
id=
"deleteT
DeviceInfo
ByIds"
parameterType=
"String"
>
delete from t_
flowmeter where flowmeter
_id in
delete from t_
device_info where device
_id in
<foreach
item=
"
flowmeter
Id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"
device
Id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{
flowmeter
Id}
#{
device
Id}
</foreach>
</foreach>
</delete>
</delete>
</mapper>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TGasMeterMapper.xml
deleted
100644 → 0
View file @
068c6f1c
<?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.TGasMeterMapper"
>
<resultMap
type=
"TGasMeter"
id=
"TGasMeterResult"
>
<result
property=
"gasId"
column=
"gas_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"pipeId"
column=
"pipe_id"
/>
<result
property=
"deviceName"
column=
"device_name"
/>
<result
property=
"deviceAddr"
column=
"device_addr"
/>
<result
property=
"deviceModel"
column=
"device_model"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"iotNo"
column=
"iot_no"
/>
<result
property=
"iconUrl"
column=
"icon_url"
/>
<result
property=
"linkman"
column=
"linkman"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"installationTime"
column=
"installation_time"
/>
<result
property=
"inspectionTime"
column=
"inspection_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTGasMeterVo"
>
select gas_id, enterprise_id, pipe_id, device_name, device_addr, device_model, longitude, latitude, iot_no, icon_url, linkman, phone, installation_time, inspection_time, remarks from t_gas_meter
</sql>
<select
id=
"selectTGasMeterList"
parameterType=
"TGasMeter"
resultMap=
"TGasMeterResult"
>
<include
refid=
"selectTGasMeterVo"
/>
<where>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"pipeId != null "
>
and pipe_id = #{pipeId}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and device_model = #{deviceModel}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"iotNo != null and iotNo != ''"
>
and iot_no = #{iotNo}
</if>
<if
test=
"iconUrl != null and iconUrl != ''"
>
and icon_url = #{iconUrl}
</if>
<if
test=
"linkman != null and linkman != ''"
>
and linkman = #{linkman}
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"installationTime != null "
>
and installation_time = #{installationTime}
</if>
<if
test=
"inspectionTime != null "
>
and inspection_time = #{inspectionTime}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTGasMeterById"
parameterType=
"Long"
resultMap=
"TGasMeterResult"
>
<include
refid=
"selectTGasMeterVo"
/>
where gas_id = #{gasId}
</select>
<insert
id=
"insertTGasMeter"
parameterType=
"TGasMeter"
useGeneratedKeys=
"true"
keyProperty=
"gasId"
>
insert into t_gas_meter
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"pipeId != null"
>
pipe_id,
</if>
<if
test=
"deviceName != null"
>
device_name,
</if>
<if
test=
"deviceAddr != null"
>
device_addr,
</if>
<if
test=
"deviceModel != null"
>
device_model,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"iotNo != null"
>
iot_no,
</if>
<if
test=
"iconUrl != null"
>
icon_url,
</if>
<if
test=
"linkman != null"
>
linkman,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"installationTime != null"
>
installation_time,
</if>
<if
test=
"inspectionTime != null"
>
inspection_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
#{enterpriseId},
</if>
<if
test=
"pipeId != null"
>
#{pipeId},
</if>
<if
test=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
#{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"iotNo != null"
>
#{iotNo},
</if>
<if
test=
"iconUrl != null"
>
#{iconUrl},
</if>
<if
test=
"linkman != null"
>
#{linkman},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"installationTime != null"
>
#{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
#{inspectionTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTGasMeter"
parameterType=
"TGasMeter"
>
update t_gas_meter
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"pipeId != null"
>
pipe_id = #{pipeId},
</if>
<if
test=
"deviceName != null"
>
device_name = #{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
device_addr = #{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
device_model = #{deviceModel},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"iotNo != null"
>
iot_no = #{iotNo},
</if>
<if
test=
"iconUrl != null"
>
icon_url = #{iconUrl},
</if>
<if
test=
"linkman != null"
>
linkman = #{linkman},
</if>
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"installationTime != null"
>
installation_time = #{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
inspection_time = #{inspectionTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where gas_id = #{gasId}
</update>
<delete
id=
"deleteTGasMeterById"
parameterType=
"Long"
>
delete from t_gas_meter where gas_id = #{gasId}
</delete>
<delete
id=
"deleteTGasMeterByIds"
parameterType=
"String"
>
delete from t_gas_meter where gas_id in
<foreach
item=
"gasId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{gasId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TInspectionDataMapper.xml
0 → 100644
View file @
c86c815b
<?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.TInspectionDataMapper"
>
<resultMap
type=
"TInspectionData"
id=
"TInspectionDataResult"
>
<result
property=
"dataId"
column=
"data_id"
/>
<result
property=
"inspectorId"
column=
"inspector_id"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTInspectionDataVo"
>
select data_id, inspector_id, longitude, latitude, create_time, remarks from t_inspection_data
</sql>
<select
id=
"selectTInspectionDataList"
parameterType=
"TInspectionData"
resultMap=
"TInspectionDataResult"
>
<include
refid=
"selectTInspectionDataVo"
/>
<where>
<if
test=
"inspectorId != null "
>
and inspector_id = #{inspectorId}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTInspectionDataById"
parameterType=
"Long"
resultMap=
"TInspectionDataResult"
>
<include
refid=
"selectTInspectionDataVo"
/>
where data_id = #{dataId}
</select>
<insert
id=
"insertTInspectionData"
parameterType=
"TInspectionData"
>
insert into t_inspection_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"dataId != null"
>
data_id,
</if>
<if
test=
"inspectorId != null"
>
inspector_id,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"dataId != null"
>
#{dataId},
</if>
<if
test=
"inspectorId != null"
>
#{inspectorId},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTInspectionData"
parameterType=
"TInspectionData"
>
update t_inspection_data
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"inspectorId != null"
>
inspector_id = #{inspectorId},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where data_id = #{dataId}
</update>
<delete
id=
"deleteTInspectionDataById"
parameterType=
"Long"
>
delete from t_inspection_data where data_id = #{dataId}
</delete>
<delete
id=
"deleteTInspectionDataByIds"
parameterType=
"String"
>
delete from t_inspection_data where data_id in
<foreach
item=
"dataId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{dataId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TRegulatorBoxMapper.xml
deleted
100644 → 0
View file @
068c6f1c
<?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.TRegulatorBoxMapper"
>
<resultMap
type=
"TRegulatorBox"
id=
"TRegulatorBoxResult"
>
<result
property=
"boxId"
column=
"box_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"deviceName"
column=
"device_name"
/>
<result
property=
"deviceAddr"
column=
"device_addr"
/>
<result
property=
"deviceModel"
column=
"device_model"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"iconUrl"
column=
"icon_url"
/>
<result
property=
"linkman"
column=
"linkman"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"installationTime"
column=
"installation_time"
/>
<result
property=
"inspectionTime"
column=
"inspection_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTRegulatorBoxVo"
>
select box_id, enterprise_id, device_name, device_addr, device_model, longitude, latitude, icon_url, linkman, phone, installation_time, inspection_time, remarks from t_regulator_box
</sql>
<select
id=
"selectTRegulatorBoxList"
parameterType=
"TRegulatorBox"
resultMap=
"TRegulatorBoxResult"
>
<include
refid=
"selectTRegulatorBoxVo"
/>
<where>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and device_model = #{deviceModel}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"iconUrl != null and iconUrl != ''"
>
and icon_url = #{iconUrl}
</if>
<if
test=
"linkman != null and linkman != ''"
>
and linkman = #{linkman}
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"installationTime != null "
>
and installation_time = #{installationTime}
</if>
<if
test=
"inspectionTime != null "
>
and inspection_time = #{inspectionTime}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTRegulatorBoxById"
parameterType=
"Long"
resultMap=
"TRegulatorBoxResult"
>
<include
refid=
"selectTRegulatorBoxVo"
/>
where box_id = #{boxId}
</select>
<insert
id=
"insertTRegulatorBox"
parameterType=
"TRegulatorBox"
useGeneratedKeys=
"true"
keyProperty=
"boxId"
>
insert into t_regulator_box
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"deviceName != null"
>
device_name,
</if>
<if
test=
"deviceAddr != null"
>
device_addr,
</if>
<if
test=
"deviceModel != null"
>
device_model,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"iconUrl != null"
>
icon_url,
</if>
<if
test=
"linkman != null"
>
linkman,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"installationTime != null"
>
installation_time,
</if>
<if
test=
"inspectionTime != null"
>
inspection_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
#{enterpriseId},
</if>
<if
test=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
#{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"iconUrl != null"
>
#{iconUrl},
</if>
<if
test=
"linkman != null"
>
#{linkman},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"installationTime != null"
>
#{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
#{inspectionTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTRegulatorBox"
parameterType=
"TRegulatorBox"
>
update t_regulator_box
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"deviceName != null"
>
device_name = #{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
device_addr = #{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
device_model = #{deviceModel},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"iconUrl != null"
>
icon_url = #{iconUrl},
</if>
<if
test=
"linkman != null"
>
linkman = #{linkman},
</if>
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"installationTime != null"
>
installation_time = #{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
inspection_time = #{inspectionTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where box_id = #{boxId}
</update>
<delete
id=
"deleteTRegulatorBoxById"
parameterType=
"Long"
>
delete from t_regulator_box where box_id = #{boxId}
</delete>
<delete
id=
"deleteTRegulatorBoxByIds"
parameterType=
"String"
>
delete from t_regulator_box where box_id in
<foreach
item=
"boxId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{boxId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-system/src/main/resources/mapper/system/TValveWellMapper.xml
deleted
100644 → 0
View file @
068c6f1c
<?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.TValveWellMapper"
>
<resultMap
type=
"TValveWell"
id=
"TValveWellResult"
>
<result
property=
"wellId"
column=
"well_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"deviceName"
column=
"device_name"
/>
<result
property=
"deviceAddr"
column=
"device_addr"
/>
<result
property=
"deviceModel"
column=
"device_model"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"iconUrl"
column=
"icon_url"
/>
<result
property=
"linkman"
column=
"linkman"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"installationTime"
column=
"installation_time"
/>
<result
property=
"inspectionTime"
column=
"inspection_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTValveWellVo"
>
select well_id, enterprise_id, device_name, device_addr, device_model, longitude, latitude, icon_url, linkman, phone, installation_time, inspection_time, remarks from t_valve_well
</sql>
<select
id=
"selectTValveWellList"
parameterType=
"TValveWell"
resultMap=
"TValveWellResult"
>
<include
refid=
"selectTValveWellVo"
/>
<where>
<if
test=
"enterpriseId != null "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceModel != null and deviceModel != ''"
>
and device_model = #{deviceModel}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"iconUrl != null and iconUrl != ''"
>
and icon_url = #{iconUrl}
</if>
<if
test=
"linkman != null and linkman != ''"
>
and linkman = #{linkman}
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"installationTime != null "
>
and installation_time = #{installationTime}
</if>
<if
test=
"inspectionTime != null "
>
and inspection_time = #{inspectionTime}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTValveWellById"
parameterType=
"Long"
resultMap=
"TValveWellResult"
>
<include
refid=
"selectTValveWellVo"
/>
where well_id = #{wellId}
</select>
<insert
id=
"insertTValveWell"
parameterType=
"TValveWell"
useGeneratedKeys=
"true"
keyProperty=
"wellId"
>
insert into t_valve_well
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"deviceName != null"
>
device_name,
</if>
<if
test=
"deviceAddr != null"
>
device_addr,
</if>
<if
test=
"deviceModel != null"
>
device_model,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"iconUrl != null"
>
icon_url,
</if>
<if
test=
"linkman != null"
>
linkman,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"installationTime != null"
>
installation_time,
</if>
<if
test=
"inspectionTime != null"
>
inspection_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
#{enterpriseId},
</if>
<if
test=
"deviceName != null"
>
#{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
#{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
#{deviceModel},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"iconUrl != null"
>
#{iconUrl},
</if>
<if
test=
"linkman != null"
>
#{linkman},
</if>
<if
test=
"phone != null"
>
#{phone},
</if>
<if
test=
"installationTime != null"
>
#{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
#{inspectionTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTValveWell"
parameterType=
"TValveWell"
>
update t_valve_well
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"deviceName != null"
>
device_name = #{deviceName},
</if>
<if
test=
"deviceAddr != null"
>
device_addr = #{deviceAddr},
</if>
<if
test=
"deviceModel != null"
>
device_model = #{deviceModel},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"iconUrl != null"
>
icon_url = #{iconUrl},
</if>
<if
test=
"linkman != null"
>
linkman = #{linkman},
</if>
<if
test=
"phone != null"
>
phone = #{phone},
</if>
<if
test=
"installationTime != null"
>
installation_time = #{installationTime},
</if>
<if
test=
"inspectionTime != null"
>
inspection_time = #{inspectionTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where well_id = #{wellId}
</update>
<delete
id=
"deleteTValveWellById"
parameterType=
"Long"
>
delete from t_valve_well where well_id = #{wellId}
</delete>
<delete
id=
"deleteTValveWellByIds"
parameterType=
"String"
>
delete from t_valve_well where well_id in
<foreach
item=
"wellId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{wellId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafety-web/src/api/
system/gasMeter
.js
→
gassafety-web/src/api/
device/deviceInfo
.js
View file @
c86c815b
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询
物联网燃气表
列表
// 查询
设备信息
列表
export
function
list
GasMeter
(
query
)
{
export
function
list
DeviceInfo
(
query
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter
/list'
,
url
:
'/
device/deviceInfo
/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
// 查询
物联网燃气表
详细
// 查询
设备信息
详细
export
function
get
GasMeter
(
gas
Id
)
{
export
function
get
DeviceInfo
(
device
Id
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter/'
+
gas
Id
,
url
:
'/
device/deviceInfo/'
+
device
Id
,
method
:
'get'
method
:
'get'
})
})
}
}
// 新增
物联网燃气表
// 新增
设备信息
export
function
add
GasMeter
(
data
)
{
export
function
add
DeviceInfo
(
data
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter
'
,
url
:
'/
device/deviceInfo
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
}
}
// 修改
物联网燃气表
// 修改
设备信息
export
function
update
GasMeter
(
data
)
{
export
function
update
DeviceInfo
(
data
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter
'
,
url
:
'/
device/deviceInfo
'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
}
}
// 删除
物联网燃气表
// 删除
设备信息
export
function
del
GasMeter
(
gas
Id
)
{
export
function
del
DeviceInfo
(
device
Id
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter/'
+
gas
Id
,
url
:
'/
device/deviceInfo/'
+
device
Id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
// 导出
物联网燃气表
// 导出
设备信息
export
function
export
GasMeter
(
query
)
{
export
function
export
DeviceInfo
(
query
)
{
return
request
({
return
request
({
url
:
'/
system/gasMeter
/export'
,
url
:
'/
device/deviceInfo
/export'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
gassafety-web/src/api/
system/flowmeter
.js
→
gassafety-web/src/api/
device/inspectionData
.js
View file @
c86c815b
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询
流量计
列表
// 查询
巡检记录
列表
export
function
list
Flowmeter
(
query
)
{
export
function
list
InspectionData
(
query
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter
/list'
,
url
:
'/
device/inspectionData
/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
// 查询
流量计
详细
// 查询
巡检记录
详细
export
function
get
Flowmeter
(
flowmeter
Id
)
{
export
function
get
InspectionData
(
data
Id
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter/'
+
flowmeter
Id
,
url
:
'/
device/inspectionData/'
+
data
Id
,
method
:
'get'
method
:
'get'
})
})
}
}
// 新增
流量计
// 新增
巡检记录
export
function
add
Flowmeter
(
data
)
{
export
function
add
InspectionData
(
data
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter
'
,
url
:
'/
device/inspectionData
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
}
}
// 修改
流量计
// 修改
巡检记录
export
function
update
Flowmeter
(
data
)
{
export
function
update
InspectionData
(
data
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter
'
,
url
:
'/
device/inspectionData
'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
}
}
// 删除
流量计
// 删除
巡检记录
export
function
del
Flowmeter
(
flowmeter
Id
)
{
export
function
del
InspectionData
(
data
Id
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter/'
+
flowmeter
Id
,
url
:
'/
device/inspectionData/'
+
data
Id
,
method
:
'delete'
method
:
'delete'
})
})
}
}
// 导出
流量计
// 导出
巡检记录
export
function
export
Flowmeter
(
query
)
{
export
function
export
InspectionData
(
query
)
{
return
request
({
return
request
({
url
:
'/
system/flowmeter
/export'
,
url
:
'/
device/inspectionData
/export'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
gassafety-web/src/api/
system
/inspector.js
→
gassafety-web/src/api/
device
/inspector.js
View file @
c86c815b
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询巡检员列表
// 查询巡检员列表
export
function
listInspector
(
query
)
{
export
function
listInspector
(
query
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector/list'
,
url
:
'/
device
/inspector/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
@@ -12,7 +12,7 @@ export function listInspector(query) {
...
@@ -12,7 +12,7 @@ export function listInspector(query) {
// 查询巡检员详细
// 查询巡检员详细
export
function
getInspector
(
inspectorId
)
{
export
function
getInspector
(
inspectorId
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector/'
+
inspectorId
,
url
:
'/
device
/inspector/'
+
inspectorId
,
method
:
'get'
method
:
'get'
})
})
}
}
...
@@ -20,7 +20,7 @@ export function getInspector(inspectorId) {
...
@@ -20,7 +20,7 @@ export function getInspector(inspectorId) {
// 新增巡检员
// 新增巡检员
export
function
addInspector
(
data
)
{
export
function
addInspector
(
data
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector'
,
url
:
'/
device
/inspector'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
@@ -29,7 +29,7 @@ export function addInspector(data) {
...
@@ -29,7 +29,7 @@ export function addInspector(data) {
// 修改巡检员
// 修改巡检员
export
function
updateInspector
(
data
)
{
export
function
updateInspector
(
data
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector'
,
url
:
'/
device
/inspector'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
...
@@ -38,7 +38,7 @@ export function updateInspector(data) {
...
@@ -38,7 +38,7 @@ export function updateInspector(data) {
// 删除巡检员
// 删除巡检员
export
function
delInspector
(
inspectorId
)
{
export
function
delInspector
(
inspectorId
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector/'
+
inspectorId
,
url
:
'/
device
/inspector/'
+
inspectorId
,
method
:
'delete'
method
:
'delete'
})
})
}
}
...
@@ -46,7 +46,7 @@ export function delInspector(inspectorId) {
...
@@ -46,7 +46,7 @@ export function delInspector(inspectorId) {
// 导出巡检员
// 导出巡检员
export
function
exportInspector
(
query
)
{
export
function
exportInspector
(
query
)
{
return
request
({
return
request
({
url
:
'/
system
/inspector/export'
,
url
:
'/
device
/inspector/export'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
gassafety-web/src/api/
system
/pipe.js
→
gassafety-web/src/api/
device
/pipe.js
View file @
c86c815b
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询管道信息列表
// 查询管道信息列表
export
function
listPipe
(
query
)
{
export
function
listPipe
(
query
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe/list'
,
url
:
'/
device
/pipe/list'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
@@ -12,7 +12,7 @@ export function listPipe(query) {
...
@@ -12,7 +12,7 @@ export function listPipe(query) {
// 查询管道信息详细
// 查询管道信息详细
export
function
getPipe
(
pipeId
)
{
export
function
getPipe
(
pipeId
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe/'
+
pipeId
,
url
:
'/
device
/pipe/'
+
pipeId
,
method
:
'get'
method
:
'get'
})
})
}
}
...
@@ -20,7 +20,7 @@ export function getPipe(pipeId) {
...
@@ -20,7 +20,7 @@ export function getPipe(pipeId) {
// 新增管道信息
// 新增管道信息
export
function
addPipe
(
data
)
{
export
function
addPipe
(
data
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe'
,
url
:
'/
device
/pipe'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
@@ -29,7 +29,7 @@ export function addPipe(data) {
...
@@ -29,7 +29,7 @@ export function addPipe(data) {
// 修改管道信息
// 修改管道信息
export
function
updatePipe
(
data
)
{
export
function
updatePipe
(
data
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe'
,
url
:
'/
device
/pipe'
,
method
:
'put'
,
method
:
'put'
,
data
:
data
data
:
data
})
})
...
@@ -38,7 +38,7 @@ export function updatePipe(data) {
...
@@ -38,7 +38,7 @@ export function updatePipe(data) {
// 删除管道信息
// 删除管道信息
export
function
delPipe
(
pipeId
)
{
export
function
delPipe
(
pipeId
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe/'
+
pipeId
,
url
:
'/
device
/pipe/'
+
pipeId
,
method
:
'delete'
method
:
'delete'
})
})
}
}
...
@@ -46,7 +46,7 @@ export function delPipe(pipeId) {
...
@@ -46,7 +46,7 @@ export function delPipe(pipeId) {
// 导出管道信息
// 导出管道信息
export
function
exportPipe
(
query
)
{
export
function
exportPipe
(
query
)
{
return
request
({
return
request
({
url
:
'/
system
/pipe/export'
,
url
:
'/
device
/pipe/export'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
...
...
gassafety-web/src/api/system/regulatorBox.js
deleted
100644 → 0
View file @
068c6f1c
import
request
from
'@/utils/request'
// 查询调压箱列表
export
function
listRegulatorBox
(
query
)
{
return
request
({
url
:
'/system/regulatorBox/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询调压箱详细
export
function
getRegulatorBox
(
boxId
)
{
return
request
({
url
:
'/system/regulatorBox/'
+
boxId
,
method
:
'get'
})
}
// 新增调压箱
export
function
addRegulatorBox
(
data
)
{
return
request
({
url
:
'/system/regulatorBox'
,
method
:
'post'
,
data
:
data
})
}
// 修改调压箱
export
function
updateRegulatorBox
(
data
)
{
return
request
({
url
:
'/system/regulatorBox'
,
method
:
'put'
,
data
:
data
})
}
// 删除调压箱
export
function
delRegulatorBox
(
boxId
)
{
return
request
({
url
:
'/system/regulatorBox/'
+
boxId
,
method
:
'delete'
})
}
// 导出调压箱
export
function
exportRegulatorBox
(
query
)
{
return
request
({
url
:
'/system/regulatorBox/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/api/system/valveWell.js
deleted
100644 → 0
View file @
068c6f1c
import
request
from
'@/utils/request'
// 查询阀门井列表
export
function
listValveWell
(
query
)
{
return
request
({
url
:
'/system/valveWell/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询阀门井详细
export
function
getValveWell
(
wellId
)
{
return
request
({
url
:
'/system/valveWell/'
+
wellId
,
method
:
'get'
})
}
// 新增阀门井
export
function
addValveWell
(
data
)
{
return
request
({
url
:
'/system/valveWell'
,
method
:
'post'
,
data
:
data
})
}
// 修改阀门井
export
function
updateValveWell
(
data
)
{
return
request
({
url
:
'/system/valveWell'
,
method
:
'put'
,
data
:
data
})
}
// 删除阀门井
export
function
delValveWell
(
wellId
)
{
return
request
({
url
:
'/system/valveWell/'
+
wellId
,
method
:
'delete'
})
}
// 导出阀门井
export
function
exportValveWell
(
query
)
{
return
request
({
url
:
'/system/valveWell/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafety-web/src/views/device/deviceInfo/index.vue
0 → 100644
View file @
c86c815b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"设备名称"
prop=
"deviceName"
>
<el-input
v-model=
"queryParams.deviceName"
placeholder=
"请输入设备名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"设备型号"
prop=
"deviceModel"
>
<el-input
v-model=
"queryParams.deviceModel"
placeholder=
"请输入设备型号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"设备类型"
prop=
"deviceType"
>
<el-select
v-model=
"queryParams.deviceType"
placeholder=
"请选择设备类型"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item
label=
"物联网编号"
prop=
"iotNo"
>
<el-input
v-model=
"queryParams.iotNo"
placeholder=
"请输入物联网编号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['device:deviceInfo:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['device:deviceInfo:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['device:deviceInfo:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['device:deviceInfo:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"deviceInfoList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"所属管道"
align=
"center"
prop=
"pipeId"
/>
<el-table-column
label=
"设备名称"
align=
"center"
prop=
"deviceName"
/>
<el-table-column
label=
"所在地址"
align=
"center"
prop=
"deviceAddr"
/>
<el-table-column
label=
"设备型号"
align=
"center"
prop=
"deviceModel"
/>
<el-table-column
label=
"设备类型"
align=
"center"
prop=
"deviceType"
/>
<el-table-column
label=
"物联网编号"
align=
"center"
prop=
"iotNo"
/>
<el-table-column
label=
"安装时间"
align=
"center"
prop=
"installationTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
installationTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"最后巡检时间"
align
=
"center"
prop
=
"inspectionTime"
width
=
"180"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
inspectionTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['device:deviceInfo:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['device:deviceInfo:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改设备信息对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"企业id"
prop
=
"enterpriseId"
>
<
el
-
input
v
-
model
=
"form.enterpriseId"
placeholder
=
"请输入企业id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"所属管道id"
prop
=
"pipeId"
>
<
el
-
input
v
-
model
=
"form.pipeId"
placeholder
=
"请输入所属管道id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备名称"
prop
=
"deviceName"
>
<
el
-
input
v
-
model
=
"form.deviceName"
placeholder
=
"请输入设备名称"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"所在地址"
prop
=
"deviceAddr"
>
<
el
-
input
v
-
model
=
"form.deviceAddr"
placeholder
=
"请输入所在地址"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备型号"
prop
=
"deviceModel"
>
<
el
-
input
v
-
model
=
"form.deviceModel"
placeholder
=
"请输入设备型号"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备类型"
prop
=
"deviceType"
>
<
el
-
select
v
-
model
=
"form.deviceType"
placeholder
=
"请选择设备类型"
>
<
el
-
option
label
=
"请选择字典生成"
value
=
""
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"经度"
prop
=
"longitude"
>
<
el
-
input
v
-
model
=
"form.longitude"
placeholder
=
"请输入经度"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"纬度"
prop
=
"latitude"
>
<
el
-
input
v
-
model
=
"form.latitude"
placeholder
=
"请输入纬度"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"物联网编号"
prop
=
"iotNo"
>
<
el
-
input
v
-
model
=
"form.iotNo"
placeholder
=
"请输入物联网编号"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备图片路径"
prop
=
"iconUrl"
>
<
el
-
input
v
-
model
=
"form.iconUrl"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"联系人"
prop
=
"linkman"
>
<
el
-
input
v
-
model
=
"form.linkman"
placeholder
=
"请输入联系人"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"电话"
prop
=
"phone"
>
<
el
-
input
v
-
model
=
"form.phone"
placeholder
=
"请输入电话"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"安装时间"
prop
=
"installationTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.installationTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择安装时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"最后巡检时间"
prop
=
"inspectionTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.inspectionTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择最后巡检时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listDeviceInfo
,
getDeviceInfo
,
delDeviceInfo
,
addDeviceInfo
,
updateDeviceInfo
,
exportDeviceInfo
}
from
"@/api/device/deviceInfo"
;
export
default
{
name
:
"DeviceInfo"
,
components
:
{
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 设备信息表格数据
deviceInfoList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseId
:
null
,
pipeId
:
null
,
deviceName
:
null
,
deviceAddr
:
null
,
deviceModel
:
null
,
deviceType
:
null
,
longitude
:
null
,
latitude
:
null
,
iotNo
:
null
,
iconUrl
:
null
,
linkman
:
null
,
phone
:
null
,
installationTime
:
null
,
inspectionTime
:
null
,
remarks
:
null
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询设备信息列表 */
getList
()
{
this
.
loading
=
true
;
listDeviceInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
deviceInfoList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
deviceId
:
null
,
enterpriseId
:
null
,
pipeId
:
null
,
deviceName
:
null
,
deviceAddr
:
null
,
deviceModel
:
null
,
deviceType
:
null
,
longitude
:
null
,
latitude
:
null
,
iotNo
:
null
,
iconUrl
:
null
,
linkman
:
null
,
phone
:
null
,
installationTime
:
null
,
inspectionTime
:
null
,
remarks
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
deviceId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加设备信息"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
deviceId
=
row
.
deviceId
||
this
.
ids
getDeviceInfo
(
deviceId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改设备信息"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
updateDeviceInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addDeviceInfo
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
deviceIds
=
row
.
deviceId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除设备信息编号为"'
+
deviceIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delDeviceInfo
(
deviceIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有设备信息数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportDeviceInfo
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/script
>
gassafety-web/src/views/device/inspectionData/index.vue
0 → 100644
View file @
c86c815b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"queryParams.longitude"
placeholder=
"请输入经度"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"queryParams.latitude"
placeholder=
"请输入纬度"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"queryParams.remarks"
placeholder=
"请输入备注"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['device:inspectionData:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"inspectionDataList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
/>
<el-table-column
label=
"巡检员"
align=
"center"
prop=
"inspectorId"
/>
<el-table-column
label=
"经度"
align=
"center"
prop=
"longitude"
/>
<el-table-column
label=
"纬度"
align=
"center"
prop=
"latitude"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['device:inspectionData:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['device:inspectionData:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改巡检记录对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"巡检员id"
prop=
"inspectorId"
>
<el-input
v-model=
"form.inspectorId"
placeholder=
"请输入巡检员id"
/>
</el-form-item>
<el-form-item
label=
"经度"
prop=
"longitude"
>
<el-input
v-model=
"form.longitude"
placeholder=
"请输入经度"
/>
</el-form-item>
<el-form-item
label=
"纬度"
prop=
"latitude"
>
<el-input
v-model=
"form.latitude"
placeholder=
"请输入纬度"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
placeholder=
"请输入备注"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listInspectionData
,
getInspectionData
,
delInspectionData
,
addInspectionData
,
updateInspectionData
,
exportInspectionData
}
from
"@/api/device/inspectionData"
;
export
default
{
name
:
"InspectionData"
,
components
:
{
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 巡检记录表格数据
inspectionDataList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
inspectorId
:
null
,
longitude
:
null
,
latitude
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询巡检记录列表 */
getList
()
{
this
.
loading
=
true
;
listInspectionData
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inspectionDataList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
dataId
:
null
,
inspectorId
:
null
,
longitude
:
null
,
latitude
:
null
,
createTime
:
null
,
remarks
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
dataId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加巡检记录"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
dataId
=
row
.
dataId
||
this
.
ids
getInspectionData
(
dataId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改巡检记录"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
dataId
!=
null
)
{
updateInspectionData
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addInspectionData
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
dataIds
=
row
.
dataId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除巡检记录编号为"'
+
dataIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delInspectionData
(
dataIds
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有巡检记录数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportInspectionData
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
}
};
</
script
>
gassafety-web/src/views/device/inspector/index.vue
0 → 100644
View file @
c86c815b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"姓名"
prop=
"name"
>
<el-input
v-model=
"queryParams.name"
placeholder=
"请输入姓名"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"phone"
>
<el-input
v-model=
"queryParams.phone"
placeholder=
"请输入电话"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['device:inspector:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['device:inspector:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['device:inspector:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['device:inspector:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"inspectorList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
/>
<el-table-column
label=
"企业"
align=
"center"
prop=
"enterpriseId"
/>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"电话"
align=
"center"
prop=
"phone"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remarks"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['device:inspector:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['device:inspector:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改巡检员对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"企业id"
prop=
"enterpriseId"
>
<el-input
v-model=
"form.enterpriseId"
placeholder=
"请输入企业id"
/>
</el-form-item>
<el-form-item
label=
"姓名"
prop=
"name"
>
<el-input
v-model=
"form.name"
placeholder=
"请输入姓名"
/>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"phone"
>
<el-input
v-model=
"form.phone"
placeholder=
"请输入电话"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model=
"form.remarks"
placeholder=
"请输入备注"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listInspector
,
getInspector
,
delInspector
,
addInspector
,
updateInspector
,
exportInspector
}
from
"@/api/device/inspector"
;
export
default
{
name
:
"Inspector"
,
components
:
{
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 巡检员表格数据
inspectorList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseId
:
null
,
name
:
null
,
phone
:
null
,
remarks
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询巡检员列表 */
getList
()
{
this
.
loading
=
true
;
listInspector
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inspectorList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
inspectorId
:
null
,
enterpriseId
:
null
,
name
:
null
,
phone
:
null
,
remarks
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
inspectorId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加巡检员"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
inspectorId
=
row
.
inspectorId
||
this
.
ids
getInspector
(
inspectorId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改巡检员"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
inspectorId
!=
null
)
{
updateInspector
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addInspector
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
inspectorIds
=
row
.
inspectorId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除巡检员编号为"'
+
inspectorIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delInspector
(
inspectorIds
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有巡检员数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportInspector
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
}
};
</
script
>
gassafety-web/src/views/device/pipe/index.vue
0 → 100644
View file @
c86c815b
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"管道名称"
prop=
"pipeName"
>
<el-input
v-model=
"queryParams.pipeName"
placeholder=
"请输入管道名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"管道类型"
prop=
"pipeType"
>
<el-select
v-model=
"queryParams.pipeType"
placeholder=
"请选择管道类型"
clearable
size=
"small"
>
<el-option
label=
"请选择字典生成"
value=
""
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['device:pipe:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['device:pipe:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['device:pipe:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['device:pipe:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"pipeList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"管道名称"
align=
"center"
prop=
"pipeName"
/>
<el-table-column
label=
"管道所在地址"
align=
"center"
prop=
"pipeAddr"
/>
<el-table-column
label=
"坐标"
align=
"center"
prop=
"coordinates"
/>
<el-table-column
label=
"管道长度"
align=
"center"
prop=
"pipeLength"
/>
<el-table-column
label=
"管道类型"
align=
"center"
prop=
"pipeType"
/>
<el-table-column
label=
"管道压力"
align=
"center"
prop=
"pipePressure"
/>
<el-table-column
label=
"安装时间"
align=
"center"
prop=
"installationTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
installationTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"最后巡检时间"
align
=
"center"
prop
=
"inspectionTime"
width
=
"180"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
inspectionTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['device:pipe:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['device:pipe:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改管道信息对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"企业id"
prop
=
"enterpriseId"
>
<
el
-
input
v
-
model
=
"form.enterpriseId"
placeholder
=
"请输入企业id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"管道名称"
prop
=
"pipeName"
>
<
el
-
input
v
-
model
=
"form.pipeName"
placeholder
=
"请输入管道名称"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"管道所在地址"
prop
=
"pipeAddr"
>
<
el
-
input
v
-
model
=
"form.pipeAddr"
placeholder
=
"请输入管道所在地址"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"坐标"
prop
=
"coordinates"
>
<
el
-
input
v
-
model
=
"form.coordinates"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"管道长度"
prop
=
"pipeLength"
>
<
el
-
input
v
-
model
=
"form.pipeLength"
placeholder
=
"请输入管道长度"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"管道类型"
prop
=
"pipeType"
>
<
el
-
select
v
-
model
=
"form.pipeType"
placeholder
=
"请选择管道类型"
>
<
el
-
option
label
=
"请选择字典生成"
value
=
""
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"管道压力"
prop
=
"pipePressure"
>
<
el
-
input
v
-
model
=
"form.pipePressure"
placeholder
=
"请输入管道压力"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备图片路径"
prop
=
"iconUrl"
>
<
el
-
input
v
-
model
=
"form.iconUrl"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"安装时间"
prop
=
"installationTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.installationTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择安装时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"最后巡检时间"
prop
=
"inspectionTime"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.inspectionTime"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择最后巡检时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remarks"
>
<
el
-
input
v
-
model
=
"form.remarks"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listPipe
,
getPipe
,
delPipe
,
addPipe
,
updatePipe
,
exportPipe
}
from
"@/api/device/pipe"
;
export
default
{
name
:
"Pipe"
,
components
:
{
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 管道信息表格数据
pipeList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
enterpriseId
:
null
,
pipeName
:
null
,
pipeAddr
:
null
,
coordinates
:
null
,
pipeLength
:
null
,
pipeType
:
null
,
pipePressure
:
null
,
iconUrl
:
null
,
installationTime
:
null
,
inspectionTime
:
null
,
remarks
:
null
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询管道信息列表 */
getList
()
{
this
.
loading
=
true
;
listPipe
(
this
.
queryParams
).
then
(
response
=>
{
this
.
pipeList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
pipeId
:
null
,
enterpriseId
:
null
,
pipeName
:
null
,
pipeAddr
:
null
,
coordinates
:
null
,
pipeLength
:
null
,
pipeType
:
null
,
pipePressure
:
null
,
iconUrl
:
null
,
installationTime
:
null
,
inspectionTime
:
null
,
remarks
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
pipeId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加管道信息"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
pipeId
=
row
.
pipeId
||
this
.
ids
getPipe
(
pipeId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改管道信息"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
pipeId
!=
null
)
{
updatePipe
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addPipe
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
pipeIds
=
row
.
pipeId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除管道信息编号为"'
+
pipeIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delPipe
(
pipeIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有管道信息数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportPipe
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/script
>
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