Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
4a0726b8
Commit
4a0726b8
authored
Apr 19, 2024
by
军师中郎将
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运行监测 - 增加 重大污染源模块
应急处置 - 增加 应急演练模块
parent
bf1fcec5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
2207 additions
and
7 deletions
+2207
-7
TEmergencyDrillsController.java
.../web/controller/energency/TEmergencyDrillsController.java
+103
-0
TSupMajorHazardController.java
...g/web/controller/energency/TSupMajorHazardController.java
+104
-0
application-prd.yml
zh-baseversion-admin/src/main/resources/application-prd.yml
+2
-2
application-test.yml
zh-baseversion-admin/src/main/resources/application-test.yml
+6
-5
TEmergencyDrills.java
.../main/java/com/zehong/system/domain/TEmergencyDrills.java
+176
-0
TSupMajorHazard.java
...c/main/java/com/zehong/system/domain/TSupMajorHazard.java
+201
-0
TEmergencyDrillsMapper.java
...java/com/zehong/system/mapper/TEmergencyDrillsMapper.java
+61
-0
TSupMajorHazardMapper.java
.../java/com/zehong/system/mapper/TSupMajorHazardMapper.java
+69
-0
ITEmergencyDrillsService.java
...a/com/zehong/system/service/ITEmergencyDrillsService.java
+61
-0
ITSupMajorHazardService.java
...va/com/zehong/system/service/ITSupMajorHazardService.java
+69
-0
TEmergencyDrillsServiceImpl.java
...hong/system/service/impl/TEmergencyDrillsServiceImpl.java
+93
-0
TSupMajorHazardServiceImpl.java
...ehong/system/service/impl/TSupMajorHazardServiceImpl.java
+104
-0
TEmergencyDrillsMapper.xml
...c/main/resources/mapper/system/TEmergencyDrillsMapper.xml
+104
-0
TSupMajorHazardMapper.xml
...rc/main/resources/mapper/system/TSupMajorHazardMapper.xml
+142
-0
record.js
zh-baseversion-web/src/api/emergencydrills/record.js
+53
-0
record.js
zh-baseversion-web/src/api/majorpollsourcelevel/record.js
+53
-0
index.vue
...aseversion-web/src/views/emergencydrills/record/index.vue
+351
-0
index.vue
...rsion-web/src/views/majorpollsourcelevel/record/index.vue
+455
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/energency/TEmergencyDrillsController.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
web
.
controller
.
energency
;
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.TEmergencyDrills
;
import
com.zehong.system.service.ITEmergencyDrillsService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 应急演练Controller
*
* @author zehong
* @date 2024-04-19
*/
@RestController
@RequestMapping
(
"/emergencydrills/record"
)
public
class
TEmergencyDrillsController
extends
BaseController
{
@Autowired
private
ITEmergencyDrillsService
tEmergencyDrillsService
;
/**
* 查询应急演练列表
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TEmergencyDrills
tEmergencyDrills
)
{
startPage
();
List
<
TEmergencyDrills
>
list
=
tEmergencyDrillsService
.
selectTEmergencyDrillsList
(
tEmergencyDrills
);
return
getDataTable
(
list
);
}
/**
* 导出应急演练列表
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:export')"
)
@Log
(
title
=
"应急演练"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TEmergencyDrills
tEmergencyDrills
)
{
List
<
TEmergencyDrills
>
list
=
tEmergencyDrillsService
.
selectTEmergencyDrillsList
(
tEmergencyDrills
);
ExcelUtil
<
TEmergencyDrills
>
util
=
new
ExcelUtil
<
TEmergencyDrills
>(
TEmergencyDrills
.
class
);
return
util
.
exportExcel
(
list
,
"应急演练数据"
);
}
/**
* 获取应急演练详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:query')"
)
@GetMapping
(
value
=
"/getDetail/{fDrillsId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fDrillsId"
)
Long
fDrillsId
)
{
return
AjaxResult
.
success
(
tEmergencyDrillsService
.
selectTEmergencyDrillsById
(
fDrillsId
));
}
/**
* 新增应急演练
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:add')"
)
@Log
(
title
=
"应急演练"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TEmergencyDrills
tEmergencyDrills
)
{
return
toAjax
(
tEmergencyDrillsService
.
insertTEmergencyDrills
(
tEmergencyDrills
));
}
/**
* 修改应急演练
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:edit')"
)
@Log
(
title
=
"应急演练"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TEmergencyDrills
tEmergencyDrills
)
{
return
toAjax
(
tEmergencyDrillsService
.
updateTEmergencyDrills
(
tEmergencyDrills
));
}
/**
* 删除应急演练
*/
@PreAuthorize
(
"@ss.hasPermi('emergencydrills:record:remove')"
)
@Log
(
title
=
"应急演练"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fDrillsIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fDrillsIds
)
{
return
toAjax
(
tEmergencyDrillsService
.
deleteTEmergencyDrillsByIds
(
fDrillsIds
));
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/energency/TSupMajorHazardController.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
web
.
controller
.
energency
;
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.TSupMajorHazard
;
import
com.zehong.system.service.ITSupMajorHazardService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 重大危险源监管Controller
*
* @author zehong
* @date 2024-04-19
*/
@RestController
@RequestMapping
(
"/majorpollsourcelevel/record"
)
public
class
TSupMajorHazardController
extends
BaseController
{
@Autowired
private
ITSupMajorHazardService
tSupMajorHazardService
;
/**
* 查询重大危险源监管列表
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TSupMajorHazard
tSupMajorHazard
)
{
startPage
();
List
<
TSupMajorHazard
>
list
=
tSupMajorHazardService
.
selectTSupMajorHazardList
(
tSupMajorHazard
);
return
getDataTable
(
list
);
}
/**
* 导出重大危险源监管列表
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:export')"
)
@Log
(
title
=
"重大危险源监管"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TSupMajorHazard
tSupMajorHazard
)
{
//导出
List
<
TSupMajorHazard
>
list
=
tSupMajorHazardService
.
exportselectTSupMajorHazardList
(
tSupMajorHazard
);
ExcelUtil
<
TSupMajorHazard
>
util
=
new
ExcelUtil
<
TSupMajorHazard
>(
TSupMajorHazard
.
class
);
return
util
.
exportExcel
(
list
,
"重大危险源监管数据"
);
}
/**
* 获取重大危险源监管详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:query')"
)
@GetMapping
(
value
=
"/{fHazardId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fHazardId"
)
Long
fHazardId
)
{
return
AjaxResult
.
success
(
tSupMajorHazardService
.
selectTSupMajorHazardById
(
fHazardId
));
}
/**
* 新增重大危险源监管
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:add')"
)
@Log
(
title
=
"重大危险源监管"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TSupMajorHazard
tSupMajorHazard
)
{
return
toAjax
(
tSupMajorHazardService
.
insertTSupMajorHazard
(
tSupMajorHazard
));
}
/**
* 修改重大危险源监管
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:edit')"
)
@Log
(
title
=
"重大危险源监管"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TSupMajorHazard
tSupMajorHazard
)
{
return
toAjax
(
tSupMajorHazardService
.
updateTSupMajorHazard
(
tSupMajorHazard
));
}
/**
* 删除重大危险源监管
*/
@PreAuthorize
(
"@ss.hasPermi('majorpollsourcelevel:record:remove')"
)
@Log
(
title
=
"重大危险源监管"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fHazardIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fHazardIds
)
{
return
toAjax
(
tSupMajorHazardService
.
deleteTSupMajorHazardByIds
(
fHazardIds
));
}
}
zh-baseversion-admin/src/main/resources/application-prd.yml
View file @
4a0726b8
...
...
@@ -58,9 +58,9 @@ spring:
# redis 配置
redis
:
# 地址
host
:
27.128.233.145
host
:
121.29.1.158
# 端口,默认为6379
port
:
63
79
port
:
63
80
# 数据库索引
database
:
0
# 密码
...
...
zh-baseversion-admin/src/main/resources/application-test.yml
View file @
4a0726b8
...
...
@@ -6,9 +6,9 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://
27.128.239.197:8902
/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://
121.29.1.158:33060
/gas_progress_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
gas_progress_db
password
:
RMtiC6YCzdLxeJL
password
:
RMtiC6YCzdLxeJ
J
L
# 从库数据源
slave
:
# 从数据源开关/默认关闭
...
...
@@ -59,13 +59,13 @@ spring:
redis
:
# 地址
# host: 36.139.41.10
host
:
27.128.239.197
host
:
121.29.1.158
# host: 36.139.125.48
# host: 36.139.41.83
#host: 121.29.1.158
# 端口,默认为6379
# port: 6379
port
:
8903
port
:
6380
# port: 6380
# 数据库索引
database
:
0
...
...
@@ -96,7 +96,8 @@ zehong:
# 实例演示开关
demoEnabled
:
true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile
:
/home/zehong/uploadPath
# profile: /home/zehong/uploadPath
profile
:
D:/20220924/othersoft/idea/workspace/zhkj/uploadPath
# 获取ip地址开关
addressEnabled
:
false
# 验证码类型 math 数组计算 char 字符验证
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TEmergencyDrills.java
0 → 100644
View file @
4a0726b8
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_emergency_drills
*
* @author zehong
* @date 2024-04-19
*/
public
class
TEmergencyDrills
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 演练ID */
private
Long
fDrillsId
;
/** 演练时间 */
@Excel
(
name
=
"演练时间"
)
private
String
fDrillsTime
;
/** 事件 */
@Excel
(
name
=
"事件"
)
private
String
fEvent
;
/** 地点 */
@Excel
(
name
=
"地点"
)
private
String
fPlace
;
/** 参与演练人员与部门 */
@Excel
(
name
=
"参与演练人员与部门"
)
private
String
fPerDep
;
/** 演练内容 */
@Excel
(
name
=
"演练内容"
)
private
String
fDrillsContent
;
/** 演练图片 */
private
String
fDrillsPicture
;
/** 创建时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fCreateTime
;
/** 修改时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fUpdateTime
;
/** 是否删除(0正常,1删除) */
private
String
fIsDel
;
/** 备注 */
private
String
fRemarks
;
public
void
setfDrillsId
(
Long
fDrillsId
)
{
this
.
fDrillsId
=
fDrillsId
;
}
public
Long
getfDrillsId
()
{
return
fDrillsId
;
}
public
void
setfDrillsTime
(
String
fDrillsTime
)
{
this
.
fDrillsTime
=
fDrillsTime
;
}
public
String
getfDrillsTime
()
{
return
fDrillsTime
;
}
public
void
setfEvent
(
String
fEvent
)
{
this
.
fEvent
=
fEvent
;
}
public
String
getfEvent
()
{
return
fEvent
;
}
public
void
setfPlace
(
String
fPlace
)
{
this
.
fPlace
=
fPlace
;
}
public
String
getfPlace
()
{
return
fPlace
;
}
public
void
setfPerDep
(
String
fPerDep
)
{
this
.
fPerDep
=
fPerDep
;
}
public
String
getfPerDep
()
{
return
fPerDep
;
}
public
void
setfDrillsContent
(
String
fDrillsContent
)
{
this
.
fDrillsContent
=
fDrillsContent
;
}
public
String
getfDrillsContent
()
{
return
fDrillsContent
;
}
public
void
setfDrillsPicture
(
String
fDrillsPicture
)
{
this
.
fDrillsPicture
=
fDrillsPicture
;
}
public
String
getfDrillsPicture
()
{
return
fDrillsPicture
;
}
public
void
setfCreateTime
(
Date
fCreateTime
)
{
this
.
fCreateTime
=
fCreateTime
;
}
public
Date
getfCreateTime
()
{
return
fCreateTime
;
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
{
this
.
fUpdateTime
=
fUpdateTime
;
}
public
Date
getfUpdateTime
()
{
return
fUpdateTime
;
}
public
void
setfIsDel
(
String
fIsDel
)
{
this
.
fIsDel
=
fIsDel
;
}
public
String
getfIsDel
()
{
return
fIsDel
;
}
public
void
setfRemarks
(
String
fRemarks
)
{
this
.
fRemarks
=
fRemarks
;
}
public
String
getfRemarks
()
{
return
fRemarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fDrillsId"
,
getfDrillsId
())
.
append
(
"fDrillsTime"
,
getfDrillsTime
())
.
append
(
"fEvent"
,
getfEvent
())
.
append
(
"fPlace"
,
getfPlace
())
.
append
(
"fPerDep"
,
getfPerDep
())
.
append
(
"fDrillsContent"
,
getfDrillsContent
())
.
append
(
"fDrillsPicture"
,
getfDrillsPicture
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fIsDel"
,
getfIsDel
())
.
append
(
"fRemarks"
,
getfRemarks
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TSupMajorHazard.java
0 → 100644
View file @
4a0726b8
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_sup_major_hazard
*
* @author zehong
* @date 2024-04-19
*/
public
class
TSupMajorHazard
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** ID */
private
Long
fHazardId
;
/** 名称 */
@Excel
(
name
=
"名称"
)
private
String
fName
;
/** 责任人 */
@Excel
(
name
=
"责任人"
)
private
String
fResPer
;
/** 电话 */
@Excel
(
name
=
"电话"
)
private
String
fPhone
;
/** 安全评估信息 */
@Excel
(
name
=
"安全评估信息"
)
private
String
fEvaInfor
;
/** 经度 */
@Excel
(
name
=
"经度"
)
private
BigDecimal
longitude
;
/** 纬度 */
@Excel
(
name
=
"纬度"
)
private
BigDecimal
latitude
;
/** 分级情况 */
@Excel
(
name
=
"分级情况"
)
private
String
fLevel
;
public
Long
getBeyondEnterpriseId
()
{
return
beyondEnterpriseId
;
}
public
void
setBeyondEnterpriseId
(
Long
beyondEnterpriseId
)
{
this
.
beyondEnterpriseId
=
beyondEnterpriseId
;
}
/** 权属单位 */
private
Long
beyondEnterpriseId
;
/** 创建时间 */
private
Date
fCreateTime
;
/** 修改时间 */
private
Date
fUpdateTime
;
/** 是否删除(0正常,1删除) */
private
String
fIsDel
;
/** 备注 */
private
String
fRemarks
;
public
void
setfHazardId
(
Long
fHazardId
)
{
this
.
fHazardId
=
fHazardId
;
}
public
Long
getfHazardId
()
{
return
fHazardId
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
public
void
setfResPer
(
String
fResPer
)
{
this
.
fResPer
=
fResPer
;
}
public
String
getfResPer
()
{
return
fResPer
;
}
public
void
setfPhone
(
String
fPhone
)
{
this
.
fPhone
=
fPhone
;
}
public
String
getfPhone
()
{
return
fPhone
;
}
public
void
setfEvaInfor
(
String
fEvaInfor
)
{
this
.
fEvaInfor
=
fEvaInfor
;
}
public
String
getfEvaInfor
()
{
return
fEvaInfor
;
}
public
void
setLongitude
(
BigDecimal
longitude
)
{
this
.
longitude
=
longitude
;
}
public
BigDecimal
getLongitude
()
{
return
longitude
;
}
public
void
setLatitude
(
BigDecimal
latitude
)
{
this
.
latitude
=
latitude
;
}
public
BigDecimal
getLatitude
()
{
return
latitude
;
}
public
void
setfLevel
(
String
fLevel
)
{
this
.
fLevel
=
fLevel
;
}
public
String
getfLevel
()
{
return
fLevel
;
}
public
void
setfCreateTime
(
Date
fCreateTime
)
{
this
.
fCreateTime
=
fCreateTime
;
}
public
Date
getfCreateTime
()
{
return
fCreateTime
;
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
{
this
.
fUpdateTime
=
fUpdateTime
;
}
public
Date
getfUpdateTime
()
{
return
fUpdateTime
;
}
public
void
setfIsDel
(
String
fIsDel
)
{
this
.
fIsDel
=
fIsDel
;
}
public
String
getfIsDel
()
{
return
fIsDel
;
}
public
void
setfRemarks
(
String
fRemarks
)
{
this
.
fRemarks
=
fRemarks
;
}
public
String
getfRemarks
()
{
return
fRemarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fHazardId"
,
getfHazardId
())
.
append
(
"fName"
,
getfName
())
.
append
(
"fResPer"
,
getfResPer
())
.
append
(
"fPhone"
,
getfPhone
())
.
append
(
"fEvaInfor"
,
getfEvaInfor
())
.
append
(
"longitude"
,
getLongitude
())
.
append
(
"latitude"
,
getLatitude
())
.
append
(
"fLevel"
,
getfLevel
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fIsDel"
,
getfIsDel
())
.
append
(
"fRemarks"
,
getfRemarks
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TEmergencyDrillsMapper.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TEmergencyDrills
;
/**
* 应急演练Mapper接口
*
* @author zehong
* @date 2024-04-19
*/
public
interface
TEmergencyDrillsMapper
{
/**
* 查询应急演练
*
* @param fDrillsId 应急演练ID
* @return 应急演练
*/
public
TEmergencyDrills
selectTEmergencyDrillsById
(
Long
fDrillsId
);
/**
* 查询应急演练列表
*
* @param tEmergencyDrills 应急演练
* @return 应急演练集合
*/
public
List
<
TEmergencyDrills
>
selectTEmergencyDrillsList
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 新增应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
public
int
insertTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 修改应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
public
int
updateTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 删除应急演练
*
* @param fDrillsId 应急演练ID
* @return 结果
*/
public
int
deleteTEmergencyDrillsById
(
Long
fDrillsId
);
/**
* 批量删除应急演练
*
* @param fDrillsIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTEmergencyDrillsByIds
(
Long
[]
fDrillsIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TSupMajorHazardMapper.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TSupMajorHazard
;
/**
* 重大危险源监管Mapper接口
*
* @author zehong
* @date 2024-04-19
*/
public
interface
TSupMajorHazardMapper
{
/**
* 查询重大危险源监管
*
* @param fHazardId 重大危险源监管ID
* @return 重大危险源监管
*/
public
TSupMajorHazard
selectTSupMajorHazardById
(
Long
fHazardId
);
/**
* 查询重大危险源监管列表
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管集合
*/
public
List
<
TSupMajorHazard
>
selectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 查询重大危险源监管列表 导出
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管集合
*/
public
List
<
TSupMajorHazard
>
exportselectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 新增重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
public
int
insertTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 修改重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
public
int
updateTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 删除重大危险源监管
*
* @param fHazardId 重大危险源监管ID
* @return 结果
*/
public
int
deleteTSupMajorHazardById
(
Long
fHazardId
);
/**
* 批量删除重大危险源监管
*
* @param fHazardIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTSupMajorHazardByIds
(
Long
[]
fHazardIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITEmergencyDrillsService.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TEmergencyDrills
;
/**
* 应急演练Service接口
*
* @author zehong
* @date 2024-04-19
*/
public
interface
ITEmergencyDrillsService
{
/**
* 查询应急演练
*
* @param fDrillsId 应急演练ID
* @return 应急演练
*/
public
TEmergencyDrills
selectTEmergencyDrillsById
(
Long
fDrillsId
);
/**
* 查询应急演练列表
*
* @param tEmergencyDrills 应急演练
* @return 应急演练集合
*/
public
List
<
TEmergencyDrills
>
selectTEmergencyDrillsList
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 新增应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
public
int
insertTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 修改应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
public
int
updateTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
);
/**
* 批量删除应急演练
*
* @param fDrillsIds 需要删除的应急演练ID
* @return 结果
*/
public
int
deleteTEmergencyDrillsByIds
(
Long
[]
fDrillsIds
);
/**
* 删除应急演练信息
*
* @param fDrillsId 应急演练ID
* @return 结果
*/
public
int
deleteTEmergencyDrillsById
(
Long
fDrillsId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITSupMajorHazardService.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TSupMajorHazard
;
/**
* 重大危险源监管Service接口
*
* @author zehong
* @date 2024-04-19
*/
public
interface
ITSupMajorHazardService
{
/**
* 查询重大危险源监管
*
* @param fHazardId 重大危险源监管ID
* @return 重大危险源监管
*/
public
TSupMajorHazard
selectTSupMajorHazardById
(
Long
fHazardId
);
/**
* 查询重大危险源监管列表
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管集合
*/
public
List
<
TSupMajorHazard
>
selectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 导出重大危险源监管列表
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管集合
*/
public
List
<
TSupMajorHazard
>
exportselectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 新增重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
public
int
insertTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 修改重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
public
int
updateTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
);
/**
* 批量删除重大危险源监管
*
* @param fHazardIds 需要删除的重大危险源监管ID
* @return 结果
*/
public
int
deleteTSupMajorHazardByIds
(
Long
[]
fHazardIds
);
/**
* 删除重大危险源监管信息
*
* @param fHazardId 重大危险源监管ID
* @return 结果
*/
public
int
deleteTSupMajorHazardById
(
Long
fHazardId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TEmergencyDrillsServiceImpl.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TEmergencyDrillsMapper
;
import
com.zehong.system.domain.TEmergencyDrills
;
import
com.zehong.system.service.ITEmergencyDrillsService
;
/**
* 应急演练Service业务层处理
*
* @author zehong
* @date 2024-04-19
*/
@Service
public
class
TEmergencyDrillsServiceImpl
implements
ITEmergencyDrillsService
{
@Autowired
private
TEmergencyDrillsMapper
tEmergencyDrillsMapper
;
/**
* 查询应急演练
*
* @param fDrillsId 应急演练ID
* @return 应急演练
*/
@Override
public
TEmergencyDrills
selectTEmergencyDrillsById
(
Long
fDrillsId
)
{
return
tEmergencyDrillsMapper
.
selectTEmergencyDrillsById
(
fDrillsId
);
}
/**
* 查询应急演练列表
*
* @param tEmergencyDrills 应急演练
* @return 应急演练
*/
@Override
public
List
<
TEmergencyDrills
>
selectTEmergencyDrillsList
(
TEmergencyDrills
tEmergencyDrills
)
{
return
tEmergencyDrillsMapper
.
selectTEmergencyDrillsList
(
tEmergencyDrills
);
}
/**
* 新增应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
@Override
public
int
insertTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
)
{
return
tEmergencyDrillsMapper
.
insertTEmergencyDrills
(
tEmergencyDrills
);
}
/**
* 修改应急演练
*
* @param tEmergencyDrills 应急演练
* @return 结果
*/
@Override
public
int
updateTEmergencyDrills
(
TEmergencyDrills
tEmergencyDrills
)
{
return
tEmergencyDrillsMapper
.
updateTEmergencyDrills
(
tEmergencyDrills
);
}
/**
* 批量删除应急演练
*
* @param fDrillsIds 需要删除的应急演练ID
* @return 结果
*/
@Override
public
int
deleteTEmergencyDrillsByIds
(
Long
[]
fDrillsIds
)
{
return
tEmergencyDrillsMapper
.
deleteTEmergencyDrillsByIds
(
fDrillsIds
);
}
/**
* 删除应急演练信息
*
* @param fDrillsId 应急演练ID
* @return 结果
*/
@Override
public
int
deleteTEmergencyDrillsById
(
Long
fDrillsId
)
{
return
tEmergencyDrillsMapper
.
deleteTEmergencyDrillsById
(
fDrillsId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TSupMajorHazardServiceImpl.java
0 → 100644
View file @
4a0726b8
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TSupMajorHazardMapper
;
import
com.zehong.system.domain.TSupMajorHazard
;
import
com.zehong.system.service.ITSupMajorHazardService
;
/**
* 重大危险源监管Service业务层处理
*
* @author zehong
* @date 2024-04-19
*/
@Service
public
class
TSupMajorHazardServiceImpl
implements
ITSupMajorHazardService
{
@Autowired
private
TSupMajorHazardMapper
tSupMajorHazardMapper
;
/**
* 查询重大危险源监管
*
* @param fHazardId 重大危险源监管ID
* @return 重大危险源监管
*/
@Override
public
TSupMajorHazard
selectTSupMajorHazardById
(
Long
fHazardId
)
{
return
tSupMajorHazardMapper
.
selectTSupMajorHazardById
(
fHazardId
);
}
/**
* 查询重大危险源监管列表
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管
*/
@Override
public
List
<
TSupMajorHazard
>
selectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
)
{
return
tSupMajorHazardMapper
.
selectTSupMajorHazardList
(
tSupMajorHazard
);
}
/**
* 导出重大危险源监管列表
*
* @param tSupMajorHazard 重大危险源监管
* @return 重大危险源监管
*/
@Override
public
List
<
TSupMajorHazard
>
exportselectTSupMajorHazardList
(
TSupMajorHazard
tSupMajorHazard
)
{
return
tSupMajorHazardMapper
.
exportselectTSupMajorHazardList
(
tSupMajorHazard
);
}
/**
* 新增重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
@Override
public
int
insertTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
)
{
return
tSupMajorHazardMapper
.
insertTSupMajorHazard
(
tSupMajorHazard
);
}
/**
* 修改重大危险源监管
*
* @param tSupMajorHazard 重大危险源监管
* @return 结果
*/
@Override
public
int
updateTSupMajorHazard
(
TSupMajorHazard
tSupMajorHazard
)
{
return
tSupMajorHazardMapper
.
updateTSupMajorHazard
(
tSupMajorHazard
);
}
/**
* 批量删除重大危险源监管
*
* @param fHazardIds 需要删除的重大危险源监管ID
* @return 结果
*/
@Override
public
int
deleteTSupMajorHazardByIds
(
Long
[]
fHazardIds
)
{
return
tSupMajorHazardMapper
.
deleteTSupMajorHazardByIds
(
fHazardIds
);
}
/**
* 删除重大危险源监管信息
*
* @param fHazardId 重大危险源监管ID
* @return 结果
*/
@Override
public
int
deleteTSupMajorHazardById
(
Long
fHazardId
)
{
return
tSupMajorHazardMapper
.
deleteTSupMajorHazardById
(
fHazardId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TEmergencyDrillsMapper.xml
0 → 100644
View file @
4a0726b8
<?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.TEmergencyDrillsMapper"
>
<resultMap
type=
"TEmergencyDrills"
id=
"TEmergencyDrillsResult"
>
<result
property=
"fDrillsId"
column=
"f_drills_id"
/>
<result
property=
"fDrillsTime"
column=
"f_drills_time"
/>
<result
property=
"fEvent"
column=
"f_event"
/>
<result
property=
"fPlace"
column=
"f_place"
/>
<result
property=
"fPerDep"
column=
"f_per_dep"
/>
<result
property=
"fDrillsContent"
column=
"f_drills_content"
/>
<result
property=
"fDrillsPicture"
column=
"f_drills_picture"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fIsDel"
column=
"f_is_del"
/>
<result
property=
"fRemarks"
column=
"f_remarks"
/>
</resultMap>
<sql
id=
"selectTEmergencyDrillsVo"
>
select f_drills_id, f_drills_time, f_event, f_place, f_per_dep, f_drills_content, f_drills_picture, f_create_time, f_update_time, f_is_del, f_remarks from t_emergency_drills
</sql>
<select
id=
"selectTEmergencyDrillsList"
parameterType=
"TEmergencyDrills"
resultMap=
"TEmergencyDrillsResult"
>
<include
refid=
"selectTEmergencyDrillsVo"
/>
<where>
<if
test=
"fDrillsId != null "
>
and f_drills_id = #{fDrillsId}
</if>
<if
test=
"fDrillsTime != null and fDrillsTime != ''"
>
and f_drills_time = #{fDrillsTime}
</if>
<if
test=
"fEvent != null and fEvent != ''"
>
and f_event = #{fEvent}
</if>
<if
test=
"fPlace != null and fPlace != ''"
>
and f_place = #{fPlace}
</if>
<if
test=
"fPerDep != null and fPerDep != ''"
>
and f_per_dep = #{fPerDep}
</if>
<if
test=
"fDrillsContent != null and fDrillsContent != ''"
>
and f_drills_content = #{fDrillsContent}
</if>
<if
test=
"fDrillsPicture != null and fDrillsPicture != ''"
>
and f_drills_picture = #{fDrillsPicture}
</if>
<if
test=
"fCreateTime != null "
>
and f_create_time = #{fCreateTime}
</if>
<if
test=
"fUpdateTime != null "
>
and f_update_time = #{fUpdateTime}
</if>
<if
test=
"fIsDel != null and fIsDel != ''"
>
and f_is_del = #{fIsDel}
</if>
<if
test=
"fRemarks != null and fRemarks != ''"
>
and f_remarks = #{fRemarks}
</if>
</where>
</select>
<select
id=
"selectTEmergencyDrillsById"
parameterType=
"Long"
resultMap=
"TEmergencyDrillsResult"
>
<include
refid=
"selectTEmergencyDrillsVo"
/>
where f_drills_id = #{fDrillsId}
</select>
<insert
id=
"insertTEmergencyDrills"
parameterType=
"TEmergencyDrills"
>
insert into t_emergency_drills
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fDrillsId != null"
>
f_drills_id,
</if>
<if
test=
"fDrillsTime != null"
>
f_drills_time,
</if>
<if
test=
"fEvent != null"
>
f_event,
</if>
<if
test=
"fPlace != null"
>
f_place,
</if>
<if
test=
"fPerDep != null"
>
f_per_dep,
</if>
<if
test=
"fDrillsContent != null"
>
f_drills_content,
</if>
<if
test=
"fDrillsPicture != null"
>
f_drills_picture,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fIsDel != null"
>
f_is_del,
</if>
<if
test=
"fRemarks != null"
>
f_remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fDrillsId != null"
>
#{fDrillsId},
</if>
<if
test=
"fDrillsTime != null"
>
#{fDrillsTime},
</if>
<if
test=
"fEvent != null"
>
#{fEvent},
</if>
<if
test=
"fPlace != null"
>
#{fPlace},
</if>
<if
test=
"fPerDep != null"
>
#{fPerDep},
</if>
<if
test=
"fDrillsContent != null"
>
#{fDrillsContent},
</if>
<if
test=
"fDrillsPicture != null"
>
#{fDrillsPicture},
</if>
<if
test=
"fCreateTime != null"
>
#{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
#{fUpdateTime},
</if>
<if
test=
"fIsDel != null"
>
#{fIsDel},
</if>
<if
test=
"fRemarks != null"
>
#{fRemarks},
</if>
</trim>
</insert>
<update
id=
"updateTEmergencyDrills"
parameterType=
"TEmergencyDrills"
>
update t_emergency_drills
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fDrillsTime != null"
>
f_drills_time = #{fDrillsTime},
</if>
<if
test=
"fEvent != null"
>
f_event = #{fEvent},
</if>
<if
test=
"fPlace != null"
>
f_place = #{fPlace},
</if>
<if
test=
"fPerDep != null"
>
f_per_dep = #{fPerDep},
</if>
<if
test=
"fDrillsContent != null"
>
f_drills_content = #{fDrillsContent},
</if>
<if
test=
"fDrillsPicture != null"
>
f_drills_picture = #{fDrillsPicture},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fIsDel != null"
>
f_is_del = #{fIsDel},
</if>
<if
test=
"fRemarks != null"
>
f_remarks = #{fRemarks},
</if>
</trim>
where f_drills_id = #{fDrillsId}
</update>
<delete
id=
"deleteTEmergencyDrillsById"
parameterType=
"Long"
>
delete from t_emergency_drills where f_drills_id = #{fDrillsId}
</delete>
<delete
id=
"deleteTEmergencyDrillsByIds"
parameterType=
"String"
>
delete from t_emergency_drills where f_drills_id in
<foreach
item=
"fDrillsId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fDrillsId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TSupMajorHazardMapper.xml
0 → 100644
View file @
4a0726b8
<?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.TSupMajorHazardMapper"
>
<resultMap
type=
"TSupMajorHazard"
id=
"TSupMajorHazardResult"
>
<result
property=
"fHazardId"
column=
"f_hazard_id"
/>
<result
property=
"beyondEnterpriseId"
column=
"beyond_enterprise_id"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fResPer"
column=
"f_res_per"
/>
<result
property=
"fPhone"
column=
"f_phone"
/>
<result
property=
"fEvaInfor"
column=
"f_eva_infor"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"fLevel"
column=
"f_level"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fIsDel"
column=
"f_is_del"
/>
<result
property=
"fRemarks"
column=
"f_remarks"
/>
</resultMap>
<resultMap
type=
"TSupMajorHazard"
id=
"ExportTSupMajorHazardResult"
>
<result
property=
"fHazardId"
column=
"f_hazard_id"
/>
<result
property=
"beyondEnterpriseId"
column=
"beyond_enterprise_id"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fResPer"
column=
"f_res_per"
/>
<result
property=
"fPhone"
column=
"f_phone"
/>
<result
property=
"fEvaInfor"
column=
"f_eva_infor"
/>
<result
property=
"longitude"
column=
"longitude"
/>
<result
property=
"latitude"
column=
"latitude"
/>
<result
property=
"fLevel"
column=
"dict_label"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fIsDel"
column=
"f_is_del"
/>
<result
property=
"fRemarks"
column=
"f_remarks"
/>
</resultMap>
<sql
id=
"selectTSupMajorHazardVo"
>
select f_hazard_id, f_name, f_res_per, f_phone, f_eva_infor, longitude, latitude, f_level, f_create_time, f_update_time, f_is_del, f_remarks,beyond_enterprise_id from t_sup_major_hazard
</sql>
<sql
id=
"exportSelectTSupMajorHazardVo"
>
SELECT
f_hazard_id,
f_name,
f_res_per,
f_phone,
f_eva_infor,
longitude,
latitude,
f_level,
f_create_time,
f_update_time,
f_is_del,
f_remarks,
beyond_enterprise_id ,
dict_label
FROM
t_sup_major_hazard hazard inner join sys_dict_data dictData on hazard.f_level = dictData.dict_value and dictData.dict_type = 'major_poll_source_level'
</sql>
<select
id=
"selectTSupMajorHazardList"
parameterType=
"TSupMajorHazard"
resultMap=
"TSupMajorHazardResult"
>
<include
refid=
"selectTSupMajorHazardVo"
/>
<where>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fResPer != null and fResPer != ''"
>
and f_res_per = #{fResPer}
</if>
</where>
</select>
<select
id=
"exportselectTSupMajorHazardList"
parameterType=
"TSupMajorHazard"
resultMap=
"ExportTSupMajorHazardResult"
>
<include
refid=
"exportSelectTSupMajorHazardVo"
/>
<where>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fResPer != null and fResPer != ''"
>
and f_res_per = #{fResPer}
</if>
</where>
</select>
<select
id=
"selectTSupMajorHazardById"
parameterType=
"Long"
resultMap=
"TSupMajorHazardResult"
>
<include
refid=
"selectTSupMajorHazardVo"
/>
where f_hazard_id = #{fHazardId}
</select>
<insert
id=
"insertTSupMajorHazard"
parameterType=
"TSupMajorHazard"
useGeneratedKeys=
"true"
keyProperty=
"fHazardId"
>
insert into t_sup_major_hazard
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fName != null"
>
f_name,
</if>
<if
test=
"fResPer != null"
>
f_res_per,
</if>
<if
test=
"fPhone != null"
>
f_phone,
</if>
<if
test=
"fEvaInfor != null"
>
f_eva_infor,
</if>
<if
test=
"longitude != null"
>
longitude,
</if>
<if
test=
"latitude != null"
>
latitude,
</if>
<if
test=
"fLevel != null"
>
f_level,
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fIsDel != null"
>
f_is_del,
</if>
<if
test=
"fRemarks != null"
>
f_remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fName != null"
>
#{fName},
</if>
<if
test=
"fResPer != null"
>
#{fResPer},
</if>
<if
test=
"fPhone != null"
>
#{fPhone},
</if>
<if
test=
"fEvaInfor != null"
>
#{fEvaInfor},
</if>
<if
test=
"longitude != null"
>
#{longitude},
</if>
<if
test=
"latitude != null"
>
#{latitude},
</if>
<if
test=
"fLevel != null"
>
#{fLevel},
</if>
<if
test=
"beyondEnterpriseId != null"
>
#{beyondEnterpriseId},
</if>
<if
test=
"fCreateTime != null"
>
#{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
#{fUpdateTime},
</if>
<if
test=
"fIsDel != null"
>
#{fIsDel},
</if>
<if
test=
"fRemarks != null"
>
#{fRemarks},
</if>
</trim>
</insert>
<update
id=
"updateTSupMajorHazard"
parameterType=
"TSupMajorHazard"
>
update t_sup_major_hazard
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fName != null"
>
f_name = #{fName},
</if>
<if
test=
"fResPer != null"
>
f_res_per = #{fResPer},
</if>
<if
test=
"fPhone != null"
>
f_phone = #{fPhone},
</if>
<if
test=
"fEvaInfor != null"
>
f_eva_infor = #{fEvaInfor},
</if>
<if
test=
"longitude != null"
>
longitude = #{longitude},
</if>
<if
test=
"latitude != null"
>
latitude = #{latitude},
</if>
<if
test=
"fLevel != null"
>
f_level = #{fLevel},
</if>
<if
test=
"beyondEnterpriseId != null"
>
beyond_enterprise_id = #{beyondEnterpriseId},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fIsDel != null"
>
f_is_del = #{fIsDel},
</if>
<if
test=
"fRemarks != null"
>
f_remarks = #{fRemarks},
</if>
</trim>
where f_hazard_id = #{fHazardId}
</update>
<delete
id=
"deleteTSupMajorHazardById"
parameterType=
"Long"
>
delete from t_sup_major_hazard where f_hazard_id = #{fHazardId}
</delete>
<delete
id=
"deleteTSupMajorHazardByIds"
parameterType=
"String"
>
delete from t_sup_major_hazard where f_hazard_id in
<foreach
item=
"fHazardId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fHazardId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/emergencydrills/record.js
0 → 100644
View file @
4a0726b8
import
request
from
'@/utils/request'
// 查询应急演练列表
export
function
listRecord
(
query
)
{
return
request
({
url
:
'/emergencydrills/record/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询应急演练详细
export
function
getRecord
(
fDrillsId
)
{
return
request
({
url
:
'/emergencydrills/record/getDetail/'
+
fDrillsId
,
method
:
'get'
})
}
// 新增应急演练
export
function
addRecord
(
data
)
{
return
request
({
url
:
'/emergencydrills/record'
,
method
:
'post'
,
data
:
data
})
}
// 修改应急演练
export
function
updateRecord
(
data
)
{
return
request
({
url
:
'/emergencydrills/record'
,
method
:
'put'
,
data
:
data
})
}
// 删除应急演练
export
function
delRecord
(
fDrillsId
)
{
return
request
({
url
:
'/emergencydrills/record/'
+
fDrillsId
,
method
:
'delete'
})
}
// 导出应急演练
export
function
exportRecord
(
query
)
{
return
request
({
url
:
'/emergencydrills/record/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
zh-baseversion-web/src/api/majorpollsourcelevel/record.js
0 → 100644
View file @
4a0726b8
import
request
from
'@/utils/request'
// 查询重大危险源监管列表
export
function
listRecord
(
query
)
{
return
request
({
url
:
'/majorpollsourcelevel/record/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询重大危险源监管详细
export
function
getRecord
(
fHazardId
)
{
return
request
({
url
:
'/majorpollsourcelevel/record/'
+
fHazardId
,
method
:
'get'
})
}
// 新增重大危险源监管
export
function
addRecord
(
data
)
{
return
request
({
url
:
'/majorpollsourcelevel/record'
,
method
:
'post'
,
data
:
data
})
}
// 修改重大危险源监管
export
function
updateRecord
(
data
)
{
return
request
({
url
:
'/majorpollsourcelevel/record'
,
method
:
'put'
,
data
:
data
})
}
// 删除重大危险源监管
export
function
delRecord
(
fHazardId
)
{
return
request
({
url
:
'/majorpollsourcelevel/record/'
+
fHazardId
,
method
:
'delete'
})
}
// 导出重大危险源监管
export
function
exportRecord
(
query
)
{
return
request
({
url
:
'/majorpollsourcelevel/record/export'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
zh-baseversion-web/src/views/emergencydrills/record/index.vue
0 → 100644
View file @
4a0726b8
This diff is collapsed.
Click to expand it.
zh-baseversion-web/src/views/majorpollsourcelevel/record/index.vue
0 → 100644
View file @
4a0726b8
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