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
164b681a
Commit
164b681a
authored
Feb 11, 2022
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
台账管理
parent
66584520
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
3834 additions
and
0 deletions
+3834
-0
THiddenDangerStandingBookController.java
...ler/standingBook/THiddenDangerStandingBookController.java
+105
-0
TSafeEquipmentStandingBookController.java
...er/standingBook/TSafeEquipmentStandingBookController.java
+105
-0
TTroubleStandingBookController.java
...ntroller/standingBook/TTroubleStandingBookController.java
+105
-0
pom.xml
gassafetyprogress-system/pom.xml
+4
-0
THiddenDangerStandingBook.java
...a/com/zehong/system/domain/THiddenDangerStandingBook.java
+208
-0
TSafeEquipmentStandingBook.java
.../com/zehong/system/domain/TSafeEquipmentStandingBook.java
+170
-0
TTroubleStandingBook.java
...n/java/com/zehong/system/domain/TTroubleStandingBook.java
+222
-0
THiddenDangerStandingBookForm.java
...ong/system/domain/form/THiddenDangerStandingBookForm.java
+32
-0
TSafeEquipmentStandingBookForm.java
...ng/system/domain/form/TSafeEquipmentStandingBookForm.java
+32
-0
TTroubleStandingBookForm.java
...m/zehong/system/domain/form/TTroubleStandingBookForm.java
+39
-0
THiddenDangerStandingBookMapper.java
...zehong/system/mapper/THiddenDangerStandingBookMapper.java
+62
-0
TSafeEquipmentStandingBookMapper.java
...ehong/system/mapper/TSafeEquipmentStandingBookMapper.java
+62
-0
TTroubleStandingBookMapper.java
.../com/zehong/system/mapper/TTroubleStandingBookMapper.java
+62
-0
ITHiddenDangerStandingBookService.java
...ong/system/service/ITHiddenDangerStandingBookService.java
+62
-0
ITSafeEquipmentStandingBookService.java
...ng/system/service/ITSafeEquipmentStandingBookService.java
+62
-0
ITTroubleStandingBookService.java
...m/zehong/system/service/ITTroubleStandingBookService.java
+62
-0
THiddenDangerStandingBookServiceImpl.java
...em/service/impl/THiddenDangerStandingBookServiceImpl.java
+97
-0
TSafeEquipmentStandingBookServiceImpl.java
...m/service/impl/TSafeEquipmentStandingBookServiceImpl.java
+97
-0
TTroubleStandingBookServiceImpl.java
.../system/service/impl/TTroubleStandingBookServiceImpl.java
+97
-0
THiddenDangerStandingBookMapper.xml
...sources/mapper/system/THiddenDangerStandingBookMapper.xml
+119
-0
TSafeEquipmentStandingBookMapper.xml
...ources/mapper/system/TSafeEquipmentStandingBookMapper.xml
+107
-0
TTroubleStandingBookMapper.xml
...in/resources/mapper/system/TTroubleStandingBookMapper.xml
+124
-0
equipment.js
gassafetyprogress-web/src/api/standingBook/equipment.js
+53
-0
hidden.js
gassafetyprogress-web/src/api/standingBook/hidden.js
+53
-0
trouble.js
gassafetyprogress-web/src/api/standingBook/trouble.js
+53
-0
index.vue
...typrogress-web/src/views/standingBook/equipment/index.vue
+375
-0
index.vue
...ress-web/src/views/standingBook/equipmentDetail/index.vue
+108
-0
index.vue
...afetyprogress-web/src/views/standingBook/hidden/index.vue
+477
-0
index.vue
...rogress-web/src/views/standingBook/hiddenDetail/index.vue
+108
-0
index.vue
...fetyprogress-web/src/views/standingBook/trouble/index.vue
+464
-0
index.vue
...ogress-web/src/views/standingBook/troubleDetail/index.vue
+108
-0
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/standingBook/THiddenDangerStandingBookController.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
web
.
controller
.
standingBook
;
import
java.util.List
;
import
com.zehong.system.domain.form.THiddenDangerStandingBookForm
;
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.THiddenDangerStandingBook
;
import
com.zehong.system.service.ITHiddenDangerStandingBookService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 隐患整治台账Controller
*
* @author zehong
* @date 2022-02-09
*/
@RestController
@RequestMapping
(
"/standingBook/hidden"
)
public
class
THiddenDangerStandingBookController
extends
BaseController
{
@Autowired
private
ITHiddenDangerStandingBookService
tHiddenDangerStandingBookService
;
/**
* 查询隐患整治台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
THiddenDangerStandingBookForm
tHiddenDangerStandingBook
)
{
startPage
();
List
<
THiddenDangerStandingBook
>
list
=
tHiddenDangerStandingBookService
.
selectTHiddenDangerStandingBookList
(
tHiddenDangerStandingBook
);
return
getDataTable
(
list
);
}
/**
* 导出隐患整治台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:export')"
)
@Log
(
title
=
"隐患整治台账"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
THiddenDangerStandingBookForm
tHiddenDangerStandingBook
)
{
List
<
THiddenDangerStandingBook
>
list
=
tHiddenDangerStandingBookService
.
selectTHiddenDangerStandingBookList
(
tHiddenDangerStandingBook
);
ExcelUtil
<
THiddenDangerStandingBook
>
util
=
new
ExcelUtil
<
THiddenDangerStandingBook
>(
THiddenDangerStandingBook
.
class
);
return
util
.
exportExcel
(
list
,
"隐患整治台账数据"
);
}
/**
* 获取隐患整治台账详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:query')"
)
@GetMapping
(
value
=
"/{hiddenId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"hiddenId"
)
Long
hiddenId
)
{
return
AjaxResult
.
success
(
tHiddenDangerStandingBookService
.
selectTHiddenDangerStandingBookById
(
hiddenId
));
}
/**
* 新增隐患整治台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:add')"
)
@Log
(
title
=
"隐患整治台账"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
THiddenDangerStandingBook
tHiddenDangerStandingBook
)
{
return
toAjax
(
tHiddenDangerStandingBookService
.
insertTHiddenDangerStandingBook
(
tHiddenDangerStandingBook
));
}
/**
* 修改隐患整治台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:edit')"
)
@Log
(
title
=
"隐患整治台账"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
THiddenDangerStandingBook
tHiddenDangerStandingBook
)
{
return
toAjax
(
tHiddenDangerStandingBookService
.
updateTHiddenDangerStandingBook
(
tHiddenDangerStandingBook
));
}
/**
* 删除隐患整治台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:hidden:remove')"
)
@Log
(
title
=
"隐患整治台账"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{hiddenIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
hiddenIds
)
{
return
toAjax
(
tHiddenDangerStandingBookService
.
deleteTHiddenDangerStandingBookByIds
(
hiddenIds
));
}
}
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/standingBook/TSafeEquipmentStandingBookController.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
web
.
controller
.
standingBook
;
import
java.util.List
;
import
com.zehong.system.domain.form.TSafeEquipmentStandingBookForm
;
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.TSafeEquipmentStandingBook
;
import
com.zehong.system.service.ITSafeEquipmentStandingBookService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 用户加装安全装置台账Controller
*
* @author zehong
* @date 2022-02-09
*/
@RestController
@RequestMapping
(
"/standingBook/equipment"
)
public
class
TSafeEquipmentStandingBookController
extends
BaseController
{
@Autowired
private
ITSafeEquipmentStandingBookService
tSafeEquipmentStandingBookService
;
/**
* 查询用户加装安全装置台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TSafeEquipmentStandingBookForm
tSafeEquipmentStandingBook
)
{
startPage
();
List
<
TSafeEquipmentStandingBook
>
list
=
tSafeEquipmentStandingBookService
.
selectTSafeEquipmentStandingBookList
(
tSafeEquipmentStandingBook
);
return
getDataTable
(
list
);
}
/**
* 导出用户加装安全装置台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:export')"
)
@Log
(
title
=
"用户加装安全装置台账"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TSafeEquipmentStandingBookForm
tSafeEquipmentStandingBook
)
{
List
<
TSafeEquipmentStandingBook
>
list
=
tSafeEquipmentStandingBookService
.
selectTSafeEquipmentStandingBookList
(
tSafeEquipmentStandingBook
);
ExcelUtil
<
TSafeEquipmentStandingBook
>
util
=
new
ExcelUtil
<
TSafeEquipmentStandingBook
>(
TSafeEquipmentStandingBook
.
class
);
return
util
.
exportExcel
(
list
,
"用户加装安全装置台账数据"
);
}
/**
* 获取用户加装安全装置台账详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:query')"
)
@GetMapping
(
value
=
"/{safeEquipmentId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"safeEquipmentId"
)
Long
safeEquipmentId
)
{
return
AjaxResult
.
success
(
tSafeEquipmentStandingBookService
.
selectTSafeEquipmentStandingBookById
(
safeEquipmentId
));
}
/**
* 新增用户加装安全装置台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:add')"
)
@Log
(
title
=
"用户加装安全装置台账"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
)
{
return
toAjax
(
tSafeEquipmentStandingBookService
.
insertTSafeEquipmentStandingBook
(
tSafeEquipmentStandingBook
));
}
/**
* 修改用户加装安全装置台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:edit')"
)
@Log
(
title
=
"用户加装安全装置台账"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
)
{
return
toAjax
(
tSafeEquipmentStandingBookService
.
updateTSafeEquipmentStandingBook
(
tSafeEquipmentStandingBook
));
}
/**
* 删除用户加装安全装置台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:equipment:remove')"
)
@Log
(
title
=
"用户加装安全装置台账"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{safeEquipmentIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
safeEquipmentIds
)
{
return
toAjax
(
tSafeEquipmentStandingBookService
.
deleteTSafeEquipmentStandingBookByIds
(
safeEquipmentIds
));
}
}
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/standingBook/TTroubleStandingBookController.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
web
.
controller
.
standingBook
;
import
java.util.List
;
import
com.zehong.system.domain.form.TTroubleStandingBookForm
;
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.TTroubleStandingBook
;
import
com.zehong.system.service.ITTroubleStandingBookService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 事故台账Controller
*
* @author zehong
* @date 2022-02-09
*/
@RestController
@RequestMapping
(
"/standingBook/trouble"
)
public
class
TTroubleStandingBookController
extends
BaseController
{
@Autowired
private
ITTroubleStandingBookService
tTroubleStandingBookService
;
/**
* 查询事故台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TTroubleStandingBookForm
tTroubleStandingBook
)
{
startPage
();
List
<
TTroubleStandingBook
>
list
=
tTroubleStandingBookService
.
selectTTroubleStandingBookList
(
tTroubleStandingBook
);
return
getDataTable
(
list
);
}
/**
* 导出事故台账列表
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:export')"
)
@Log
(
title
=
"事故台账"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TTroubleStandingBookForm
tTroubleStandingBook
)
{
List
<
TTroubleStandingBook
>
list
=
tTroubleStandingBookService
.
selectTTroubleStandingBookList
(
tTroubleStandingBook
);
ExcelUtil
<
TTroubleStandingBook
>
util
=
new
ExcelUtil
<
TTroubleStandingBook
>(
TTroubleStandingBook
.
class
);
return
util
.
exportExcel
(
list
,
"事故台账数据"
);
}
/**
* 获取事故台账详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:query')"
)
@GetMapping
(
value
=
"/{troubleId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"troubleId"
)
Long
troubleId
)
{
return
AjaxResult
.
success
(
tTroubleStandingBookService
.
selectTTroubleStandingBookById
(
troubleId
));
}
/**
* 新增事故台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:add')"
)
@Log
(
title
=
"事故台账"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TTroubleStandingBook
tTroubleStandingBook
)
{
return
toAjax
(
tTroubleStandingBookService
.
insertTTroubleStandingBook
(
tTroubleStandingBook
));
}
/**
* 修改事故台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:edit')"
)
@Log
(
title
=
"事故台账"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TTroubleStandingBook
tTroubleStandingBook
)
{
return
toAjax
(
tTroubleStandingBookService
.
updateTTroubleStandingBook
(
tTroubleStandingBook
));
}
/**
* 删除事故台账
*/
@PreAuthorize
(
"@ss.hasPermi('standingBook:trouble:remove')"
)
@Log
(
title
=
"事故台账"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{troubleIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
troubleIds
)
{
return
toAjax
(
tTroubleStandingBookService
.
deleteTTroubleStandingBookByIds
(
troubleIds
));
}
}
gassafetyprogress-system/pom.xml
View file @
164b681a
...
@@ -22,6 +22,10 @@
...
@@ -22,6 +22,10 @@
<groupId>
com.zehong
</groupId>
<groupId>
com.zehong
</groupId>
<artifactId>
gassafetyprogress-common
</artifactId>
<artifactId>
gassafetyprogress-common
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
</dependencies>
</dependencies>
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/THiddenDangerStandingBook.java
0 → 100644
View file @
164b681a
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_hidden_danger_standing_book
*
* @author zehong
* @date 2022-02-09
*/
public
class
THiddenDangerStandingBook
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 隐患id */
private
Long
hiddenId
;
/** 隐患名称 */
@Excel
(
name
=
"隐患名称"
)
private
String
hiddenTitle
;
/** 隐患内容 */
@Excel
(
name
=
"隐患内容"
)
private
String
hiddenContent
;
/** 隐患位置 */
@Excel
(
name
=
"隐患位置"
)
private
String
hiddenLocation
;
/** 经度 */
private
BigDecimal
longitude
;
/** 纬度 */
private
BigDecimal
latitude
;
/** 隐患类型 */
@Excel
(
name
=
"隐患类型"
)
private
String
hiddenType
;
/** 隐患发现人员 */
@Excel
(
name
=
"隐患发现人员"
)
private
String
hiddenFindPeople
;
/** 发现时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"发现时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
hiddenFindDate
;
/** 处理方案 */
@Excel
(
name
=
"处理方案"
)
private
String
dealPlan
;
/** 整治情况 */
@Excel
(
name
=
"整治情况"
)
private
String
remediation
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setHiddenId
(
Long
hiddenId
)
{
this
.
hiddenId
=
hiddenId
;
}
public
Long
getHiddenId
()
{
return
hiddenId
;
}
public
void
setHiddenTitle
(
String
hiddenTitle
)
{
this
.
hiddenTitle
=
hiddenTitle
;
}
public
String
getHiddenTitle
()
{
return
hiddenTitle
;
}
public
void
setHiddenContent
(
String
hiddenContent
)
{
this
.
hiddenContent
=
hiddenContent
;
}
public
String
getHiddenContent
()
{
return
hiddenContent
;
}
public
void
setHiddenLocation
(
String
hiddenLocation
)
{
this
.
hiddenLocation
=
hiddenLocation
;
}
public
String
getHiddenLocation
()
{
return
hiddenLocation
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
void
setHiddenType
(
String
hiddenType
)
{
this
.
hiddenType
=
hiddenType
;
}
public
String
getHiddenType
()
{
return
hiddenType
;
}
public
void
setHiddenFindPeople
(
String
hiddenFindPeople
)
{
this
.
hiddenFindPeople
=
hiddenFindPeople
;
}
public
String
getHiddenFindPeople
()
{
return
hiddenFindPeople
;
}
public
void
setHiddenFindDate
(
Date
hiddenFindDate
)
{
this
.
hiddenFindDate
=
hiddenFindDate
;
}
public
Date
getHiddenFindDate
()
{
return
hiddenFindDate
;
}
public
void
setDealPlan
(
String
dealPlan
)
{
this
.
dealPlan
=
dealPlan
;
}
public
String
getDealPlan
()
{
return
dealPlan
;
}
public
void
setRemediation
(
String
remediation
)
{
this
.
remediation
=
remediation
;
}
public
String
getRemediation
()
{
return
remediation
;
}
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
(
"hiddenId"
,
getHiddenId
())
.
append
(
"hiddenTitle"
,
getHiddenTitle
())
.
append
(
"hiddenContent"
,
getHiddenContent
())
.
append
(
"hiddenLocation"
,
getHiddenLocation
())
.
append
(
"hiddenType"
,
getHiddenType
())
.
append
(
"hiddenFindPeople"
,
getHiddenFindPeople
())
.
append
(
"hiddenFindDate"
,
getHiddenFindDate
())
.
append
(
"dealPlan"
,
getDealPlan
())
.
append
(
"remediation"
,
getRemediation
())
.
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/domain/TSafeEquipmentStandingBook.java
0 → 100644
View file @
164b681a
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_safe_equipment_standing_book
*
* @author zehong
* @date 2022-02-09
*/
public
class
TSafeEquipmentStandingBook
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 安全装置台账id */
private
Long
safeEquipmentId
;
/** 用户名称 */
@Excel
(
name
=
"用户名称"
)
private
String
userName
;
/** 用户编号 */
@Excel
(
name
=
"用户编号"
)
private
String
userNo
;
/** 用户详细地址 */
@Excel
(
name
=
"用户详细地址"
)
private
String
userAddress
;
/** 身份证号 */
@Excel
(
name
=
"身份证号"
)
private
String
idCard
;
/** 联系电话 */
@Excel
(
name
=
"联系电话"
)
private
String
linkMobile
;
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
installTime
;
/** 品牌名称 */
@Excel
(
name
=
"品牌名称"
)
private
String
brandName
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setSafeEquipmentId
(
Long
safeEquipmentId
)
{
this
.
safeEquipmentId
=
safeEquipmentId
;
}
public
Long
getSafeEquipmentId
()
{
return
safeEquipmentId
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserNo
(
String
userNo
)
{
this
.
userNo
=
userNo
;
}
public
String
getUserNo
()
{
return
userNo
;
}
public
void
setUserAddress
(
String
userAddress
)
{
this
.
userAddress
=
userAddress
;
}
public
String
getUserAddress
()
{
return
userAddress
;
}
public
void
setIdCard
(
String
idCard
)
{
this
.
idCard
=
idCard
;
}
public
String
getIdCard
()
{
return
idCard
;
}
public
void
setLinkMobile
(
String
linkMobile
)
{
this
.
linkMobile
=
linkMobile
;
}
public
String
getLinkMobile
()
{
return
linkMobile
;
}
public
void
setInstallTime
(
Date
installTime
)
{
this
.
installTime
=
installTime
;
}
public
Date
getInstallTime
()
{
return
installTime
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
public
String
getBrandName
()
{
return
brandName
;
}
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
(
"safeEquipmentId"
,
getSafeEquipmentId
())
.
append
(
"userName"
,
getUserName
())
.
append
(
"userNo"
,
getUserNo
())
.
append
(
"userAddress"
,
getUserAddress
())
.
append
(
"idCard"
,
getIdCard
())
.
append
(
"linkMobile"
,
getLinkMobile
())
.
append
(
"installTime"
,
getInstallTime
())
.
append
(
"brandName"
,
getBrandName
())
.
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/domain/TTroubleStandingBook.java
0 → 100644
View file @
164b681a
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_trouble_standing_book
*
* @author zehong
* @date 2022-02-09
*/
public
class
TTroubleStandingBook
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 事故id */
private
Long
troubleId
;
/** 事故名称 */
@Excel
(
name
=
"事故名称"
)
private
String
troubleName
;
/** 事故地点 */
@Excel
(
name
=
"事故地点"
)
private
String
troubleLocation
;
/** 经度 */
private
BigDecimal
longitude
;
/** 纬度 */
private
BigDecimal
latitude
;
/** 事故类型:1.生产安全事故 2.非生产安全事故 */
@Excel
(
name
=
"事故类型:1.生产安全事故 2.非生产安全事故"
)
private
String
troubleType
;
/** 简要经过 */
@Excel
(
name
=
"简要经过"
)
private
String
briefProcess
;
/** 事故原因 */
@Excel
(
name
=
"事故原因"
)
private
String
troubleReason
;
/** 责任单位 */
@Excel
(
name
=
"责任单位"
)
private
String
responsibleUnit
;
/** 责任人员 */
@Excel
(
name
=
"责任人员"
)
private
String
responsiblePeople
;
/** 是否处理:1.已处理 2.未处理 */
@Excel
(
name
=
"是否处理:1.已处理 2.未处理"
)
private
String
isDeal
;
/** 处理完成时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"处理完成时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
dealDate
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setTroubleId
(
Long
troubleId
)
{
this
.
troubleId
=
troubleId
;
}
public
Long
getTroubleId
()
{
return
troubleId
;
}
public
void
setTroubleName
(
String
troubleName
)
{
this
.
troubleName
=
troubleName
;
}
public
String
getTroubleName
()
{
return
troubleName
;
}
public
void
setTroubleLocation
(
String
troubleLocation
)
{
this
.
troubleLocation
=
troubleLocation
;
}
public
String
getTroubleLocation
()
{
return
troubleLocation
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
void
setTroubleType
(
String
troubleType
)
{
this
.
troubleType
=
troubleType
;
}
public
String
getTroubleType
()
{
return
troubleType
;
}
public
void
setBriefProcess
(
String
briefProcess
)
{
this
.
briefProcess
=
briefProcess
;
}
public
String
getBriefProcess
()
{
return
briefProcess
;
}
public
void
setTroubleReason
(
String
troubleReason
)
{
this
.
troubleReason
=
troubleReason
;
}
public
String
getTroubleReason
()
{
return
troubleReason
;
}
public
void
setResponsibleUnit
(
String
responsibleUnit
)
{
this
.
responsibleUnit
=
responsibleUnit
;
}
public
String
getResponsibleUnit
()
{
return
responsibleUnit
;
}
public
void
setResponsiblePeople
(
String
responsiblePeople
)
{
this
.
responsiblePeople
=
responsiblePeople
;
}
public
String
getResponsiblePeople
()
{
return
responsiblePeople
;
}
public
void
setIsDeal
(
String
isDeal
)
{
this
.
isDeal
=
isDeal
;
}
public
String
getIsDeal
()
{
return
isDeal
;
}
public
void
setDealDate
(
Date
dealDate
)
{
this
.
dealDate
=
dealDate
;
}
public
Date
getDealDate
()
{
return
dealDate
;
}
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
(
"troubleId"
,
getTroubleId
())
.
append
(
"troubleName"
,
getTroubleName
())
.
append
(
"troubleLocation"
,
getTroubleLocation
())
.
append
(
"troubleType"
,
getTroubleType
())
.
append
(
"briefProcess"
,
getBriefProcess
())
.
append
(
"troubleReason"
,
getTroubleReason
())
.
append
(
"responsibleUnit"
,
getResponsibleUnit
())
.
append
(
"responsiblePeople"
,
getResponsiblePeople
())
.
append
(
"isDeal"
,
getIsDeal
())
.
append
(
"dealDate"
,
getDealDate
())
.
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/domain/form/THiddenDangerStandingBookForm.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
domain
.
form
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 隐患整治台账对象 t_hidden_danger_standing_book
*
* @author zehong
* @date 2022-02-09
*/
@Data
public
class
THiddenDangerStandingBookForm
{
/** 隐患名称 */
private
String
hiddenTitle
;
/** 隐患类型 */
private
String
hiddenType
;
/** 发现起始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
hiddenFindDateStart
;
/** 发现截止时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
hiddenFindDateEnd
;
}
gassafetyprogress-system/src/main/java/com/zehong/system/domain/form/TSafeEquipmentStandingBookForm.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
domain
.
form
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 用户加装安全装置台账对象 t_safe_equipment_standing_book
*
* @author zehong
* @date 2022-02-09
*/
@Data
public
class
TSafeEquipmentStandingBookForm
{
/** 用户名称 */
private
String
userName
;
/** 联系电话 */
private
String
linkMobile
;
/** 安装起始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
installTimeStart
;
/** 安装截止时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
installTimeEnd
;
}
gassafetyprogress-system/src/main/java/com/zehong/system/domain/form/TTroubleStandingBookForm.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
domain
.
form
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.util.Date
;
/**
* 事故台账对象 t_trouble_standing_book
*
* @author zehong
* @date 2022-02-09
*/
@Data
public
class
TTroubleStandingBookForm
{
/** 事故名称 */
private
String
troubleName
;
/** 事故类型:1.生产安全事故 2.非生产安全事故 */
private
String
troubleType
;
/** 是否处理:1.已处理 2.未处理 */
private
String
isDeal
;
/** 处理完成起始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
dealDateStart
;
/** 处理完成截止时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
dealDateEnd
;
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/THiddenDangerStandingBookMapper.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.THiddenDangerStandingBook
;
import
com.zehong.system.domain.form.THiddenDangerStandingBookForm
;
/**
* 隐患整治台账Mapper接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
THiddenDangerStandingBookMapper
{
/**
* 查询隐患整治台账
*
* @param hiddenId 隐患整治台账ID
* @return 隐患整治台账
*/
public
THiddenDangerStandingBook
selectTHiddenDangerStandingBookById
(
Long
hiddenId
);
/**
* 查询隐患整治台账列表
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 隐患整治台账集合
*/
public
List
<
THiddenDangerStandingBook
>
selectTHiddenDangerStandingBookList
(
THiddenDangerStandingBookForm
tHiddenDangerStandingBook
);
/**
* 新增隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
public
int
insertTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
);
/**
* 修改隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
public
int
updateTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
);
/**
* 删除隐患整治台账
*
* @param hiddenId 隐患整治台账ID
* @return 结果
*/
public
int
deleteTHiddenDangerStandingBookById
(
Long
hiddenId
);
/**
* 批量删除隐患整治台账
*
* @param hiddenIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTHiddenDangerStandingBookByIds
(
Long
[]
hiddenIds
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TSafeEquipmentStandingBookMapper.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TSafeEquipmentStandingBook
;
import
com.zehong.system.domain.form.TSafeEquipmentStandingBookForm
;
/**
* 用户加装安全装置台账Mapper接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
TSafeEquipmentStandingBookMapper
{
/**
* 查询用户加装安全装置台账
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 用户加装安全装置台账
*/
public
TSafeEquipmentStandingBook
selectTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
);
/**
* 查询用户加装安全装置台账列表
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 用户加装安全装置台账集合
*/
public
List
<
TSafeEquipmentStandingBook
>
selectTSafeEquipmentStandingBookList
(
TSafeEquipmentStandingBookForm
tSafeEquipmentStandingBook
);
/**
* 新增用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
public
int
insertTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
);
/**
* 修改用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
public
int
updateTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
);
/**
* 删除用户加装安全装置台账
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 结果
*/
public
int
deleteTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
);
/**
* 批量删除用户加装安全装置台账
*
* @param safeEquipmentIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTSafeEquipmentStandingBookByIds
(
Long
[]
safeEquipmentIds
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TTroubleStandingBookMapper.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TTroubleStandingBook
;
import
com.zehong.system.domain.form.TTroubleStandingBookForm
;
/**
* 事故台账Mapper接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
TTroubleStandingBookMapper
{
/**
* 查询事故台账
*
* @param troubleId 事故台账ID
* @return 事故台账
*/
public
TTroubleStandingBook
selectTTroubleStandingBookById
(
Long
troubleId
);
/**
* 查询事故台账列表
*
* @param tTroubleStandingBook 事故台账
* @return 事故台账集合
*/
public
List
<
TTroubleStandingBook
>
selectTTroubleStandingBookList
(
TTroubleStandingBookForm
tTroubleStandingBook
);
/**
* 新增事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
public
int
insertTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
);
/**
* 修改事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
public
int
updateTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
);
/**
* 删除事故台账
*
* @param troubleId 事故台账ID
* @return 结果
*/
public
int
deleteTTroubleStandingBookById
(
Long
troubleId
);
/**
* 批量删除事故台账
*
* @param troubleIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTTroubleStandingBookByIds
(
Long
[]
troubleIds
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITHiddenDangerStandingBookService.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.THiddenDangerStandingBook
;
import
com.zehong.system.domain.form.THiddenDangerStandingBookForm
;
/**
* 隐患整治台账Service接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
ITHiddenDangerStandingBookService
{
/**
* 查询隐患整治台账
*
* @param hiddenId 隐患整治台账ID
* @return 隐患整治台账
*/
public
THiddenDangerStandingBook
selectTHiddenDangerStandingBookById
(
Long
hiddenId
);
/**
* 查询隐患整治台账列表
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 隐患整治台账集合
*/
public
List
<
THiddenDangerStandingBook
>
selectTHiddenDangerStandingBookList
(
THiddenDangerStandingBookForm
tHiddenDangerStandingBook
);
/**
* 新增隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
public
int
insertTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
);
/**
* 修改隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
public
int
updateTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
);
/**
* 批量删除隐患整治台账
*
* @param hiddenIds 需要删除的隐患整治台账ID
* @return 结果
*/
public
int
deleteTHiddenDangerStandingBookByIds
(
Long
[]
hiddenIds
);
/**
* 删除隐患整治台账信息
*
* @param hiddenId 隐患整治台账ID
* @return 结果
*/
public
int
deleteTHiddenDangerStandingBookById
(
Long
hiddenId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITSafeEquipmentStandingBookService.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TSafeEquipmentStandingBook
;
import
com.zehong.system.domain.form.TSafeEquipmentStandingBookForm
;
/**
* 用户加装安全装置台账Service接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
ITSafeEquipmentStandingBookService
{
/**
* 查询用户加装安全装置台账
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 用户加装安全装置台账
*/
public
TSafeEquipmentStandingBook
selectTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
);
/**
* 查询用户加装安全装置台账列表
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 用户加装安全装置台账集合
*/
public
List
<
TSafeEquipmentStandingBook
>
selectTSafeEquipmentStandingBookList
(
TSafeEquipmentStandingBookForm
tSafeEquipmentStandingBook
);
/**
* 新增用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
public
int
insertTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
);
/**
* 修改用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
public
int
updateTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
);
/**
* 批量删除用户加装安全装置台账
*
* @param safeEquipmentIds 需要删除的用户加装安全装置台账ID
* @return 结果
*/
public
int
deleteTSafeEquipmentStandingBookByIds
(
Long
[]
safeEquipmentIds
);
/**
* 删除用户加装安全装置台账信息
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 结果
*/
public
int
deleteTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITTroubleStandingBookService.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TTroubleStandingBook
;
import
com.zehong.system.domain.form.TTroubleStandingBookForm
;
/**
* 事故台账Service接口
*
* @author zehong
* @date 2022-02-09
*/
public
interface
ITTroubleStandingBookService
{
/**
* 查询事故台账
*
* @param troubleId 事故台账ID
* @return 事故台账
*/
public
TTroubleStandingBook
selectTTroubleStandingBookById
(
Long
troubleId
);
/**
* 查询事故台账列表
*
* @param tTroubleStandingBook 事故台账
* @return 事故台账集合
*/
public
List
<
TTroubleStandingBook
>
selectTTroubleStandingBookList
(
TTroubleStandingBookForm
tTroubleStandingBook
);
/**
* 新增事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
public
int
insertTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
);
/**
* 修改事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
public
int
updateTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
);
/**
* 批量删除事故台账
*
* @param troubleIds 需要删除的事故台账ID
* @return 结果
*/
public
int
deleteTTroubleStandingBookByIds
(
Long
[]
troubleIds
);
/**
* 删除事故台账信息
*
* @param troubleId 事故台账ID
* @return 结果
*/
public
int
deleteTTroubleStandingBookById
(
Long
troubleId
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/THiddenDangerStandingBookServiceImpl.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.system.domain.form.THiddenDangerStandingBookForm
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.THiddenDangerStandingBookMapper
;
import
com.zehong.system.domain.THiddenDangerStandingBook
;
import
com.zehong.system.service.ITHiddenDangerStandingBookService
;
/**
* 隐患整治台账Service业务层处理
*
* @author zehong
* @date 2022-02-09
*/
@Service
public
class
THiddenDangerStandingBookServiceImpl
implements
ITHiddenDangerStandingBookService
{
@Autowired
private
THiddenDangerStandingBookMapper
tHiddenDangerStandingBookMapper
;
/**
* 查询隐患整治台账
*
* @param hiddenId 隐患整治台账ID
* @return 隐患整治台账
*/
@Override
public
THiddenDangerStandingBook
selectTHiddenDangerStandingBookById
(
Long
hiddenId
)
{
return
tHiddenDangerStandingBookMapper
.
selectTHiddenDangerStandingBookById
(
hiddenId
);
}
/**
* 查询隐患整治台账列表
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 隐患整治台账
*/
@Override
public
List
<
THiddenDangerStandingBook
>
selectTHiddenDangerStandingBookList
(
THiddenDangerStandingBookForm
tHiddenDangerStandingBook
)
{
return
tHiddenDangerStandingBookMapper
.
selectTHiddenDangerStandingBookList
(
tHiddenDangerStandingBook
);
}
/**
* 新增隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
@Override
public
int
insertTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
)
{
tHiddenDangerStandingBook
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tHiddenDangerStandingBookMapper
.
insertTHiddenDangerStandingBook
(
tHiddenDangerStandingBook
);
}
/**
* 修改隐患整治台账
*
* @param tHiddenDangerStandingBook 隐患整治台账
* @return 结果
*/
@Override
public
int
updateTHiddenDangerStandingBook
(
THiddenDangerStandingBook
tHiddenDangerStandingBook
)
{
tHiddenDangerStandingBook
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tHiddenDangerStandingBookMapper
.
updateTHiddenDangerStandingBook
(
tHiddenDangerStandingBook
);
}
/**
* 批量删除隐患整治台账
*
* @param hiddenIds 需要删除的隐患整治台账ID
* @return 结果
*/
@Override
public
int
deleteTHiddenDangerStandingBookByIds
(
Long
[]
hiddenIds
)
{
return
tHiddenDangerStandingBookMapper
.
deleteTHiddenDangerStandingBookByIds
(
hiddenIds
);
}
/**
* 删除隐患整治台账信息
*
* @param hiddenId 隐患整治台账ID
* @return 结果
*/
@Override
public
int
deleteTHiddenDangerStandingBookById
(
Long
hiddenId
)
{
return
tHiddenDangerStandingBookMapper
.
deleteTHiddenDangerStandingBookById
(
hiddenId
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TSafeEquipmentStandingBookServiceImpl.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.system.domain.form.TSafeEquipmentStandingBookForm
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TSafeEquipmentStandingBookMapper
;
import
com.zehong.system.domain.TSafeEquipmentStandingBook
;
import
com.zehong.system.service.ITSafeEquipmentStandingBookService
;
/**
* 用户加装安全装置台账Service业务层处理
*
* @author zehong
* @date 2022-02-09
*/
@Service
public
class
TSafeEquipmentStandingBookServiceImpl
implements
ITSafeEquipmentStandingBookService
{
@Autowired
private
TSafeEquipmentStandingBookMapper
tSafeEquipmentStandingBookMapper
;
/**
* 查询用户加装安全装置台账
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 用户加装安全装置台账
*/
@Override
public
TSafeEquipmentStandingBook
selectTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
)
{
return
tSafeEquipmentStandingBookMapper
.
selectTSafeEquipmentStandingBookById
(
safeEquipmentId
);
}
/**
* 查询用户加装安全装置台账列表
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 用户加装安全装置台账
*/
@Override
public
List
<
TSafeEquipmentStandingBook
>
selectTSafeEquipmentStandingBookList
(
TSafeEquipmentStandingBookForm
tSafeEquipmentStandingBook
)
{
return
tSafeEquipmentStandingBookMapper
.
selectTSafeEquipmentStandingBookList
(
tSafeEquipmentStandingBook
);
}
/**
* 新增用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
@Override
public
int
insertTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
)
{
tSafeEquipmentStandingBook
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tSafeEquipmentStandingBookMapper
.
insertTSafeEquipmentStandingBook
(
tSafeEquipmentStandingBook
);
}
/**
* 修改用户加装安全装置台账
*
* @param tSafeEquipmentStandingBook 用户加装安全装置台账
* @return 结果
*/
@Override
public
int
updateTSafeEquipmentStandingBook
(
TSafeEquipmentStandingBook
tSafeEquipmentStandingBook
)
{
tSafeEquipmentStandingBook
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tSafeEquipmentStandingBookMapper
.
updateTSafeEquipmentStandingBook
(
tSafeEquipmentStandingBook
);
}
/**
* 批量删除用户加装安全装置台账
*
* @param safeEquipmentIds 需要删除的用户加装安全装置台账ID
* @return 结果
*/
@Override
public
int
deleteTSafeEquipmentStandingBookByIds
(
Long
[]
safeEquipmentIds
)
{
return
tSafeEquipmentStandingBookMapper
.
deleteTSafeEquipmentStandingBookByIds
(
safeEquipmentIds
);
}
/**
* 删除用户加装安全装置台账信息
*
* @param safeEquipmentId 用户加装安全装置台账ID
* @return 结果
*/
@Override
public
int
deleteTSafeEquipmentStandingBookById
(
Long
safeEquipmentId
)
{
return
tSafeEquipmentStandingBookMapper
.
deleteTSafeEquipmentStandingBookById
(
safeEquipmentId
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TTroubleStandingBookServiceImpl.java
0 → 100644
View file @
164b681a
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.system.domain.form.TTroubleStandingBookForm
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TTroubleStandingBookMapper
;
import
com.zehong.system.domain.TTroubleStandingBook
;
import
com.zehong.system.service.ITTroubleStandingBookService
;
/**
* 事故台账Service业务层处理
*
* @author zehong
* @date 2022-02-09
*/
@Service
public
class
TTroubleStandingBookServiceImpl
implements
ITTroubleStandingBookService
{
@Autowired
private
TTroubleStandingBookMapper
tTroubleStandingBookMapper
;
/**
* 查询事故台账
*
* @param troubleId 事故台账ID
* @return 事故台账
*/
@Override
public
TTroubleStandingBook
selectTTroubleStandingBookById
(
Long
troubleId
)
{
return
tTroubleStandingBookMapper
.
selectTTroubleStandingBookById
(
troubleId
);
}
/**
* 查询事故台账列表
*
* @param tTroubleStandingBook 事故台账
* @return 事故台账
*/
@Override
public
List
<
TTroubleStandingBook
>
selectTTroubleStandingBookList
(
TTroubleStandingBookForm
tTroubleStandingBook
)
{
return
tTroubleStandingBookMapper
.
selectTTroubleStandingBookList
(
tTroubleStandingBook
);
}
/**
* 新增事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
@Override
public
int
insertTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
)
{
tTroubleStandingBook
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tTroubleStandingBookMapper
.
insertTTroubleStandingBook
(
tTroubleStandingBook
);
}
/**
* 修改事故台账
*
* @param tTroubleStandingBook 事故台账
* @return 结果
*/
@Override
public
int
updateTTroubleStandingBook
(
TTroubleStandingBook
tTroubleStandingBook
)
{
tTroubleStandingBook
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tTroubleStandingBookMapper
.
updateTTroubleStandingBook
(
tTroubleStandingBook
);
}
/**
* 批量删除事故台账
*
* @param troubleIds 需要删除的事故台账ID
* @return 结果
*/
@Override
public
int
deleteTTroubleStandingBookByIds
(
Long
[]
troubleIds
)
{
return
tTroubleStandingBookMapper
.
deleteTTroubleStandingBookByIds
(
troubleIds
);
}
/**
* 删除事故台账信息
*
* @param troubleId 事故台账ID
* @return 结果
*/
@Override
public
int
deleteTTroubleStandingBookById
(
Long
troubleId
)
{
return
tTroubleStandingBookMapper
.
deleteTTroubleStandingBookById
(
troubleId
);
}
}
gassafetyprogress-system/src/main/resources/mapper/system/THiddenDangerStandingBookMapper.xml
0 → 100644
View file @
164b681a
<?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.THiddenDangerStandingBookMapper"
>
<resultMap
type=
"THiddenDangerStandingBook"
id=
"THiddenDangerStandingBookResult"
>
<result
property=
"hiddenId"
column=
"hidden_id"
/>
<result
property=
"hiddenTitle"
column=
"hidden_title"
/>
<result
property=
"hiddenContent"
column=
"hidden_content"
/>
<result
property=
"hiddenLocation"
column=
"hidden_location"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"hiddenType"
column=
"hidden_type"
/>
<result
property=
"hiddenFindPeople"
column=
"hidden_find_people"
/>
<result
property=
"hiddenFindDate"
column=
"hidden_find_date"
/>
<result
property=
"dealPlan"
column=
"deal_plan"
/>
<result
property=
"remediation"
column=
"remediation"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTHiddenDangerStandingBookVo"
>
select hidden_id, hidden_title, hidden_content, hidden_location, longitude, latitude, hidden_type, hidden_find_people, hidden_find_date, deal_plan, remediation, create_by, create_time, update_by, update_time, is_del, remarks from t_hidden_danger_standing_book
</sql>
<select
id=
"selectTHiddenDangerStandingBookList"
parameterType=
"THiddenDangerStandingBookForm"
resultMap=
"THiddenDangerStandingBookResult"
>
<include
refid=
"selectTHiddenDangerStandingBookVo"
/>
<where>
is_del = '0'
<if
test=
"hiddenTitle != null and hiddenTitle != ''"
>
and hidden_title like concat('%', #{hiddenTitle}, '%')
</if>
<if
test=
"hiddenType != null and hiddenType != ''"
>
and hidden_type = #{hiddenType}
</if>
<if
test=
"hiddenFindDateStart != null "
>
and hidden_find_date
>
= #{hiddenFindDateStart}
</if>
<if
test=
"hiddenFindDateEnd != null "
>
and hidden_find_date
<
= #{hiddenFindDateEnd}
</if>
</where>
</select>
<select
id=
"selectTHiddenDangerStandingBookById"
parameterType=
"Long"
resultMap=
"THiddenDangerStandingBookResult"
>
<include
refid=
"selectTHiddenDangerStandingBookVo"
/>
where hidden_id = #{hiddenId}
</select>
<insert
id=
"insertTHiddenDangerStandingBook"
parameterType=
"THiddenDangerStandingBook"
useGeneratedKeys=
"true"
keyProperty=
"hiddenId"
>
insert into t_hidden_danger_standing_book
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiddenTitle != null"
>
hidden_title,
</if>
<if
test=
"hiddenContent != null"
>
hidden_content,
</if>
<if
test=
"hiddenLocation != null"
>
hidden_location,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"hiddenType != null"
>
hidden_type,
</if>
<if
test=
"hiddenFindPeople != null"
>
hidden_find_people,
</if>
<if
test=
"hiddenFindDate != null"
>
hidden_find_date,
</if>
<if
test=
"dealPlan != null"
>
deal_plan,
</if>
<if
test=
"remediation != null"
>
remediation,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiddenTitle != null"
>
#{hiddenTitle},
</if>
<if
test=
"hiddenContent != null"
>
#{hiddenContent},
</if>
<if
test=
"hiddenLocation != null"
>
#{hiddenLocation},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"hiddenType != null"
>
#{hiddenType},
</if>
<if
test=
"hiddenFindPeople != null"
>
#{hiddenFindPeople},
</if>
<if
test=
"hiddenFindDate != null"
>
#{hiddenFindDate},
</if>
<if
test=
"dealPlan != null"
>
#{dealPlan},
</if>
<if
test=
"remediation != null"
>
#{remediation},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTHiddenDangerStandingBook"
parameterType=
"THiddenDangerStandingBook"
>
update t_hidden_danger_standing_book
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"hiddenTitle != null"
>
hidden_title = #{hiddenTitle},
</if>
<if
test=
"hiddenContent != null"
>
hidden_content = #{hiddenContent},
</if>
<if
test=
"hiddenLocation != null"
>
hidden_location = #{hiddenLocation},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"hiddenType != null"
>
hidden_type = #{hiddenType},
</if>
<if
test=
"hiddenFindPeople != null"
>
hidden_find_people = #{hiddenFindPeople},
</if>
<if
test=
"hiddenFindDate != null"
>
hidden_find_date = #{hiddenFindDate},
</if>
<if
test=
"dealPlan != null"
>
deal_plan = #{dealPlan},
</if>
<if
test=
"remediation != null"
>
remediation = #{remediation},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where hidden_id = #{hiddenId}
</update>
<delete
id=
"deleteTHiddenDangerStandingBookById"
parameterType=
"Long"
>
delete from t_hidden_danger_standing_book where hidden_id = #{hiddenId}
</delete>
<delete
id=
"deleteTHiddenDangerStandingBookByIds"
parameterType=
"String"
>
delete from t_hidden_danger_standing_book where hidden_id in
<foreach
item=
"hiddenId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{hiddenId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafetyprogress-system/src/main/resources/mapper/system/TSafeEquipmentStandingBookMapper.xml
0 → 100644
View file @
164b681a
<?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.TSafeEquipmentStandingBookMapper"
>
<resultMap
type=
"TSafeEquipmentStandingBook"
id=
"TSafeEquipmentStandingBookResult"
>
<result
property=
"safeEquipmentId"
column=
"safe_equipment_id"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"userNo"
column=
"user_no"
/>
<result
property=
"userAddress"
column=
"user_address"
/>
<result
property=
"idCard"
column=
"id_card"
/>
<result
property=
"linkMobile"
column=
"link_mobile"
/>
<result
property=
"installTime"
column=
"install_time"
/>
<result
property=
"brandName"
column=
"brand_name"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTSafeEquipmentStandingBookVo"
>
select safe_equipment_id, user_name, user_no, user_address, id_card, link_mobile, install_time, brand_name, create_by, create_time, update_by, update_time, is_del, remarks from t_safe_equipment_standing_book
</sql>
<select
id=
"selectTSafeEquipmentStandingBookList"
parameterType=
"TSafeEquipmentStandingBookForm"
resultMap=
"TSafeEquipmentStandingBookResult"
>
<include
refid=
"selectTSafeEquipmentStandingBookVo"
/>
<where>
is_del = '0'
<if
test=
"userName != null and userName != ''"
>
and user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"linkMobile != null and linkMobile != ''"
>
and link_mobile like concat('%', #{linkMobile}, '%')
</if>
<if
test=
"installTimeStart != null "
>
and install_time
>
= #{installTimeStart}
</if>
<if
test=
"installTimeEnd != null "
>
and install_time
<
= #{installTimeEnd}
</if>
</where>
</select>
<select
id=
"selectTSafeEquipmentStandingBookById"
parameterType=
"Long"
resultMap=
"TSafeEquipmentStandingBookResult"
>
<include
refid=
"selectTSafeEquipmentStandingBookVo"
/>
where safe_equipment_id = #{safeEquipmentId}
</select>
<insert
id=
"insertTSafeEquipmentStandingBook"
parameterType=
"TSafeEquipmentStandingBook"
useGeneratedKeys=
"true"
keyProperty=
"safeEquipmentId"
>
insert into t_safe_equipment_standing_book
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userName != null"
>
user_name,
</if>
<if
test=
"userNo != null"
>
user_no,
</if>
<if
test=
"userAddress != null"
>
user_address,
</if>
<if
test=
"idCard != null"
>
id_card,
</if>
<if
test=
"linkMobile != null"
>
link_mobile,
</if>
<if
test=
"installTime != null"
>
install_time,
</if>
<if
test=
"brandName != null"
>
brand_name,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userName != null"
>
#{userName},
</if>
<if
test=
"userNo != null"
>
#{userNo},
</if>
<if
test=
"userAddress != null"
>
#{userAddress},
</if>
<if
test=
"idCard != null"
>
#{idCard},
</if>
<if
test=
"linkMobile != null"
>
#{linkMobile},
</if>
<if
test=
"installTime != null"
>
#{installTime},
</if>
<if
test=
"brandName != null"
>
#{brandName},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTSafeEquipmentStandingBook"
parameterType=
"TSafeEquipmentStandingBook"
>
update t_safe_equipment_standing_book
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"userName != null"
>
user_name = #{userName},
</if>
<if
test=
"userNo != null"
>
user_no = #{userNo},
</if>
<if
test=
"userAddress != null"
>
user_address = #{userAddress},
</if>
<if
test=
"idCard != null"
>
id_card = #{idCard},
</if>
<if
test=
"linkMobile != null"
>
link_mobile = #{linkMobile},
</if>
<if
test=
"installTime != null"
>
install_time = #{installTime},
</if>
<if
test=
"brandName != null"
>
brand_name = #{brandName},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where safe_equipment_id = #{safeEquipmentId}
</update>
<delete
id=
"deleteTSafeEquipmentStandingBookById"
parameterType=
"Long"
>
delete from t_safe_equipment_standing_book where safe_equipment_id = #{safeEquipmentId}
</delete>
<delete
id=
"deleteTSafeEquipmentStandingBookByIds"
parameterType=
"String"
>
delete from t_safe_equipment_standing_book where safe_equipment_id in
<foreach
item=
"safeEquipmentId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{safeEquipmentId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafetyprogress-system/src/main/resources/mapper/system/TTroubleStandingBookMapper.xml
0 → 100644
View file @
164b681a
<?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.TTroubleStandingBookMapper"
>
<resultMap
type=
"TTroubleStandingBook"
id=
"TTroubleStandingBookResult"
>
<result
property=
"troubleId"
column=
"trouble_id"
/>
<result
property=
"troubleName"
column=
"trouble_name"
/>
<result
property=
"troubleLocation"
column=
"trouble_location"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"troubleType"
column=
"trouble_type"
/>
<result
property=
"briefProcess"
column=
"brief_process"
/>
<result
property=
"troubleReason"
column=
"trouble_reason"
/>
<result
property=
"responsibleUnit"
column=
"responsible_unit"
/>
<result
property=
"responsiblePeople"
column=
"responsible_people"
/>
<result
property=
"isDeal"
column=
"is_deal"
/>
<result
property=
"dealDate"
column=
"deal_date"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTTroubleStandingBookVo"
>
select trouble_id, trouble_name, trouble_location, longitude, latitude, trouble_type, brief_process, trouble_reason, responsible_unit, responsible_people, is_deal, deal_date, create_by, create_time, update_by, update_time, is_del, remarks from t_trouble_standing_book
</sql>
<select
id=
"selectTTroubleStandingBookList"
parameterType=
"TTroubleStandingBookForm"
resultMap=
"TTroubleStandingBookResult"
>
<include
refid=
"selectTTroubleStandingBookVo"
/>
<where>
is_del = '0'
<if
test=
"troubleName != null and troubleName != ''"
>
and trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"troubleType != null and troubleType != ''"
>
and trouble_type = #{troubleType}
</if>
<if
test=
"isDeal != null and isDeal != ''"
>
and is_deal = #{isDeal}
</if>
<if
test=
"dealDateStart != null "
>
and deal_date
>
= #{dealDateStart}
</if>
<if
test=
"dealDateEnd != null "
>
and deal_date
<
= #{dealDateEnd}
</if>
</where>
</select>
<select
id=
"selectTTroubleStandingBookById"
parameterType=
"Long"
resultMap=
"TTroubleStandingBookResult"
>
<include
refid=
"selectTTroubleStandingBookVo"
/>
where trouble_id = #{troubleId}
</select>
<insert
id=
"insertTTroubleStandingBook"
parameterType=
"TTroubleStandingBook"
useGeneratedKeys=
"true"
keyProperty=
"troubleId"
>
insert into t_trouble_standing_book
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"troubleName != null"
>
trouble_name,
</if>
<if
test=
"troubleLocation != null"
>
trouble_location,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"troubleType != null"
>
trouble_type,
</if>
<if
test=
"briefProcess != null"
>
brief_process,
</if>
<if
test=
"troubleReason != null"
>
trouble_reason,
</if>
<if
test=
"responsibleUnit != null"
>
responsible_unit,
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people,
</if>
<if
test=
"isDeal != null"
>
is_deal,
</if>
<if
test=
"dealDate != null"
>
deal_date,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"troubleName != null"
>
#{troubleName},
</if>
<if
test=
"troubleLocation != null"
>
#{troubleLocation},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"troubleType != null"
>
#{troubleType},
</if>
<if
test=
"briefProcess != null"
>
#{briefProcess},
</if>
<if
test=
"troubleReason != null"
>
#{troubleReason},
</if>
<if
test=
"responsibleUnit != null"
>
#{responsibleUnit},
</if>
<if
test=
"responsiblePeople != null"
>
#{responsiblePeople},
</if>
<if
test=
"isDeal != null"
>
#{isDeal},
</if>
<if
test=
"dealDate != null"
>
#{dealDate},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTTroubleStandingBook"
parameterType=
"TTroubleStandingBook"
>
update t_trouble_standing_book
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"troubleName != null"
>
trouble_name = #{troubleName},
</if>
<if
test=
"troubleLocation != null"
>
trouble_location = #{troubleLocation},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"troubleType != null"
>
trouble_type = #{troubleType},
</if>
<if
test=
"briefProcess != null"
>
brief_process = #{briefProcess},
</if>
<if
test=
"troubleReason != null"
>
trouble_reason = #{troubleReason},
</if>
<if
test=
"responsibleUnit != null"
>
responsible_unit = #{responsibleUnit},
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people = #{responsiblePeople},
</if>
<if
test=
"isDeal != null"
>
is_deal = #{isDeal},
</if>
<if
test=
"dealDate != null"
>
deal_date = #{dealDate},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where trouble_id = #{troubleId}
</update>
<delete
id=
"deleteTTroubleStandingBookById"
parameterType=
"Long"
>
delete from t_trouble_standing_book where trouble_id = #{troubleId}
</delete>
<delete
id=
"deleteTTroubleStandingBookByIds"
parameterType=
"String"
>
delete from t_trouble_standing_book where trouble_id in
<foreach
item=
"troubleId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{troubleId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
gassafetyprogress-web/src/api/standingBook/equipment.js
0 → 100644
View file @
164b681a
import
request
from
'@/utils/request'
// 查询用户加装安全装置台账列表
export
function
listEquipment
(
query
)
{
return
request
({
url
:
'/standingBook/equipment/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询用户加装安全装置台账详细
export
function
getEquipment
(
safeEquipmentId
)
{
return
request
({
url
:
'/standingBook/equipment/'
+
safeEquipmentId
,
method
:
'get'
})
}
// 新增用户加装安全装置台账
export
function
addEquipment
(
data
)
{
return
request
({
url
:
'/standingBook/equipment'
,
method
:
'post'
,
data
:
data
})
}
// 修改用户加装安全装置台账
export
function
updateEquipment
(
data
)
{
return
request
({
url
:
'/standingBook/equipment'
,
method
:
'put'
,
data
:
data
})
}
// 删除用户加装安全装置台账
export
function
delEquipment
(
safeEquipmentId
)
{
return
request
({
url
:
'/standingBook/equipment/'
+
safeEquipmentId
,
method
:
'delete'
})
}
// 导出用户加装安全装置台账
export
function
exportEquipment
(
query
)
{
return
request
({
url
:
'/standingBook/equipment/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafetyprogress-web/src/api/standingBook/hidden.js
0 → 100644
View file @
164b681a
import
request
from
'@/utils/request'
// 查询隐患整治台账列表
export
function
listHidden
(
query
)
{
return
request
({
url
:
'/standingBook/hidden/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询隐患整治台账详细
export
function
getHidden
(
hiddenId
)
{
return
request
({
url
:
'/standingBook/hidden/'
+
hiddenId
,
method
:
'get'
})
}
// 新增隐患整治台账
export
function
addHidden
(
data
)
{
return
request
({
url
:
'/standingBook/hidden'
,
method
:
'post'
,
data
:
data
})
}
// 修改隐患整治台账
export
function
updateHidden
(
data
)
{
return
request
({
url
:
'/standingBook/hidden'
,
method
:
'put'
,
data
:
data
})
}
// 删除隐患整治台账
export
function
delHidden
(
hiddenId
)
{
return
request
({
url
:
'/standingBook/hidden/'
+
hiddenId
,
method
:
'delete'
})
}
// 导出隐患整治台账
export
function
exportHidden
(
query
)
{
return
request
({
url
:
'/standingBook/hidden/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafetyprogress-web/src/api/standingBook/trouble.js
0 → 100644
View file @
164b681a
import
request
from
'@/utils/request'
// 查询事故台账列表
export
function
listTrouble
(
query
)
{
return
request
({
url
:
'/standingBook/trouble/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询事故台账详细
export
function
getTrouble
(
troubleId
)
{
return
request
({
url
:
'/standingBook/trouble/'
+
troubleId
,
method
:
'get'
})
}
// 新增事故台账
export
function
addTrouble
(
data
)
{
return
request
({
url
:
'/standingBook/trouble'
,
method
:
'post'
,
data
:
data
})
}
// 修改事故台账
export
function
updateTrouble
(
data
)
{
return
request
({
url
:
'/standingBook/trouble'
,
method
:
'put'
,
data
:
data
})
}
// 删除事故台账
export
function
delTrouble
(
troubleId
)
{
return
request
({
url
:
'/standingBook/trouble/'
+
troubleId
,
method
:
'delete'
})
}
// 导出事故台账
export
function
exportTrouble
(
query
)
{
return
request
({
url
:
'/standingBook/trouble/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
gassafetyprogress-web/src/views/standingBook/equipment/index.vue
0 → 100644
View file @
164b681a
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/standingBook/equipmentDetail/index.vue
0 → 100644
View file @
164b681a
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
燃气用户加装安全装置台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"100px"
style=
"width: 100%;"
>
<el-row>
<el-form-item
label=
"台账编号:"
prop=
"safeEquipmentId"
>
<font>
{{
form
.
safeEquipmentId
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户名称:"
prop=
"userName"
>
<font>
{{
form
.
userName
}}
</font>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"idCard"
>
<font>
{{
form
.
idCard
}}
</font>
</el-form-item>
<el-form-item
label=
"品牌名称:"
prop=
"brandName"
>
<font
v-if=
"form.brandName != '' && form.brandName != null"
>
{{
form
.
brandName
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户编号:"
prop=
"userNo"
>
<font
v-if=
"form.userNo != '' && form.userNo != null"
>
{{
form
.
userNo
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"linkMobile"
>
<font>
{{
form
.
linkMobile
}}
</font>
</el-form-item>
<el-form-item
label=
"安装时间:"
prop=
"installTime"
>
<font>
{{
form
.
installTime
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"详细地址:"
prop=
"userAddress"
>
<font>
{{
form
.
userAddress
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getEquipment
}
from
"@/api/standingBook/equipment"
;
export
default
{
name
:
"equipmentDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
safeEquipmentId
=
this
.
$route
.
query
.
safeEquipmentId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getEquipment
(
this
.
safeEquipmentId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
script
>
gassafetyprogress-web/src/views/standingBook/hidden/index.vue
0 → 100644
View file @
164b681a
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/standingBook/hiddenDetail/index.vue
0 → 100644
View file @
164b681a
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
隐患整治台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"100px"
style=
"width: 100%;"
>
<el-row>
<el-form-item
label=
"台账编号:"
prop=
"hiddenId"
>
<font>
{{
form
.
hiddenId
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户名称:"
prop=
"userName"
>
<font>
{{
form
.
userName
}}
</font>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"idCard"
>
<font>
{{
form
.
idCard
}}
</font>
</el-form-item>
<el-form-item
label=
"品牌名称:"
prop=
"brandName"
>
<font
v-if=
"form.brandName != '' && form.brandName != null"
>
{{
form
.
brandName
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户编号:"
prop=
"userNo"
>
<font
v-if=
"form.userNo != '' && form.userNo != null"
>
{{
form
.
userNo
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"linkMobile"
>
<font>
{{
form
.
linkMobile
}}
</font>
</el-form-item>
<el-form-item
label=
"安装时间:"
prop=
"installTime"
>
<font>
{{
form
.
installTime
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"详细地址:"
prop=
"userAddress"
>
<font>
{{
form
.
userAddress
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getHidden
}
from
"@/api/standingBook/hidden"
;
export
default
{
name
:
"hiddenDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
hiddenId
=
this
.
$route
.
query
.
hiddenId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getHidden
(
this
.
hiddenId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
script
>
gassafetyprogress-web/src/views/standingBook/trouble/index.vue
0 → 100644
View file @
164b681a
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/standingBook/troubleDetail/index.vue
0 → 100644
View file @
164b681a
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
燃气事故台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"100px"
style=
"width: 100%;"
>
<el-row>
<el-form-item
label=
"台账编号:"
prop=
"troubleId"
>
<font>
{{
form
.
troubleId
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户名称:"
prop=
"userName"
>
<font>
{{
form
.
userName
}}
</font>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"idCard"
>
<font>
{{
form
.
idCard
}}
</font>
</el-form-item>
<el-form-item
label=
"品牌名称:"
prop=
"brandName"
>
<font
v-if=
"form.brandName != '' && form.brandName != null"
>
{{
form
.
brandName
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户编号:"
prop=
"userNo"
>
<font
v-if=
"form.userNo != '' && form.userNo != null"
>
{{
form
.
userNo
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"linkMobile"
>
<font>
{{
form
.
linkMobile
}}
</font>
</el-form-item>
<el-form-item
label=
"安装时间:"
prop=
"installTime"
>
<font>
{{
form
.
installTime
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"详细地址:"
prop=
"userAddress"
>
<font>
{{
form
.
userAddress
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getTrouble
}
from
"@/api/standingBook/trouble"
;
export
default
{
name
:
"troubleDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
troubleId
=
this
.
$route
.
query
.
troubleId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getTrouble
(
this
.
troubleId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
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