Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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-progress
Commits
598fa7bc
Commit
598fa7bc
authored
Feb 11, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务下发 gengdidi
parent
68ce73e2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1345 additions
and
0 deletions
+1345
-0
TWorkOrderController.java
...web/controller/operationMonitor/TWorkOrderController.java
+103
-0
TWorkOrder.java
...em/src/main/java/com/zehong/system/domain/TWorkOrder.java
+339
-0
TWorkOrderMapper.java
.../main/java/com/zehong/system/mapper/TWorkOrderMapper.java
+61
-0
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+61
-0
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+96
-0
TWorkOrderMapper.xml
...tem/src/main/resources/mapper/system/TWorkOrderMapper.xml
+172
-0
order.js
gassafetyprogress-web/src/api/operationMonitor/order.js
+53
-0
index.vue
...ogress-web/src/views/operationMonitor/workOrder/index.vue
+460
-0
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/operationMonitor/TWorkOrderController.java
0 → 100644
View file @
598fa7bc
package
com
.
zehong
.
web
.
controller
.
operationMonitor
;
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.TWorkOrder
;
import
com.zehong.system.service.ITWorkOrderService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 燃气任务Controller
*
* @author zehong
* @date 2022-02-10
*/
@RestController
@RequestMapping
(
"/system/order"
)
public
class
TWorkOrderController
extends
BaseController
{
@Autowired
private
ITWorkOrderService
tWorkOrderService
;
/**
* 查询燃气任务列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TWorkOrder
tWorkOrder
)
{
startPage
();
List
<
TWorkOrder
>
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrder
);
return
getDataTable
(
list
);
}
/**
* 导出燃气任务列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:export')"
)
@Log
(
title
=
"燃气任务"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TWorkOrder
tWorkOrder
)
{
List
<
TWorkOrder
>
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrder
);
ExcelUtil
<
TWorkOrder
>
util
=
new
ExcelUtil
<
TWorkOrder
>(
TWorkOrder
.
class
);
return
util
.
exportExcel
(
list
,
"燃气任务数据"
);
}
/**
* 获取燃气任务详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:query')"
)
@GetMapping
(
value
=
"/{workId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"workId"
)
Long
workId
)
{
return
AjaxResult
.
success
(
tWorkOrderService
.
selectTWorkOrderById
(
workId
));
}
/**
* 新增燃气任务
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:add')"
)
@Log
(
title
=
"燃气任务"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TWorkOrder
tWorkOrder
)
{
return
toAjax
(
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
));
}
/**
* 修改燃气任务
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:edit')"
)
@Log
(
title
=
"燃气任务"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TWorkOrder
tWorkOrder
)
{
return
toAjax
(
tWorkOrderService
.
updateTWorkOrder
(
tWorkOrder
));
}
/**
* 删除燃气任务
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:remove')"
)
@Log
(
title
=
"燃气任务"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{workIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
workIds
)
{
return
toAjax
(
tWorkOrderService
.
deleteTWorkOrderByIds
(
workIds
));
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TWorkOrder.java
0 → 100644
View file @
598fa7bc
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_work_order
*
* @author zehong
* @date 2022-02-10
*/
public
class
TWorkOrder
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 任务id */
private
Long
workId
;
/** 任务标题 */
@Excel
(
name
=
"任务标题"
)
private
String
workTitle
;
/** 任务类型:1.入户安检 2.巡检 3.报警巡查 4.其他 */
@Excel
(
name
=
"任务类型:1.入户安检 2.巡检 3.报警巡查 4.其他"
)
private
String
workType
;
/** 任务内容 */
@Excel
(
name
=
"任务内容"
)
private
String
workContent
;
/** 创建单位名称 */
@Excel
(
name
=
"创建单位名称"
)
private
String
workCreateEnterpriseName
;
/** 创建单位id */
@Excel
(
name
=
"创建单位id"
)
private
String
workCreateEnterpriseId
;
/** 指派单位名称 */
@Excel
(
name
=
"指派单位名称"
)
private
String
workAssignEnterproseName
;
/** 指派单位id */
@Excel
(
name
=
"指派单位id"
)
private
Long
workAssignEnterproseId
;
/** 指派人 */
@Excel
(
name
=
"指派人"
)
private
Long
workAssignManId
;
/** 指派人id */
@Excel
(
name
=
"指派人id"
)
private
String
workAssignMan
;
/** 任务状态:1.派发中 2.反馈 3.归档 */
@Excel
(
name
=
"任务状态:1.派发中 2.反馈 3.归档"
)
private
String
workStatus
;
/** 巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
inspectionDate
;
/** 巡检路线 */
@Excel
(
name
=
"巡检路线"
)
private
String
inspectionRoute
;
/** 问题描述 */
@Excel
(
name
=
"问题描述"
)
private
String
problemDescription
;
/** 图片路径 */
@Excel
(
name
=
"图片路径"
)
private
String
iconUrl
;
/** 整改方案 */
@Excel
(
name
=
"整改方案"
)
private
String
rectificationPlan
;
/** 整改结果 */
@Excel
(
name
=
"整改结果"
)
private
String
rectificationResult
;
/** 责任单位 */
@Excel
(
name
=
"责任单位"
)
private
String
responsibleUnit
;
/** 责任人员 */
@Excel
(
name
=
"责任人员"
)
private
String
responsiblePerson
;
/** 截止日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"截止日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
expiryDate
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setWorkId
(
Long
workId
)
{
this
.
workId
=
workId
;
}
public
Long
getWorkId
()
{
return
workId
;
}
public
void
setWorkTitle
(
String
workTitle
)
{
this
.
workTitle
=
workTitle
;
}
public
String
getWorkTitle
()
{
return
workTitle
;
}
public
void
setWorkType
(
String
workType
)
{
this
.
workType
=
workType
;
}
public
String
getWorkType
()
{
return
workType
;
}
public
void
setWorkContent
(
String
workContent
)
{
this
.
workContent
=
workContent
;
}
public
String
getWorkContent
()
{
return
workContent
;
}
public
void
setWorkCreateEnterpriseName
(
String
workCreateEnterpriseName
)
{
this
.
workCreateEnterpriseName
=
workCreateEnterpriseName
;
}
public
String
getWorkCreateEnterpriseName
()
{
return
workCreateEnterpriseName
;
}
public
void
setWorkCreateEnterpriseId
(
String
workCreateEnterpriseId
)
{
this
.
workCreateEnterpriseId
=
workCreateEnterpriseId
;
}
public
String
getWorkCreateEnterpriseId
()
{
return
workCreateEnterpriseId
;
}
public
void
setWorkAssignEnterproseName
(
String
workAssignEnterproseName
)
{
this
.
workAssignEnterproseName
=
workAssignEnterproseName
;
}
public
String
getWorkAssignEnterproseName
()
{
return
workAssignEnterproseName
;
}
public
void
setWorkAssignEnterproseId
(
Long
workAssignEnterproseId
)
{
this
.
workAssignEnterproseId
=
workAssignEnterproseId
;
}
public
Long
getWorkAssignEnterproseId
()
{
return
workAssignEnterproseId
;
}
public
void
setWorkAssignManId
(
Long
workAssignManId
)
{
this
.
workAssignManId
=
workAssignManId
;
}
public
Long
getWorkAssignManId
()
{
return
workAssignManId
;
}
public
void
setWorkAssignMan
(
String
workAssignMan
)
{
this
.
workAssignMan
=
workAssignMan
;
}
public
String
getWorkAssignMan
()
{
return
workAssignMan
;
}
public
void
setWorkStatus
(
String
workStatus
)
{
this
.
workStatus
=
workStatus
;
}
public
String
getWorkStatus
()
{
return
workStatus
;
}
public
void
setInspectionDate
(
Date
inspectionDate
)
{
this
.
inspectionDate
=
inspectionDate
;
}
public
Date
getInspectionDate
()
{
return
inspectionDate
;
}
public
void
setInspectionRoute
(
String
inspectionRoute
)
{
this
.
inspectionRoute
=
inspectionRoute
;
}
public
String
getInspectionRoute
()
{
return
inspectionRoute
;
}
public
void
setProblemDescription
(
String
problemDescription
)
{
this
.
problemDescription
=
problemDescription
;
}
public
String
getProblemDescription
()
{
return
problemDescription
;
}
public
void
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setRectificationPlan
(
String
rectificationPlan
)
{
this
.
rectificationPlan
=
rectificationPlan
;
}
public
String
getRectificationPlan
()
{
return
rectificationPlan
;
}
public
void
setRectificationResult
(
String
rectificationResult
)
{
this
.
rectificationResult
=
rectificationResult
;
}
public
String
getRectificationResult
()
{
return
rectificationResult
;
}
public
void
setResponsibleUnit
(
String
responsibleUnit
)
{
this
.
responsibleUnit
=
responsibleUnit
;
}
public
String
getResponsibleUnit
()
{
return
responsibleUnit
;
}
public
void
setResponsiblePerson
(
String
responsiblePerson
)
{
this
.
responsiblePerson
=
responsiblePerson
;
}
public
String
getResponsiblePerson
()
{
return
responsiblePerson
;
}
public
void
setExpiryDate
(
Date
expiryDate
)
{
this
.
expiryDate
=
expiryDate
;
}
public
Date
getExpiryDate
()
{
return
expiryDate
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
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
(
"workId"
,
getWorkId
())
.
append
(
"workTitle"
,
getWorkTitle
())
.
append
(
"workType"
,
getWorkType
())
.
append
(
"workContent"
,
getWorkContent
())
.
append
(
"workCreateEnterpriseName"
,
getWorkCreateEnterpriseName
())
.
append
(
"workCreateEnterpriseId"
,
getWorkCreateEnterpriseId
())
.
append
(
"workAssignEnterproseName"
,
getWorkAssignEnterproseName
())
.
append
(
"workAssignEnterproseId"
,
getWorkAssignEnterproseId
())
.
append
(
"workAssignManId"
,
getWorkAssignManId
())
.
append
(
"workAssignMan"
,
getWorkAssignMan
())
.
append
(
"workStatus"
,
getWorkStatus
())
.
append
(
"inspectionDate"
,
getInspectionDate
())
.
append
(
"inspectionRoute"
,
getInspectionRoute
())
.
append
(
"problemDescription"
,
getProblemDescription
())
.
append
(
"iconUrl"
,
getIconUrl
())
.
append
(
"rectificationPlan"
,
getRectificationPlan
())
.
append
(
"rectificationResult"
,
getRectificationResult
())
.
append
(
"responsibleUnit"
,
getResponsibleUnit
())
.
append
(
"responsiblePerson"
,
getResponsiblePerson
())
.
append
(
"expiryDate"
,
getExpiryDate
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TWorkOrderMapper.java
0 → 100644
View file @
598fa7bc
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TWorkOrder
;
/**
* 燃气任务Mapper接口
*
* @author zehong
* @date 2022-02-10
*/
public
interface
TWorkOrderMapper
{
/**
* 查询燃气任务
*
* @param workId 燃气任务ID
* @return 燃气任务
*/
public
TWorkOrder
selectTWorkOrderById
(
Long
workId
);
/**
* 查询燃气任务列表
*
* @param tWorkOrder 燃气任务
* @return 燃气任务集合
*/
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
);
/**
* 新增燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 修改燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 删除燃气任务
*
* @param workId 燃气任务ID
* @return 结果
*/
public
int
deleteTWorkOrderById
(
Long
workId
);
/**
* 批量删除燃气任务
*
* @param workIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTWorkOrderByIds
(
Long
[]
workIds
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
0 → 100644
View file @
598fa7bc
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TWorkOrder
;
/**
* 燃气任务Service接口
*
* @author zehong
* @date 2022-02-10
*/
public
interface
ITWorkOrderService
{
/**
* 查询燃气任务
*
* @param workId 燃气任务ID
* @return 燃气任务
*/
public
TWorkOrder
selectTWorkOrderById
(
Long
workId
);
/**
* 查询燃气任务列表
*
* @param tWorkOrder 燃气任务
* @return 燃气任务集合
*/
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
);
/**
* 新增燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 修改燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
);
/**
* 批量删除燃气任务
*
* @param workIds 需要删除的燃气任务ID
* @return 结果
*/
public
int
deleteTWorkOrderByIds
(
Long
[]
workIds
);
/**
* 删除燃气任务信息
*
* @param workId 燃气任务ID
* @return 结果
*/
public
int
deleteTWorkOrderById
(
Long
workId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
0 → 100644
View file @
598fa7bc
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.TWorkOrderMapper
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.service.ITWorkOrderService
;
/**
* 燃气任务Service业务层处理
*
* @author zehong
* @date 2022-02-10
*/
@Service
public
class
TWorkOrderServiceImpl
implements
ITWorkOrderService
{
@Autowired
private
TWorkOrderMapper
tWorkOrderMapper
;
/**
* 查询燃气任务
*
* @param workId 燃气任务ID
* @return 燃气任务
*/
@Override
public
TWorkOrder
selectTWorkOrderById
(
Long
workId
)
{
return
tWorkOrderMapper
.
selectTWorkOrderById
(
workId
);
}
/**
* 查询燃气任务列表
*
* @param tWorkOrder 燃气任务
* @return 燃气任务
*/
@Override
public
List
<
TWorkOrder
>
selectTWorkOrderList
(
TWorkOrder
tWorkOrder
)
{
return
tWorkOrderMapper
.
selectTWorkOrderList
(
tWorkOrder
);
}
/**
* 新增燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
@Override
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
{
tWorkOrder
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
}
/**
* 修改燃气任务
*
* @param tWorkOrder 燃气任务
* @return 结果
*/
@Override
public
int
updateTWorkOrder
(
TWorkOrder
tWorkOrder
)
{
tWorkOrder
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tWorkOrderMapper
.
updateTWorkOrder
(
tWorkOrder
);
}
/**
* 批量删除燃气任务
*
* @param workIds 需要删除的燃气任务ID
* @return 结果
*/
@Override
public
int
deleteTWorkOrderByIds
(
Long
[]
workIds
)
{
return
tWorkOrderMapper
.
deleteTWorkOrderByIds
(
workIds
);
}
/**
* 删除燃气任务信息
*
* @param workId 燃气任务ID
* @return 结果
*/
@Override
public
int
deleteTWorkOrderById
(
Long
workId
)
{
return
tWorkOrderMapper
.
deleteTWorkOrderById
(
workId
);
}
}
gassafetyprogress-system/src/main/resources/mapper/system/TWorkOrderMapper.xml
0 → 100644
View file @
598fa7bc
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/api/operationMonitor/order.js
0 → 100644
View file @
598fa7bc
import
request
from
'@/utils/request'
// 查询燃气任务列表
export
function
listOrder
(
query
)
{
return
request
({
url
:
'/system/order/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询燃气任务详细
export
function
getOrder
(
workId
)
{
return
request
({
url
:
'/system/order/'
+
workId
,
method
:
'get'
})
}
// 新增燃气任务
export
function
addOrder
(
data
)
{
return
request
({
url
:
'/system/order'
,
method
:
'post'
,
data
:
data
})
}
// 修改燃气任务
export
function
updateOrder
(
data
)
{
return
request
({
url
:
'/system/order'
,
method
:
'put'
,
data
:
data
})
}
// 删除燃气任务
export
function
delOrder
(
workId
)
{
return
request
({
url
:
'/system/order/'
+
workId
,
method
:
'delete'
})
}
// 导出燃气任务
export
function
exportOrder
(
query
)
{
return
request
({
url
:
'/system/order/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafetyprogress-web/src/views/operationMonitor/workOrder/index.vue
0 → 100644
View file @
598fa7bc
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment