Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
41232d08
Commit
41232d08
authored
May 15, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检车任务
parent
590441e1
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
3071 additions
and
2 deletions
+3071
-2
TCarController.java
...in/java/com/zehong/web/controller/car/TCarController.java
+96
-0
TCarTaskController.java
...ava/com/zehong/web/controller/car/TCarTaskController.java
+96
-0
TCarTaskInspectController.java
.../zehong/web/controller/car/TCarTaskInspectController.java
+102
-0
TCarTaskPointController.java
...om/zehong/web/controller/car/TCarTaskPointController.java
+102
-0
TCar.java
...n-system/src/main/java/com/zehong/system/domain/TCar.java
+94
-0
TCarTask.java
...stem/src/main/java/com/zehong/system/domain/TCarTask.java
+145
-0
TCarTaskInspect.java
...c/main/java/com/zehong/system/domain/TCarTaskInspect.java
+137
-0
TCarTaskPoint.java
...src/main/java/com/zehong/system/domain/TCarTaskPoint.java
+152
-0
TCarMapper.java
...em/src/main/java/com/zehong/system/mapper/TCarMapper.java
+61
-0
TCarTaskInspectMapper.java
.../java/com/zehong/system/mapper/TCarTaskInspectMapper.java
+61
-0
TCarTaskMapper.java
...rc/main/java/com/zehong/system/mapper/TCarTaskMapper.java
+61
-0
TCarTaskPointMapper.java
...in/java/com/zehong/system/mapper/TCarTaskPointMapper.java
+61
-0
ITCarService.java
...src/main/java/com/zehong/system/service/ITCarService.java
+61
-0
ITCarTaskInspectService.java
...va/com/zehong/system/service/ITCarTaskInspectService.java
+61
-0
ITCarTaskPointService.java
...java/com/zehong/system/service/ITCarTaskPointService.java
+61
-0
ITCarTaskService.java
...main/java/com/zehong/system/service/ITCarTaskService.java
+61
-0
TCarServiceImpl.java
.../java/com/zehong/system/service/impl/TCarServiceImpl.java
+95
-0
TCarTaskInspectServiceImpl.java
...ehong/system/service/impl/TCarTaskInspectServiceImpl.java
+95
-0
TCarTaskPointServiceImpl.java
.../zehong/system/service/impl/TCarTaskPointServiceImpl.java
+95
-0
TCarTaskServiceImpl.java
...a/com/zehong/system/service/impl/TCarTaskServiceImpl.java
+95
-0
TCarMapper.xml
...in-system/src/main/resources/mapper/system/TCarMapper.xml
+75
-0
TCarTaskInspectMapper.xml
...rc/main/resources/mapper/system/TCarTaskInspectMapper.xml
+90
-0
TCarTaskMapper.xml
...ystem/src/main/resources/mapper/system/TCarTaskMapper.xml
+100
-0
TCarTaskPointMapper.xml
.../src/main/resources/mapper/system/TCarTaskPointMapper.xml
+95
-0
car.js
huaxin-web/src/api/car/car.js
+53
-0
inspect.js
huaxin-web/src/api/car/inspect.js
+62
-0
point.js
huaxin-web/src/api/car/point.js
+61
-0
task.js
huaxin-web/src/api/car/task.js
+53
-0
map.js
huaxin-web/src/utils/mapClass/map.js
+2
-2
TrackInfo.vue
huaxin-web/src/views/car/task/components/TrackInfo.vue
+176
-0
leakPoint.vue
huaxin-web/src/views/car/task/components/leakPoint.vue
+180
-0
index.vue
huaxin-web/src/views/car/task/index.vue
+332
-0
No files found.
huaxin-admin/src/main/java/com/zehong/web/controller/car/TCarController.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
web
.
controller
.
car
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TCar
;
import
com.zehong.system.service.ITCarService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 巡检车Controller
*
* @author zehong
* @date 2026-05-15
*/
@RestController
@RequestMapping
(
"/car/info"
)
public
class
TCarController
extends
BaseController
{
@Autowired
private
ITCarService
tCarService
;
/**
* 查询巡检车列表
*/
//@PreAuthorize("@ss.hasPermi('system:car:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TCar
tCar
)
{
startPage
();
List
<
TCar
>
list
=
tCarService
.
selectTCarList
(
tCar
);
return
getDataTable
(
list
);
}
/**
* 导出巡检车列表
*/
//@PreAuthorize("@ss.hasPermi('system:car:export')")
@Log
(
title
=
"巡检车"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TCar
tCar
)
{
List
<
TCar
>
list
=
tCarService
.
selectTCarList
(
tCar
);
ExcelUtil
<
TCar
>
util
=
new
ExcelUtil
<
TCar
>(
TCar
.
class
);
return
util
.
exportExcel
(
list
,
"巡检车数据"
);
}
/**
* 获取巡检车详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:car:query')")
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
tCarService
.
selectTCarById
(
id
));
}
/**
* 新增巡检车
*/
//@PreAuthorize("@ss.hasPermi('system:car:add')")
@Log
(
title
=
"巡检车"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TCar
tCar
)
{
return
toAjax
(
tCarService
.
insertTCar
(
tCar
));
}
/**
* 修改巡检车
*/
//@PreAuthorize("@ss.hasPermi('system:car:edit')")
@Log
(
title
=
"巡检车"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TCar
tCar
)
{
return
toAjax
(
tCarService
.
updateTCar
(
tCar
));
}
/**
* 删除巡检车
*/
//@PreAuthorize("@ss.hasPermi('system:car:remove')")
@Log
(
title
=
"巡检车"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
tCarService
.
deleteTCarByIds
(
ids
));
}
}
huaxin-admin/src/main/java/com/zehong/web/controller/car/TCarTaskController.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
web
.
controller
.
car
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TCarTask
;
import
com.zehong.system.service.ITCarTaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 巡检车任务Controller
*
* @author zehong
* @date 2026-05-15
*/
@RestController
@RequestMapping
(
"/car/task"
)
public
class
TCarTaskController
extends
BaseController
{
@Autowired
private
ITCarTaskService
tCarTaskService
;
/**
* 查询巡检车任务列表
*/
//@PreAuthorize("@ss.hasPermi('system:task:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TCarTask
tCarTask
)
{
startPage
();
List
<
TCarTask
>
list
=
tCarTaskService
.
selectTCarTaskList
(
tCarTask
);
return
getDataTable
(
list
);
}
/**
* 导出巡检车任务列表
*/
//@PreAuthorize("@ss.hasPermi('system:task:export')")
@Log
(
title
=
"巡检车任务"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TCarTask
tCarTask
)
{
List
<
TCarTask
>
list
=
tCarTaskService
.
selectTCarTaskList
(
tCarTask
);
ExcelUtil
<
TCarTask
>
util
=
new
ExcelUtil
<
TCarTask
>(
TCarTask
.
class
);
return
util
.
exportExcel
(
list
,
"巡检车任务数据"
);
}
/**
* 获取巡检车任务详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:task:query')")
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
tCarTaskService
.
selectTCarTaskById
(
id
));
}
/**
* 新增巡检车任务
*/
//@PreAuthorize("@ss.hasPermi('system:task:add')")
@Log
(
title
=
"巡检车任务"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TCarTask
tCarTask
)
{
return
toAjax
(
tCarTaskService
.
insertTCarTask
(
tCarTask
));
}
/**
* 修改巡检车任务
*/
//@PreAuthorize("@ss.hasPermi('system:task:edit')")
@Log
(
title
=
"巡检车任务"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TCarTask
tCarTask
)
{
return
toAjax
(
tCarTaskService
.
updateTCarTask
(
tCarTask
));
}
/**
* 删除巡检车任务
*/
//@PreAuthorize("@ss.hasPermi('system:task:remove')")
@Log
(
title
=
"巡检车任务"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
tCarTaskService
.
deleteTCarTaskByIds
(
ids
));
}
}
huaxin-admin/src/main/java/com/zehong/web/controller/car/TCarTaskInspectController.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
web
.
controller
.
car
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TCarTaskInspect
;
import
com.zehong.system.service.ITCarTaskInspectService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 巡检车打卡Controller
*
* @author zehong
* @date 2026-05-15
*/
@RestController
@RequestMapping
(
"/car/inspect"
)
public
class
TCarTaskInspectController
extends
BaseController
{
@Autowired
private
ITCarTaskInspectService
tCarTaskInspectService
;
/**
* 查询巡检车打卡列表
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TCarTaskInspect
tCarTaskInspect
)
{
startPage
();
List
<
TCarTaskInspect
>
list
=
tCarTaskInspectService
.
selectTCarTaskInspectList
(
tCarTaskInspect
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/inspectListInfo"
)
public
AjaxResult
inspectListInfo
(
TCarTaskInspect
tCarTaskInspect
)
{
List
<
TCarTaskInspect
>
list
=
tCarTaskInspectService
.
selectTCarTaskInspectList
(
tCarTaskInspect
);
return
AjaxResult
.
success
(
list
);
}
/**
* 导出巡检车打卡列表
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:export')")
@Log
(
title
=
"巡检车打卡"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TCarTaskInspect
tCarTaskInspect
)
{
List
<
TCarTaskInspect
>
list
=
tCarTaskInspectService
.
selectTCarTaskInspectList
(
tCarTaskInspect
);
ExcelUtil
<
TCarTaskInspect
>
util
=
new
ExcelUtil
<
TCarTaskInspect
>(
TCarTaskInspect
.
class
);
return
util
.
exportExcel
(
list
,
"巡检车打卡数据"
);
}
/**
* 获取巡检车打卡详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:query')")
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
tCarTaskInspectService
.
selectTCarTaskInspectById
(
id
));
}
/**
* 新增巡检车打卡
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:add')")
@Log
(
title
=
"巡检车打卡"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TCarTaskInspect
tCarTaskInspect
)
{
return
toAjax
(
tCarTaskInspectService
.
insertTCarTaskInspect
(
tCarTaskInspect
));
}
/**
* 修改巡检车打卡
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:edit')")
@Log
(
title
=
"巡检车打卡"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TCarTaskInspect
tCarTaskInspect
)
{
return
toAjax
(
tCarTaskInspectService
.
updateTCarTaskInspect
(
tCarTaskInspect
));
}
/**
* 删除巡检车打卡
*/
//@PreAuthorize("@ss.hasPermi('system:inspect:remove')")
@Log
(
title
=
"巡检车打卡"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
tCarTaskInspectService
.
deleteTCarTaskInspectByIds
(
ids
));
}
}
huaxin-admin/src/main/java/com/zehong/web/controller/car/TCarTaskPointController.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
web
.
controller
.
car
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TCarTaskPoint
;
import
com.zehong.system.service.ITCarTaskPointService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 泄漏点Controller
*
* @author zehong
* @date 2026-05-15
*/
@RestController
@RequestMapping
(
"/car/point"
)
public
class
TCarTaskPointController
extends
BaseController
{
@Autowired
private
ITCarTaskPointService
tCarTaskPointService
;
/**
* 查询泄漏点列表
*/
//@PreAuthorize("@ss.hasPermi('system:point:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TCarTaskPoint
tCarTaskPoint
)
{
startPage
();
List
<
TCarTaskPoint
>
list
=
tCarTaskPointService
.
selectTCarTaskPointList
(
tCarTaskPoint
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/pointInfoList"
)
public
AjaxResult
pointInfoList
(
TCarTaskPoint
tCarTaskPoint
)
{
List
<
TCarTaskPoint
>
list
=
tCarTaskPointService
.
selectTCarTaskPointList
(
tCarTaskPoint
);
return
AjaxResult
.
success
(
list
);
}
/**
* 导出泄漏点列表
*/
//@PreAuthorize("@ss.hasPermi('system:point:export')")
@Log
(
title
=
"泄漏点"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TCarTaskPoint
tCarTaskPoint
)
{
List
<
TCarTaskPoint
>
list
=
tCarTaskPointService
.
selectTCarTaskPointList
(
tCarTaskPoint
);
ExcelUtil
<
TCarTaskPoint
>
util
=
new
ExcelUtil
<
TCarTaskPoint
>(
TCarTaskPoint
.
class
);
return
util
.
exportExcel
(
list
,
"泄漏点数据"
);
}
/**
* 获取泄漏点详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:point:query')")
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
AjaxResult
.
success
(
tCarTaskPointService
.
selectTCarTaskPointById
(
id
));
}
/**
* 新增泄漏点
*/
//@PreAuthorize("@ss.hasPermi('system:point:add')")
@Log
(
title
=
"泄漏点"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TCarTaskPoint
tCarTaskPoint
)
{
return
toAjax
(
tCarTaskPointService
.
insertTCarTaskPoint
(
tCarTaskPoint
));
}
/**
* 修改泄漏点
*/
//@PreAuthorize("@ss.hasPermi('system:point:edit')")
@Log
(
title
=
"泄漏点"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TCarTaskPoint
tCarTaskPoint
)
{
return
toAjax
(
tCarTaskPointService
.
updateTCarTaskPoint
(
tCarTaskPoint
));
}
/**
* 删除泄漏点
*/
//@PreAuthorize("@ss.hasPermi('system:point:remove')")
@Log
(
title
=
"泄漏点"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
tCarTaskPointService
.
deleteTCarTaskPointByIds
(
ids
));
}
}
huaxin-system/src/main/java/com/zehong/system/domain/TCar.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
domain
;
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_car
*
* @author zehong
* @date 2026-05-15
*/
public
class
TCar
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
id
;
/** 巡检车名称 */
@Excel
(
name
=
"巡检车名称"
)
private
String
title
;
/** 巡检车编号 */
@Excel
(
name
=
"巡检车编号"
)
private
String
number
;
/** 创建人 */
@Excel
(
name
=
"创建人"
)
private
Long
adminId
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getNumber
()
{
return
number
;
}
public
void
setAdminId
(
Long
adminId
)
{
this
.
adminId
=
adminId
;
}
public
Long
getAdminId
()
{
return
adminId
;
}
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
(
"id"
,
getId
())
.
append
(
"title"
,
getTitle
())
.
append
(
"number"
,
getNumber
())
.
append
(
"adminId"
,
getAdminId
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
huaxin-system/src/main/java/com/zehong/system/domain/TCarTask.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 巡检车任务对象 t_car_task
*
* @author zehong
* @date 2026-05-15
*/
public
class
TCarTask
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
id
;
/** 任务名称 */
@Excel
(
name
=
"任务名称"
)
private
String
title
;
/** 任务描述 */
@Excel
(
name
=
"任务描述"
)
private
String
describe
;
/** 巡检车id */
private
Integer
carId
;
@Excel
(
name
=
"巡检车"
)
private
String
carName
;
/** 巡检日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"巡检日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
taskDate
;
/** 创建人 */
private
Long
adminId
;
@Excel
(
name
=
"创建人"
)
private
String
creator
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setDescribe
(
String
describe
)
{
this
.
describe
=
describe
;
}
public
String
getDescribe
()
{
return
describe
;
}
public
void
setCarId
(
Integer
carId
)
{
this
.
carId
=
carId
;
}
public
Integer
getCarId
()
{
return
carId
;
}
public
void
setTaskDate
(
Date
taskDate
)
{
this
.
taskDate
=
taskDate
;
}
public
Date
getTaskDate
()
{
return
taskDate
;
}
public
void
setAdminId
(
Long
adminId
)
{
this
.
adminId
=
adminId
;
}
public
Long
getAdminId
()
{
return
adminId
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
public
String
getCarName
()
{
return
carName
;
}
public
void
setCarName
(
String
carName
)
{
this
.
carName
=
carName
;
}
public
String
getCreator
()
{
return
creator
;
}
public
void
setCreator
(
String
creator
)
{
this
.
creator
=
creator
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"title"
,
getTitle
())
.
append
(
"describe"
,
getDescribe
())
.
append
(
"carId"
,
getCarId
())
.
append
(
"taskDate"
,
getTaskDate
())
.
append
(
"adminId"
,
getAdminId
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
huaxin-system/src/main/java/com/zehong/system/domain/TCarTaskInspect.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 巡检车打卡对象 t_car_task_inspect
*
* @author zehong
* @date 2026-05-15
*/
public
class
TCarTaskInspect
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
id
;
/** 任务id */
@Excel
(
name
=
"任务id"
)
private
Long
taskId
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 速度 */
@Excel
(
name
=
"速度"
)
private
Long
speed
;
/** 角度 */
@Excel
(
name
=
"角度"
)
private
Long
angle
;
/** 甲烷,单位ppm */
@Excel
(
name
=
"甲烷,单位ppm"
)
private
Long
ch4
;
/** 乙烷,单位ppb */
@Excel
(
name
=
"乙烷,单位ppb"
)
private
Long
c2h6
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setTaskId
(
Long
taskId
)
{
this
.
taskId
=
taskId
;
}
public
Long
getTaskId
()
{
return
taskId
;
}
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
setSpeed
(
Long
speed
)
{
this
.
speed
=
speed
;
}
public
Long
getSpeed
()
{
return
speed
;
}
public
void
setAngle
(
Long
angle
)
{
this
.
angle
=
angle
;
}
public
Long
getAngle
()
{
return
angle
;
}
public
void
setCh4
(
Long
ch4
)
{
this
.
ch4
=
ch4
;
}
public
Long
getCh4
()
{
return
ch4
;
}
public
void
setC2h6
(
Long
c2h6
)
{
this
.
c2h6
=
c2h6
;
}
public
Long
getC2h6
()
{
return
c2h6
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"taskId"
,
getTaskId
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"speed"
,
getSpeed
())
.
append
(
"angle"
,
getAngle
())
.
append
(
"ch4"
,
getCh4
())
.
append
(
"c2h6"
,
getC2h6
())
.
append
(
"createTime"
,
getCreateTime
())
.
toString
();
}
}
huaxin-system/src/main/java/com/zehong/system/domain/TCarTaskPoint.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
domain
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.math.BigDecimal
;
/**
* 泄漏点对象 t_car_task_point
*
* @author zehong
* @date 2026-05-15
*/
public
class
TCarTaskPoint
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
id
;
/** 任务id */
@Excel
(
name
=
"任务id"
)
private
Long
taskId
;
/** 巡检车经度 */
@Excel
(
name
=
"巡检车经度"
)
private
BigDecimal
longitude1
;
/** 巡检车纬度 */
@Excel
(
name
=
"巡检车纬度"
)
private
BigDecimal
latitude1
;
/** 推测泄漏点经度 */
@Excel
(
name
=
"推测泄漏点经度"
)
private
BigDecimal
longitude2
;
/** 推测泄漏点纬度 */
@Excel
(
name
=
"推测泄漏点纬度"
)
private
BigDecimal
latitude2
;
/** 甲烷谷值,单位ppm */
@Excel
(
name
=
"甲烷谷值,单位ppm"
)
private
Float
ch41
;
/** 甲烷峰值,单位ppm */
@Excel
(
name
=
"甲烷峰值,单位ppm"
)
private
Float
ch42
;
/** 乙烷,单位ppb */
@Excel
(
name
=
"乙烷,单位ppb"
)
private
Float
c2h6
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setTaskId
(
Long
taskId
)
{
this
.
taskId
=
taskId
;
}
public
Long
getTaskId
()
{
return
taskId
;
}
public
void
setLongitude1
(
BigDecimal
longitude1
)
{
this
.
longitude1
=
longitude1
;
}
public
BigDecimal
getLongitude1
()
{
return
longitude1
;
}
public
void
setLatitude1
(
BigDecimal
latitude1
)
{
this
.
latitude1
=
latitude1
;
}
public
BigDecimal
getLatitude1
()
{
return
latitude1
;
}
public
void
setLongitude2
(
BigDecimal
longitude2
)
{
this
.
longitude2
=
longitude2
;
}
public
BigDecimal
getLongitude2
()
{
return
longitude2
;
}
public
void
setLatitude2
(
BigDecimal
latitude2
)
{
this
.
latitude2
=
latitude2
;
}
public
BigDecimal
getLatitude2
()
{
return
latitude2
;
}
public
void
setCh41
(
Float
ch41
)
{
this
.
ch41
=
ch41
;
}
public
Float
getCh41
()
{
return
ch41
;
}
public
void
setCh42
(
float
ch42
)
{
this
.
ch42
=
ch42
;
}
public
Float
getCh42
()
{
return
ch42
;
}
public
void
setC2h6
(
Float
c2h6
)
{
this
.
c2h6
=
c2h6
;
}
public
Float
getC2h6
()
{
return
c2h6
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"taskId"
,
getTaskId
())
.
append
(
"longitude1"
,
getLongitude1
())
.
append
(
"latitude1"
,
getLatitude1
())
.
append
(
"longitude2"
,
getLongitude2
())
.
append
(
"latitude2"
,
getLatitude2
())
.
append
(
"ch41"
,
getCh41
())
.
append
(
"ch42"
,
getCh42
())
.
append
(
"c2h6"
,
getC2h6
())
.
append
(
"createTime"
,
getCreateTime
())
.
toString
();
}
}
huaxin-system/src/main/java/com/zehong/system/mapper/TCarMapper.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TCar
;
/**
* 巡检车Mapper接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
TCarMapper
{
/**
* 查询巡检车
*
* @param id 巡检车ID
* @return 巡检车
*/
public
TCar
selectTCarById
(
Long
id
);
/**
* 查询巡检车列表
*
* @param tCar 巡检车
* @return 巡检车集合
*/
public
List
<
TCar
>
selectTCarList
(
TCar
tCar
);
/**
* 新增巡检车
*
* @param tCar 巡检车
* @return 结果
*/
public
int
insertTCar
(
TCar
tCar
);
/**
* 修改巡检车
*
* @param tCar 巡检车
* @return 结果
*/
public
int
updateTCar
(
TCar
tCar
);
/**
* 删除巡检车
*
* @param id 巡检车ID
* @return 结果
*/
public
int
deleteTCarById
(
Long
id
);
/**
* 批量删除巡检车
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public
int
deleteTCarByIds
(
Long
[]
ids
);
}
huaxin-system/src/main/java/com/zehong/system/mapper/TCarTaskInspectMapper.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTaskInspect
;
/**
* 巡检车打卡Mapper接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
TCarTaskInspectMapper
{
/**
* 查询巡检车打卡
*
* @param id 巡检车打卡ID
* @return 巡检车打卡
*/
public
TCarTaskInspect
selectTCarTaskInspectById
(
Long
id
);
/**
* 查询巡检车打卡列表
*
* @param tCarTaskInspect 巡检车打卡
* @return 巡检车打卡集合
*/
public
List
<
TCarTaskInspect
>
selectTCarTaskInspectList
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 新增巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
public
int
insertTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 修改巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
public
int
updateTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 删除巡检车打卡
*
* @param id 巡检车打卡ID
* @return 结果
*/
public
int
deleteTCarTaskInspectById
(
Long
id
);
/**
* 批量删除巡检车打卡
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public
int
deleteTCarTaskInspectByIds
(
Long
[]
ids
);
}
huaxin-system/src/main/java/com/zehong/system/mapper/TCarTaskMapper.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTask
;
/**
* 巡检车任务Mapper接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
TCarTaskMapper
{
/**
* 查询巡检车任务
*
* @param id 巡检车任务ID
* @return 巡检车任务
*/
public
TCarTask
selectTCarTaskById
(
Long
id
);
/**
* 查询巡检车任务列表
*
* @param tCarTask 巡检车任务
* @return 巡检车任务集合
*/
public
List
<
TCarTask
>
selectTCarTaskList
(
TCarTask
tCarTask
);
/**
* 新增巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
public
int
insertTCarTask
(
TCarTask
tCarTask
);
/**
* 修改巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
public
int
updateTCarTask
(
TCarTask
tCarTask
);
/**
* 删除巡检车任务
*
* @param id 巡检车任务ID
* @return 结果
*/
public
int
deleteTCarTaskById
(
Long
id
);
/**
* 批量删除巡检车任务
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public
int
deleteTCarTaskByIds
(
Long
[]
ids
);
}
huaxin-system/src/main/java/com/zehong/system/mapper/TCarTaskPointMapper.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTaskPoint
;
/**
* 泄漏点Mapper接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
TCarTaskPointMapper
{
/**
* 查询泄漏点
*
* @param id 泄漏点ID
* @return 泄漏点
*/
public
TCarTaskPoint
selectTCarTaskPointById
(
Long
id
);
/**
* 查询泄漏点列表
*
* @param tCarTaskPoint 泄漏点
* @return 泄漏点集合
*/
public
List
<
TCarTaskPoint
>
selectTCarTaskPointList
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 新增泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
public
int
insertTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 修改泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
public
int
updateTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 删除泄漏点
*
* @param id 泄漏点ID
* @return 结果
*/
public
int
deleteTCarTaskPointById
(
Long
id
);
/**
* 批量删除泄漏点
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public
int
deleteTCarTaskPointByIds
(
Long
[]
ids
);
}
huaxin-system/src/main/java/com/zehong/system/service/ITCarService.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TCar
;
/**
* 巡检车Service接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
ITCarService
{
/**
* 查询巡检车
*
* @param id 巡检车ID
* @return 巡检车
*/
public
TCar
selectTCarById
(
Long
id
);
/**
* 查询巡检车列表
*
* @param tCar 巡检车
* @return 巡检车集合
*/
public
List
<
TCar
>
selectTCarList
(
TCar
tCar
);
/**
* 新增巡检车
*
* @param tCar 巡检车
* @return 结果
*/
public
int
insertTCar
(
TCar
tCar
);
/**
* 修改巡检车
*
* @param tCar 巡检车
* @return 结果
*/
public
int
updateTCar
(
TCar
tCar
);
/**
* 批量删除巡检车
*
* @param ids 需要删除的巡检车ID
* @return 结果
*/
public
int
deleteTCarByIds
(
Long
[]
ids
);
/**
* 删除巡检车信息
*
* @param id 巡检车ID
* @return 结果
*/
public
int
deleteTCarById
(
Long
id
);
}
huaxin-system/src/main/java/com/zehong/system/service/ITCarTaskInspectService.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTaskInspect
;
/**
* 巡检车打卡Service接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
ITCarTaskInspectService
{
/**
* 查询巡检车打卡
*
* @param id 巡检车打卡ID
* @return 巡检车打卡
*/
public
TCarTaskInspect
selectTCarTaskInspectById
(
Long
id
);
/**
* 查询巡检车打卡列表
*
* @param tCarTaskInspect 巡检车打卡
* @return 巡检车打卡集合
*/
public
List
<
TCarTaskInspect
>
selectTCarTaskInspectList
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 新增巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
public
int
insertTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 修改巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
public
int
updateTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
);
/**
* 批量删除巡检车打卡
*
* @param ids 需要删除的巡检车打卡ID
* @return 结果
*/
public
int
deleteTCarTaskInspectByIds
(
Long
[]
ids
);
/**
* 删除巡检车打卡信息
*
* @param id 巡检车打卡ID
* @return 结果
*/
public
int
deleteTCarTaskInspectById
(
Long
id
);
}
huaxin-system/src/main/java/com/zehong/system/service/ITCarTaskPointService.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTaskPoint
;
/**
* 泄漏点Service接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
ITCarTaskPointService
{
/**
* 查询泄漏点
*
* @param id 泄漏点ID
* @return 泄漏点
*/
public
TCarTaskPoint
selectTCarTaskPointById
(
Long
id
);
/**
* 查询泄漏点列表
*
* @param tCarTaskPoint 泄漏点
* @return 泄漏点集合
*/
public
List
<
TCarTaskPoint
>
selectTCarTaskPointList
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 新增泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
public
int
insertTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 修改泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
public
int
updateTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
);
/**
* 批量删除泄漏点
*
* @param ids 需要删除的泄漏点ID
* @return 结果
*/
public
int
deleteTCarTaskPointByIds
(
Long
[]
ids
);
/**
* 删除泄漏点信息
*
* @param id 泄漏点ID
* @return 结果
*/
public
int
deleteTCarTaskPointById
(
Long
id
);
}
huaxin-system/src/main/java/com/zehong/system/service/ITCarTaskService.java
0 → 100644
View file @
41232d08
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TCarTask
;
/**
* 巡检车任务Service接口
*
* @author zehong
* @date 2026-05-15
*/
public
interface
ITCarTaskService
{
/**
* 查询巡检车任务
*
* @param id 巡检车任务ID
* @return 巡检车任务
*/
public
TCarTask
selectTCarTaskById
(
Long
id
);
/**
* 查询巡检车任务列表
*
* @param tCarTask 巡检车任务
* @return 巡检车任务集合
*/
public
List
<
TCarTask
>
selectTCarTaskList
(
TCarTask
tCarTask
);
/**
* 新增巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
public
int
insertTCarTask
(
TCarTask
tCarTask
);
/**
* 修改巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
public
int
updateTCarTask
(
TCarTask
tCarTask
);
/**
* 批量删除巡检车任务
*
* @param ids 需要删除的巡检车任务ID
* @return 结果
*/
public
int
deleteTCarTaskByIds
(
Long
[]
ids
);
/**
* 删除巡检车任务信息
*
* @param id 巡检车任务ID
* @return 结果
*/
public
int
deleteTCarTaskById
(
Long
id
);
}
huaxin-system/src/main/java/com/zehong/system/service/impl/TCarServiceImpl.java
0 → 100644
View file @
41232d08
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.TCarMapper
;
import
com.zehong.system.domain.TCar
;
import
com.zehong.system.service.ITCarService
;
/**
* 巡检车Service业务层处理
*
* @author zehong
* @date 2026-05-15
*/
@Service
public
class
TCarServiceImpl
implements
ITCarService
{
@Autowired
private
TCarMapper
tCarMapper
;
/**
* 查询巡检车
*
* @param id 巡检车ID
* @return 巡检车
*/
@Override
public
TCar
selectTCarById
(
Long
id
)
{
return
tCarMapper
.
selectTCarById
(
id
);
}
/**
* 查询巡检车列表
*
* @param tCar 巡检车
* @return 巡检车
*/
@Override
public
List
<
TCar
>
selectTCarList
(
TCar
tCar
)
{
return
tCarMapper
.
selectTCarList
(
tCar
);
}
/**
* 新增巡检车
*
* @param tCar 巡检车
* @return 结果
*/
@Override
public
int
insertTCar
(
TCar
tCar
)
{
tCar
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tCarMapper
.
insertTCar
(
tCar
);
}
/**
* 修改巡检车
*
* @param tCar 巡检车
* @return 结果
*/
@Override
public
int
updateTCar
(
TCar
tCar
)
{
return
tCarMapper
.
updateTCar
(
tCar
);
}
/**
* 批量删除巡检车
*
* @param ids 需要删除的巡检车ID
* @return 结果
*/
@Override
public
int
deleteTCarByIds
(
Long
[]
ids
)
{
return
tCarMapper
.
deleteTCarByIds
(
ids
);
}
/**
* 删除巡检车信息
*
* @param id 巡检车ID
* @return 结果
*/
@Override
public
int
deleteTCarById
(
Long
id
)
{
return
tCarMapper
.
deleteTCarById
(
id
);
}
}
huaxin-system/src/main/java/com/zehong/system/service/impl/TCarTaskInspectServiceImpl.java
0 → 100644
View file @
41232d08
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.TCarTaskInspectMapper
;
import
com.zehong.system.domain.TCarTaskInspect
;
import
com.zehong.system.service.ITCarTaskInspectService
;
/**
* 巡检车打卡Service业务层处理
*
* @author zehong
* @date 2026-05-15
*/
@Service
public
class
TCarTaskInspectServiceImpl
implements
ITCarTaskInspectService
{
@Autowired
private
TCarTaskInspectMapper
tCarTaskInspectMapper
;
/**
* 查询巡检车打卡
*
* @param id 巡检车打卡ID
* @return 巡检车打卡
*/
@Override
public
TCarTaskInspect
selectTCarTaskInspectById
(
Long
id
)
{
return
tCarTaskInspectMapper
.
selectTCarTaskInspectById
(
id
);
}
/**
* 查询巡检车打卡列表
*
* @param tCarTaskInspect 巡检车打卡
* @return 巡检车打卡
*/
@Override
public
List
<
TCarTaskInspect
>
selectTCarTaskInspectList
(
TCarTaskInspect
tCarTaskInspect
)
{
return
tCarTaskInspectMapper
.
selectTCarTaskInspectList
(
tCarTaskInspect
);
}
/**
* 新增巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
@Override
public
int
insertTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
)
{
tCarTaskInspect
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tCarTaskInspectMapper
.
insertTCarTaskInspect
(
tCarTaskInspect
);
}
/**
* 修改巡检车打卡
*
* @param tCarTaskInspect 巡检车打卡
* @return 结果
*/
@Override
public
int
updateTCarTaskInspect
(
TCarTaskInspect
tCarTaskInspect
)
{
return
tCarTaskInspectMapper
.
updateTCarTaskInspect
(
tCarTaskInspect
);
}
/**
* 批量删除巡检车打卡
*
* @param ids 需要删除的巡检车打卡ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskInspectByIds
(
Long
[]
ids
)
{
return
tCarTaskInspectMapper
.
deleteTCarTaskInspectByIds
(
ids
);
}
/**
* 删除巡检车打卡信息
*
* @param id 巡检车打卡ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskInspectById
(
Long
id
)
{
return
tCarTaskInspectMapper
.
deleteTCarTaskInspectById
(
id
);
}
}
huaxin-system/src/main/java/com/zehong/system/service/impl/TCarTaskPointServiceImpl.java
0 → 100644
View file @
41232d08
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.TCarTaskPointMapper
;
import
com.zehong.system.domain.TCarTaskPoint
;
import
com.zehong.system.service.ITCarTaskPointService
;
/**
* 泄漏点Service业务层处理
*
* @author zehong
* @date 2026-05-15
*/
@Service
public
class
TCarTaskPointServiceImpl
implements
ITCarTaskPointService
{
@Autowired
private
TCarTaskPointMapper
tCarTaskPointMapper
;
/**
* 查询泄漏点
*
* @param id 泄漏点ID
* @return 泄漏点
*/
@Override
public
TCarTaskPoint
selectTCarTaskPointById
(
Long
id
)
{
return
tCarTaskPointMapper
.
selectTCarTaskPointById
(
id
);
}
/**
* 查询泄漏点列表
*
* @param tCarTaskPoint 泄漏点
* @return 泄漏点
*/
@Override
public
List
<
TCarTaskPoint
>
selectTCarTaskPointList
(
TCarTaskPoint
tCarTaskPoint
)
{
return
tCarTaskPointMapper
.
selectTCarTaskPointList
(
tCarTaskPoint
);
}
/**
* 新增泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
@Override
public
int
insertTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
)
{
tCarTaskPoint
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tCarTaskPointMapper
.
insertTCarTaskPoint
(
tCarTaskPoint
);
}
/**
* 修改泄漏点
*
* @param tCarTaskPoint 泄漏点
* @return 结果
*/
@Override
public
int
updateTCarTaskPoint
(
TCarTaskPoint
tCarTaskPoint
)
{
return
tCarTaskPointMapper
.
updateTCarTaskPoint
(
tCarTaskPoint
);
}
/**
* 批量删除泄漏点
*
* @param ids 需要删除的泄漏点ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskPointByIds
(
Long
[]
ids
)
{
return
tCarTaskPointMapper
.
deleteTCarTaskPointByIds
(
ids
);
}
/**
* 删除泄漏点信息
*
* @param id 泄漏点ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskPointById
(
Long
id
)
{
return
tCarTaskPointMapper
.
deleteTCarTaskPointById
(
id
);
}
}
huaxin-system/src/main/java/com/zehong/system/service/impl/TCarTaskServiceImpl.java
0 → 100644
View file @
41232d08
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.TCarTaskMapper
;
import
com.zehong.system.domain.TCarTask
;
import
com.zehong.system.service.ITCarTaskService
;
/**
* 巡检车任务Service业务层处理
*
* @author zehong
* @date 2026-05-15
*/
@Service
public
class
TCarTaskServiceImpl
implements
ITCarTaskService
{
@Autowired
private
TCarTaskMapper
tCarTaskMapper
;
/**
* 查询巡检车任务
*
* @param id 巡检车任务ID
* @return 巡检车任务
*/
@Override
public
TCarTask
selectTCarTaskById
(
Long
id
)
{
return
tCarTaskMapper
.
selectTCarTaskById
(
id
);
}
/**
* 查询巡检车任务列表
*
* @param tCarTask 巡检车任务
* @return 巡检车任务
*/
@Override
public
List
<
TCarTask
>
selectTCarTaskList
(
TCarTask
tCarTask
)
{
return
tCarTaskMapper
.
selectTCarTaskList
(
tCarTask
);
}
/**
* 新增巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
@Override
public
int
insertTCarTask
(
TCarTask
tCarTask
)
{
tCarTask
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tCarTaskMapper
.
insertTCarTask
(
tCarTask
);
}
/**
* 修改巡检车任务
*
* @param tCarTask 巡检车任务
* @return 结果
*/
@Override
public
int
updateTCarTask
(
TCarTask
tCarTask
)
{
return
tCarTaskMapper
.
updateTCarTask
(
tCarTask
);
}
/**
* 批量删除巡检车任务
*
* @param ids 需要删除的巡检车任务ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskByIds
(
Long
[]
ids
)
{
return
tCarTaskMapper
.
deleteTCarTaskByIds
(
ids
);
}
/**
* 删除巡检车任务信息
*
* @param id 巡检车任务ID
* @return 结果
*/
@Override
public
int
deleteTCarTaskById
(
Long
id
)
{
return
tCarTaskMapper
.
deleteTCarTaskById
(
id
);
}
}
huaxin-system/src/main/resources/mapper/system/TCarMapper.xml
0 → 100644
View file @
41232d08
<?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.TCarMapper"
>
<resultMap
type=
"TCar"
id=
"TCarResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"number"
column=
"number"
/>
<result
property=
"adminId"
column=
"admin_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTCarVo"
>
select id, title, number, admin_id, create_time, remarks from t_car
</sql>
<select
id=
"selectTCarList"
parameterType=
"TCar"
resultMap=
"TCarResult"
>
<include
refid=
"selectTCarVo"
/>
<where>
<if
test=
"title != null and title != ''"
>
and title = #{title}
</if>
<if
test=
"number != null and number != ''"
>
and number = #{number}
</if>
<if
test=
"adminId != null "
>
and admin_id = #{adminId}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and remarks = #{remarks}
</if>
</where>
</select>
<select
id=
"selectTCarById"
parameterType=
"Long"
resultMap=
"TCarResult"
>
<include
refid=
"selectTCarVo"
/>
where id = #{id}
</select>
<insert
id=
"insertTCar"
parameterType=
"TCar"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_car
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"number != null"
>
number,
</if>
<if
test=
"adminId != null"
>
admin_id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
#{title},
</if>
<if
test=
"number != null"
>
#{number},
</if>
<if
test=
"adminId != null"
>
#{adminId},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTCar"
parameterType=
"TCar"
>
update t_car
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title = #{title},
</if>
<if
test=
"number != null"
>
number = #{number},
</if>
<if
test=
"adminId != null"
>
admin_id = #{adminId},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteTCarById"
parameterType=
"Long"
>
delete from t_car where id = #{id}
</delete>
<delete
id=
"deleteTCarByIds"
parameterType=
"String"
>
delete from t_car where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
huaxin-system/src/main/resources/mapper/system/TCarTaskInspectMapper.xml
0 → 100644
View file @
41232d08
<?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.TCarTaskInspectMapper"
>
<resultMap
type=
"TCarTaskInspect"
id=
"TCarTaskInspectResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"taskId"
column=
"task_id"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"speed"
column=
"speed"
/>
<result
property=
"angle"
column=
"angle"
/>
<result
property=
"ch4"
column=
"ch4"
/>
<result
property=
"c2h6"
column=
"c2h6"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
<sql
id=
"selectTCarTaskInspectVo"
>
select id, task_id, longitude, latitude, speed, angle, ch4, c2h6, create_time from t_car_task_inspect
</sql>
<select
id=
"selectTCarTaskInspectList"
parameterType=
"TCarTaskInspect"
resultMap=
"TCarTaskInspectResult"
>
<include
refid=
"selectTCarTaskInspectVo"
/>
<where>
<if
test=
"taskId != null "
>
and task_id = #{taskId}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"speed != null "
>
and speed = #{speed}
</if>
<if
test=
"angle != null "
>
and angle = #{angle}
</if>
<if
test=
"ch4 != null "
>
and ch4 = #{ch4}
</if>
<if
test=
"c2h6 != null "
>
and c2h6 = #{c2h6}
</if>
</where>
</select>
<select
id=
"selectTCarTaskInspectById"
parameterType=
"Long"
resultMap=
"TCarTaskInspectResult"
>
<include
refid=
"selectTCarTaskInspectVo"
/>
where id = #{id}
</select>
<insert
id=
"insertTCarTaskInspect"
parameterType=
"TCarTaskInspect"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_car_task_inspect
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
task_id,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"speed != null"
>
speed,
</if>
<if
test=
"angle != null"
>
angle,
</if>
<if
test=
"ch4 != null"
>
ch4,
</if>
<if
test=
"c2h6 != null"
>
c2h6,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
#{taskId},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"speed != null"
>
#{speed},
</if>
<if
test=
"angle != null"
>
#{angle},
</if>
<if
test=
"ch4 != null"
>
#{ch4},
</if>
<if
test=
"c2h6 != null"
>
#{c2h6},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
</trim>
</insert>
<update
id=
"updateTCarTaskInspect"
parameterType=
"TCarTaskInspect"
>
update t_car_task_inspect
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
task_id = #{taskId},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"speed != null"
>
speed = #{speed},
</if>
<if
test=
"angle != null"
>
angle = #{angle},
</if>
<if
test=
"ch4 != null"
>
ch4 = #{ch4},
</if>
<if
test=
"c2h6 != null"
>
c2h6 = #{c2h6},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteTCarTaskInspectById"
parameterType=
"Long"
>
delete from t_car_task_inspect where id = #{id}
</delete>
<delete
id=
"deleteTCarTaskInspectByIds"
parameterType=
"String"
>
delete from t_car_task_inspect where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
huaxin-system/src/main/resources/mapper/system/TCarTaskMapper.xml
0 → 100644
View file @
41232d08
<?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.TCarTaskMapper"
>
<resultMap
type=
"TCarTask"
id=
"TCarTaskResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"title"
column=
"title"
/>
<result
property=
"describe"
column=
"describe"
/>
<result
property=
"carId"
column=
"car_id"
/>
<result
property=
"taskDate"
column=
"task_date"
/>
<result
property=
"adminId"
column=
"admin_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTCarTaskVo"
>
SELECT
task.id,
task.title,
task.`describe`,
task.car_id,
task_date,
task.admin_id,
task.create_time,
task.remarks,
car.title as carName,
sy.nick_name as creator
FROM
t_car_task task
LEFT JOIN t_car car ON car.id = task.car_id
LEFT JOIN sys_user sy ON sy.user_id = task.admin_id
</sql>
<select
id=
"selectTCarTaskList"
parameterType=
"TCarTask"
resultMap=
"TCarTaskResult"
>
<include
refid=
"selectTCarTaskVo"
/>
<where>
<if
test=
"title != null and title != ''"
>
and task.title like concat('%', #{title}, '%')
</if>
<if
test=
"describe != null and describe != ''"
>
and task.`describe` = #{describe}
</if>
<if
test=
"carId != null "
>
and task.car_id = #{carId}
</if>
<if
test=
"taskDate != null "
>
and task.task_date = #{taskDate}
</if>
<if
test=
"adminId != null "
>
and task.admin_id = #{adminId}
</if>
<if
test=
"remarks != null and remarks != ''"
>
and task.remarks = #{remarks}
</if>
</where>
order by task.create_time desc
</select>
<select
id=
"selectTCarTaskById"
parameterType=
"Long"
resultMap=
"TCarTaskResult"
>
<include
refid=
"selectTCarTaskVo"
/>
where task.id = #{id}
</select>
<insert
id=
"insertTCarTask"
parameterType=
"TCarTask"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_car_task
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title,
</if>
<if
test=
"describe != null"
>
`describe`,
</if>
<if
test=
"carId != null"
>
car_id,
</if>
<if
test=
"taskDate != null"
>
task_date,
</if>
<if
test=
"adminId != null"
>
admin_id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"title != null"
>
#{title},
</if>
<if
test=
"describe != null"
>
#{describe},
</if>
<if
test=
"carId != null"
>
#{carId},
</if>
<if
test=
"taskDate != null"
>
#{taskDate},
</if>
<if
test=
"adminId != null"
>
#{adminId},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTCarTask"
parameterType=
"TCarTask"
>
update t_car_task
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"title != null"
>
title = #{title},
</if>
<if
test=
"describe != null"
>
`describe` = #{describe},
</if>
<if
test=
"carId != null"
>
car_id = #{carId},
</if>
<if
test=
"taskDate != null"
>
task_date = #{taskDate},
</if>
<if
test=
"adminId != null"
>
admin_id = #{adminId},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteTCarTaskById"
parameterType=
"Long"
>
delete from t_car_task where id = #{id}
</delete>
<delete
id=
"deleteTCarTaskByIds"
parameterType=
"String"
>
delete from t_car_task where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
huaxin-system/src/main/resources/mapper/system/TCarTaskPointMapper.xml
0 → 100644
View file @
41232d08
<?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.TCarTaskPointMapper"
>
<resultMap
type=
"TCarTaskPoint"
id=
"TCarTaskPointResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"taskId"
column=
"task_id"
/>
<result
property=
"longitude1"
column=
"longitude1"
/>
<result
property=
"latitude1"
column=
"latitude1"
/>
<result
property=
"longitude2"
column=
"longitude2"
/>
<result
property=
"latitude2"
column=
"latitude2"
/>
<result
property=
"ch41"
column=
"ch41"
/>
<result
property=
"ch42"
column=
"ch42"
/>
<result
property=
"c2h6"
column=
"c2h6"
/>
<result
property=
"createTime"
column=
"create_time"
/>
</resultMap>
<sql
id=
"selectTCarTaskPointVo"
>
select id, task_id, longitude1, latitude1, longitude2, latitude2, ch41, ch42, c2h6, create_time from t_car_task_point
</sql>
<select
id=
"selectTCarTaskPointList"
parameterType=
"TCarTaskPoint"
resultMap=
"TCarTaskPointResult"
>
<include
refid=
"selectTCarTaskPointVo"
/>
<where>
<if
test=
"taskId != null "
>
and task_id = #{taskId}
</if>
<if
test=
"longitude1 != null "
>
and longitude1 = #{longitude1}
</if>
<if
test=
"latitude1 != null "
>
and latitude1 = #{latitude1}
</if>
<if
test=
"longitude2 != null "
>
and longitude2 = #{longitude2}
</if>
<if
test=
"latitude2 != null "
>
and latitude2 = #{latitude2}
</if>
<if
test=
"ch41 != null "
>
and ch41 = #{ch41}
</if>
<if
test=
"ch42 != null "
>
and ch42 = #{ch42}
</if>
<if
test=
"c2h6 != null "
>
and c2h6 = #{c2h6}
</if>
</where>
</select>
<select
id=
"selectTCarTaskPointById"
parameterType=
"Long"
resultMap=
"TCarTaskPointResult"
>
<include
refid=
"selectTCarTaskPointVo"
/>
where id = #{id}
</select>
<insert
id=
"insertTCarTaskPoint"
parameterType=
"TCarTaskPoint"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_car_task_point
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
task_id,
</if>
<if
test=
"longitude1 != null"
>
longitude1,
</if>
<if
test=
"latitude1 != null"
>
latitude1,
</if>
<if
test=
"longitude2 != null"
>
longitude2,
</if>
<if
test=
"latitude2 != null"
>
latitude2,
</if>
<if
test=
"ch41 != null"
>
ch41,
</if>
<if
test=
"ch42 != null"
>
ch42,
</if>
<if
test=
"c2h6 != null"
>
c2h6,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
#{taskId},
</if>
<if
test=
"longitude1 != null"
>
#{longitude1},
</if>
<if
test=
"latitude1 != null"
>
#{latitude1},
</if>
<if
test=
"longitude2 != null"
>
#{longitude2},
</if>
<if
test=
"latitude2 != null"
>
#{latitude2},
</if>
<if
test=
"ch41 != null"
>
#{ch41},
</if>
<if
test=
"ch42 != null"
>
#{ch42},
</if>
<if
test=
"c2h6 != null"
>
#{c2h6},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
</trim>
</insert>
<update
id=
"updateTCarTaskPoint"
parameterType=
"TCarTaskPoint"
>
update t_car_task_point
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"taskId != null"
>
task_id = #{taskId},
</if>
<if
test=
"longitude1 != null"
>
longitude1 = #{longitude1},
</if>
<if
test=
"latitude1 != null"
>
latitude1 = #{latitude1},
</if>
<if
test=
"longitude2 != null"
>
longitude2 = #{longitude2},
</if>
<if
test=
"latitude2 != null"
>
latitude2 = #{latitude2},
</if>
<if
test=
"ch41 != null"
>
ch41 = #{ch41},
</if>
<if
test=
"ch42 != null"
>
ch42 = #{ch42},
</if>
<if
test=
"c2h6 != null"
>
c2h6 = #{c2h6},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteTCarTaskPointById"
parameterType=
"Long"
>
delete from t_car_task_point where id = #{id}
</delete>
<delete
id=
"deleteTCarTaskPointByIds"
parameterType=
"String"
>
delete from t_car_task_point where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
huaxin-web/src/api/car/car.js
0 → 100644
View file @
41232d08
import
request
from
'@/utils/request'
// 查询巡检车列表
export
function
listCar
(
query
)
{
return
request
({
url
:
'/car/info/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询巡检车详细
export
function
getCar
(
id
)
{
return
request
({
url
:
'/car/info/'
+
id
,
method
:
'get'
})
}
// 新增巡检车
export
function
addCar
(
data
)
{
return
request
({
url
:
'/car/info'
,
method
:
'post'
,
data
:
data
})
}
// 修改巡检车
export
function
updateCar
(
data
)
{
return
request
({
url
:
'/car/info'
,
method
:
'put'
,
data
:
data
})
}
// 删除巡检车
export
function
delCar
(
id
)
{
return
request
({
url
:
'/car/info/'
+
id
,
method
:
'delete'
})
}
// 导出巡检车
export
function
exportCar
(
query
)
{
return
request
({
url
:
'/car/info/export'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/api/car/inspect.js
0 → 100644
View file @
41232d08
import
request
from
'@/utils/request'
// 查询巡检车打卡列表
export
function
listInspect
(
query
)
{
return
request
({
url
:
'/car/inspect/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询巡检车打卡详细
export
function
getInspect
(
id
)
{
return
request
({
url
:
'/car/inspect/'
+
id
,
method
:
'get'
})
}
// 新增巡检车打卡
export
function
addInspect
(
data
)
{
return
request
({
url
:
'/car/inspect'
,
method
:
'post'
,
data
:
data
})
}
// 修改巡检车打卡
export
function
updateInspect
(
data
)
{
return
request
({
url
:
'/car/inspect'
,
method
:
'put'
,
data
:
data
})
}
// 删除巡检车打卡
export
function
delInspect
(
id
)
{
return
request
({
url
:
'/car/inspect/'
+
id
,
method
:
'delete'
})
}
// 导出巡检车打卡
export
function
exportInspect
(
query
)
{
return
request
({
url
:
'/car/inspect/export'
,
method
:
'get'
,
params
:
query
})
}
//巡检点信息
export
function
inspectListInfo
(
query
)
{
return
request
({
url
:
'/car/inspect/inspectListInfo'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/api/car/point.js
0 → 100644
View file @
41232d08
import
request
from
'@/utils/request'
// 查询泄漏点列表
export
function
listPoint
(
query
)
{
return
request
({
url
:
'/car/point/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询泄漏点详细
export
function
getPoint
(
id
)
{
return
request
({
url
:
'/car/point/'
+
id
,
method
:
'get'
})
}
// 新增泄漏点
export
function
addPoint
(
data
)
{
return
request
({
url
:
'/car/point'
,
method
:
'post'
,
data
:
data
})
}
// 修改泄漏点
export
function
updatePoint
(
data
)
{
return
request
({
url
:
'/car/point'
,
method
:
'put'
,
data
:
data
})
}
// 删除泄漏点
export
function
delPoint
(
id
)
{
return
request
({
url
:
'/car/point/'
+
id
,
method
:
'delete'
})
}
// 导出泄漏点
export
function
exportPoint
(
query
)
{
return
request
({
url
:
'/car/point/export'
,
method
:
'get'
,
params
:
query
})
}
export
function
pointInfoList
(
query
)
{
return
request
({
url
:
'/car/point/pointInfoList'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/api/car/task.js
0 → 100644
View file @
41232d08
import
request
from
'@/utils/request'
// 查询巡检车任务列表
export
function
listTask
(
query
)
{
return
request
({
url
:
'/car/task/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询巡检车任务详细
export
function
getTask
(
id
)
{
return
request
({
url
:
'/car/task/'
+
id
,
method
:
'get'
})
}
// 新增巡检车任务
export
function
addTask
(
data
)
{
return
request
({
url
:
'/car/task'
,
method
:
'post'
,
data
:
data
})
}
// 修改巡检车任务
export
function
updateTask
(
data
)
{
return
request
({
url
:
'/car/task'
,
method
:
'put'
,
data
:
data
})
}
// 删除巡检车任务
export
function
delTask
(
id
)
{
return
request
({
url
:
'/car/task/'
+
id
,
method
:
'delete'
})
}
// 导出巡检车任务
export
function
exportTask
(
query
)
{
return
request
({
url
:
'/car/task/export'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/utils/mapClass/map.js
View file @
41232d08
...
...
@@ -846,13 +846,13 @@ export class EditorMap {
icon
:
"https://a.amap.com/jsapi_demos/static/demo-center-v2/car.png"
,
offset
:
new
AMap
.
Pixel
(
-
13
,
-
26
),
});
marker
.
on
(
"moving"
,
(
e
)
=>
{
passedPolyline
.
setPath
(
e
.
passedPath
);
this
.
map
.
setCenter
(
e
.
target
.
getPosition
(),
false
);
});
this
.
map
.
setFitView
();
//
this.map.setFitView();
marker
.
moveAlong
(
lineArr
,
{
// 每一段的时长
...
...
huaxin-web/src/views/car/task/components/TrackInfo.vue
0 → 100644
View file @
41232d08
<
template
>
<el-dialog
title=
"轨迹信息"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<div
class=
"mapChange"
>
<div
:class=
"
{ active: !mapStyle }" @click="mapChange(1)">卫星地图
</div>
<div
:class=
"
{ active: mapStyle }" @click="mapChange(2)">全景地图
</div>
<div
@
click=
"hf"
><i
class=
"el-icon-refresh"
/>
轨迹回放
</div>
</div>
<div
id=
"track-map"
style=
"width: 100%; height: 500px"
></div>
</el-dialog>
</
template
>
<
script
>
import
{
EditorMap
}
from
"@/utils/mapClass/map"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
inspectListInfo
}
from
"@/api/car/inspect"
;
export
default
{
name
:
"track-info"
,
data
(){
return
{
//高德地图
gaoMap
:
null
,
open
:
false
,
trackList
:
[],
pipeInfo
:
[],
mapStyle
:
true
,
markers
:
[],
pipeLine
:
null
,
}
},
methods
:{
openTrackDialog
(
query
)
{
this
.
open
=
true
;
this
.
initMap
();
this
.
getTrackInfo
(
query
.
id
);
this
.
clearMarker
();
this
.
clearPipeLine
();
},
//初始化地图
initMap
()
{
this
.
$nextTick
(()
=>
{
const
path
=
eval
(
this
.
systemSetting
.
map_center
);
this
.
gaoMap
=
new
EditorMap
(
"track-map"
,
{
center
:
path
,
//mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758",
zoom
:
16
,
},
this
);
});
},
getTrackInfo
(
taskId
){
inspectListInfo
({
taskId
:
taskId
}).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
trackList
=
res
.
data
;
if
(
this
.
trackList
){
//添加点位
this
.
trackList
.
forEach
(
item
=>
{
let
marker
=
this
.
addMarker
(
item
);
this
.
markers
.
push
(
marker
);
})
//添加轨迹
this
.
pipeInfo
=
this
.
trackList
.
map
(
item
=>
[
item
.
longitude
,
item
.
latitude
]);
this
.
addPipe
(
this
.
pipeInfo
)
}
}
})
},
/**标点*/
addMarker
(
data
)
{
let
marker
=
new
AMap
.
Marker
({
map
:
this
.
gaoMap
.
map
,
anchor
:
"bottom-center"
,
position
:
[
data
.
longitude
,
data
.
latitude
],
extData
:
data
,
});
marker
.
on
(
"mouseover"
,
(
e
)
=>
{
const
target
=
e
.
target
;
target
.
setLabel
({
content
:
"检查时间:"
+
target
.
getExtData
().
createTime
+
",速度:"
+
target
.
getExtData
().
speed
+
",角度:"
+
target
.
getExtData
().
angle
+
",甲烷:"
+
target
.
getExtData
().
ch4
+
"ppm"
+
",乙烷:"
+
target
.
getExtData
().
c2h6
+
"ppb"
,
direction
:
"top"
,
});
});
marker
.
on
(
"mouseout"
,
(
e
)
=>
{
const
target
=
e
.
target
;
target
.
setLabel
({
content
:
""
});
});
return
marker
;
},
/**标线*/
addPipe
(
pipeInfo
)
{
let
pipe
=
new
AMap
.
Polyline
({
path
:
pipeInfo
,
showDir
:
true
,
strokeWeight
:
4
,
strokeColor
:
"#1890FF"
,
});
this
.
pipeLine
=
pipe
;
this
.
gaoMap
.
map
.
add
(
pipe
);
this
.
gaoMap
.
map
.
setCenter
(
pipeInfo
[
0
]
);
},
// 更改卫星图
mapChange
(
num
)
{
if
(
num
==
1
)
{
this
.
mapStyle
=
false
;
}
else
{
this
.
mapStyle
=
true
;
}
this
.
gaoMap
.
changeMap
(
this
.
mapStyle
);
},
hf
()
{
this
.
markers
.
forEach
((
item
)
=>
item
.
hide
());
this
.
gaoMap
.
clearhf
();
this
.
gaoMap
.
map
.
panTo
(
this
.
pipeInfo
[
0
][
0
]);
this
.
gaoMap
.
huifang
(
this
.
pipeInfo
);
},
/**清除marker*/
clearMarker
()
{
if
(
this
.
markers
)
{
this
.
markers
.
forEach
((
item
)
=>
{
this
.
gaoMap
.
map
.
remove
(
item
);
});
}
},
/**清除pipe*/
clearPipeLine
()
{
if
(
this
.
pipeLine
)
{
this
.
gaoMap
.
map
.
remove
(
this
.
pipeLine
);
}
},
},
computed
:
{
...
mapGetters
([
"systemSetting"
]),
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.mapChange
{
top
:
95px
;
color
:
#1890ff
;
//background-color: #e8f4ff;
position
:
absolute
;
display
:
flex
;
z-index
:
9999
;
div
{
padding
:
4px
8px
;
border
:
1px
solid
#fff
;
background-color
:
#e8f4ff
;
margin-left
:
8px
;
cursor
:
pointer
;
&
.active
,
&
:hover
{
background-color
:
#1890ff
;
color
:
#fff
;
}
}
}
</
style
>
huaxin-web/src/views/car/task/components/leakPoint.vue
0 → 100644
View file @
41232d08
<
template
>
<el-dialog
title=
"泄露点信息"
:visible
.
sync=
"open"
width=
"1300px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"14"
>
<el-table
v-loading=
"loading"
:data=
"pointList"
>
<el-table-column
label=
"巡检车经度"
align=
"center"
prop=
"longitude1"
/>
<el-table-column
label=
"巡检车纬度"
align=
"center"
prop=
"latitude1"
/>
<el-table-column
label=
"推测泄漏点经度"
align=
"center"
prop=
"longitude2"
/>
<el-table-column
label=
"推测泄漏点纬度"
align=
"center"
prop=
"latitude2"
/>
<el-table-column
label=
"甲烷谷值(ppm)"
align=
"center"
prop=
"ch41"
/>
<el-table-column
label=
"甲烷峰值(ppm)"
align=
"center"
prop=
"ch42"
/>
<el-table-column
label=
"乙烷(ppb)"
align=
"center"
prop=
"c2h6"
/>
<el-table-column
label=
"泄露时间"
align=
"center"
prop=
"createTime"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/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-location-information"
@
click
=
"handleLocation(scope.row)"
>
泄露位置
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
/el-col
>
<
el
-
col
:
span
=
"10"
>
<
div
class
=
"mapChange"
>
<
div
:
class
=
"{ active: !mapStyle
}
"
@
click
=
"mapChange(1)"
>
卫星地图
<
/div
>
<
div
:
class
=
"{ active: mapStyle
}
"
@
click
=
"mapChange(2)"
>
全景地图
<
/div
>
<
/div
>
<
div
id
=
"track-map"
style
=
"width: 100%; height: 500px"
><
/div
>
<
/el-col
>
<
/el-row
>
<
/el-dialog
>
<
/template
>
<
script
>
import
{
EditorMap
}
from
"@/utils/mapClass/map"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
pointInfoList
}
from
"@/api/car/point"
;
export
default
{
name
:
"leak-point"
,
data
(){
return
{
open
:
false
,
pointList
:
[],
markers
:
[],
mapStyle
:
true
,
loading
:
false
}
}
,
methods
:{
openLeakPointDialog
(
query
)
{
this
.
open
=
true
;
this
.
initMap
();
this
.
getPointInfo
(
query
.
id
);
this
.
clearMarker
();
}
,
//初始化地图
initMap
()
{
this
.
$nextTick
(()
=>
{
const
path
=
eval
(
this
.
systemSetting
.
map_center
);
this
.
gaoMap
=
new
EditorMap
(
"track-map"
,
{
center
:
path
,
//mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758",
zoom
:
16
,
}
,
this
);
}
);
}
,
getPointInfo
(
taskId
){
this
.
loading
=
true
;
pointInfoList
({
taskId
:
taskId
}
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
code
==
200
){
this
.
pointList
=
res
.
data
;
if
(
this
.
pointList
){
//添加点位
this
.
pointList
.
forEach
(
item
=>
{
let
marker
=
this
.
addMarker
(
item
);
this
.
markers
.
push
(
marker
);
}
)
if
(
this
.
pointList
[
0
].
longitude2
)
this
.
gaoMap
.
map
.
panTo
([
this
.
pointList
[
0
].
longitude2
,
this
.
pointList
[
0
].
latitude2
])
}
}
}
)
}
,
/**标点*/
addMarker
(
data
)
{
let
marker
=
new
AMap
.
Marker
({
map
:
this
.
gaoMap
.
map
,
anchor
:
"bottom-center"
,
position
:
[
data
.
longitude1
,
data
.
latitude1
],
extData
:
data
,
}
);
marker
.
on
(
"mouseover"
,
(
e
)
=>
{
const
target
=
e
.
target
;
target
.
setLabel
({
content
:
"泄露时间:"
+
target
.
getExtData
().
createTime
+
",甲烷谷值:"
+
target
.
getExtData
().
ch41
+
"ppm"
+
",甲烷峰值:"
+
target
.
getExtData
().
ch42
+
"ppm"
+
",乙烷:"
+
target
.
getExtData
().
c2h6
+
"ppd"
,
direction
:
"top"
,
}
);
}
);
marker
.
on
(
"mouseout"
,
(
e
)
=>
{
const
target
=
e
.
target
;
target
.
setLabel
({
content
:
""
}
);
}
);
return
marker
;
}
,
// 更改卫星图
mapChange
(
num
)
{
if
(
num
==
1
)
{
this
.
mapStyle
=
false
;
}
else
{
this
.
mapStyle
=
true
;
}
this
.
gaoMap
.
changeMap
(
this
.
mapStyle
);
}
,
/**清除marker*/
clearMarker
()
{
if
(
this
.
markers
)
{
this
.
markers
.
forEach
((
item
)
=>
{
this
.
gaoMap
.
map
.
remove
(
item
);
}
);
}
}
,
handleLocation
(
row
){
if
(
row
.
longitude2
)
this
.
gaoMap
.
map
.
panTo
([
row
.
longitude2
,
row
.
latitude2
])
}
}
,
computed
:
{
...
mapGetters
([
"systemSetting"
]),
}
,
}
<
/script
>
<
style
scoped
lang
=
"scss"
>
.
mapChange
{
top
:
10
px
;
color
:
#
1890
ff
;
//background-color: #e8f4ff;
position
:
absolute
;
display
:
flex
;
z
-
index
:
9999
;
div
{
padding
:
4
px
8
px
;
border
:
1
px
solid
#
fff
;
background
-
color
:
#
e8f4ff
;
margin
-
left
:
8
px
;
cursor
:
pointer
;
&
.
active
,
&
:
hover
{
background
-
color
:
#
1890
ff
;
color
:
#
fff
;
}
}
}
<
/style
>
huaxin-web/src/views/car/task/index.vue
0 → 100644
View file @
41232d08
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"任务名称"
prop=
"title"
>
<el-input
v-model=
"queryParams.title"
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=
"['system:task: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=
"['system:task: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=
"['system:task: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=
"['system:task:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
-->
<el-table
v-loading=
"loading"
:data=
"taskList"
>
<el-table-column
label=
"任务名称"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"任务描述"
align=
"center"
prop=
"describe"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"巡检车"
align=
"center"
prop=
"carName"
/>
<el-table-column
label=
"巡检日期"
align=
"center"
prop=
"taskDate"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
taskDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"创建人"
align
=
"center"
prop
=
"creator"
/>
<
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
=
"['system:task:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system:task:remove']"
>
删除
<
/el-button>--
>
<
el
-
button
size
=
"mini"
type
=
"text"
@
click
=
"handleTrack(scope.row)"
>
巡检轨迹
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
@
click
=
"handleLeak(scope.row)"
>
泄漏点
<
/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
=
"任务名称"
prop
=
"title"
>
<
el
-
input
v
-
model
=
"form.title"
placeholder
=
"请输入任务名称"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"任务描述"
prop
=
"describe"
>
<
el
-
input
v
-
model
=
"form.describe"
placeholder
=
"请输入任务描述"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"巡检车id"
prop
=
"carId"
>
<
el
-
input
v
-
model
=
"form.carId"
placeholder
=
"请输入巡检车id"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"巡检日期"
prop
=
"taskDate"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.taskDate"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择巡检日期"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"创建人"
prop
=
"adminId"
>
<
el
-
input
v
-
model
=
"form.adminId"
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
>
<!--
轨迹信息
-->
<
TrackInfo
ref
=
"trackInfo"
/>
<!--
泄漏点信息
-->
<
LeakPoint
ref
=
"leak"
/>
<
/div
>
<
/template
>
<
script
>
import
{
listTask
,
getTask
,
delTask
,
addTask
,
updateTask
,
exportTask
}
from
"@/api/car/task"
;
import
TrackInfo
from
"./components/TrackInfo"
;
import
LeakPoint
from
"./components/leakPoint"
;
export
default
{
name
:
"Task"
,
components
:
{
TrackInfo
,
LeakPoint
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 巡检车任务表格数据
taskList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
title
:
null
,
describe
:
null
,
carId
:
null
,
taskDate
:
null
,
adminId
:
null
,
remarks
:
null
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询巡检车任务列表 */
getList
()
{
this
.
loading
=
true
;
listTask
(
this
.
queryParams
).
then
(
response
=>
{
this
.
taskList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
title
:
null
,
describe
:
null
,
carId
:
null
,
taskDate
:
null
,
adminId
:
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
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加巡检车任务"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
getTask
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改巡检车任务"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateTask
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addTask
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除巡检车任务编号为"'
+
ids
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delTask
(
ids
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有巡检车任务数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportTask
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
,
/** 轨迹信息 */
handleTrack
(
row
){
this
.
$refs
.
trackInfo
.
openTrackDialog
(
row
);
}
,
/** 泄露点信息 */
handleLeak
(
row
){
this
.
$refs
.
leak
.
openLeakPointDialog
(
row
);
}
}
}
;
<
/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