Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
RuoYi-Vue-master
Commits
5d6abb25
Commit
5d6abb25
authored
Jun 26, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、初始化固有风险、现有风险清单库
parent
0d502334
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1491 additions
and
0 deletions
+1491
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskExistingListController.java
...ensoftrongtong/controller/RiskExistingListController.java
+105
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskInherentListController.java
...ensoftrongtong/controller/RiskInherentListController.java
+105
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskExistingList.java
.../com/censoft/censoftrongtong/domain/RiskExistingList.java
+278
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskInherentList.java
.../com/censoft/censoftrongtong/domain/RiskInherentList.java
+264
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskExistingListMapper.java
...ensoft/censoftrongtong/mapper/RiskExistingListMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskInherentListMapper.java
...ensoft/censoftrongtong/mapper/RiskInherentListMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskExistingListService.java
...oft/censoftrongtong/service/IRiskExistingListService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskInherentListService.java
...oft/censoftrongtong/service/IRiskInherentListService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskExistingListServiceImpl.java
...oftrongtong/service/impl/RiskExistingListServiceImpl.java
+97
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskInherentListServiceImpl.java
...oftrongtong/service/impl/RiskInherentListServiceImpl.java
+97
-0
censoft-rongtong/src/main/resources/mapper/system/RiskExistingListMapper.xml
...c/main/resources/mapper/system/RiskExistingListMapper.xml
+151
-0
censoft-rongtong/src/main/resources/mapper/system/RiskInherentListMapper.xml
...c/main/resources/mapper/system/RiskInherentListMapper.xml
+146
-0
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskExistingListController.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.censoft.censoftrongtong.domain.RiskExistingList
;
import
com.censoft.censoftrongtong.service.IRiskExistingListService
;
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.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
* 现有风险清单库Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping
(
"/system/risk/existing/list"
)
public
class
RiskExistingListController
extends
BaseController
{
@Autowired
private
IRiskExistingListService
riskExistingListService
;
/**
* 查询现有风险清单库列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RiskExistingList
riskExistingList
)
{
startPage
();
List
<
RiskExistingList
>
list
=
riskExistingListService
.
selectRiskExistingListList
(
riskExistingList
);
return
getDataTable
(
list
);
}
/**
* 导出现有风险清单库列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:export')"
)
@Log
(
title
=
"现有风险清单库"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RiskExistingList
riskExistingList
)
{
List
<
RiskExistingList
>
list
=
riskExistingListService
.
selectRiskExistingListList
(
riskExistingList
);
ExcelUtil
<
RiskExistingList
>
util
=
new
ExcelUtil
<
RiskExistingList
>(
RiskExistingList
.
class
);
util
.
exportExcel
(
response
,
list
,
"现有风险清单库数据"
);
}
/**
* 获取现有风险清单库详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
riskExistingListService
.
selectRiskExistingListById
(
id
));
}
/**
* 新增现有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:add')"
)
@Log
(
title
=
"现有风险清单库"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RiskExistingList
riskExistingList
)
{
return
toAjax
(
riskExistingListService
.
insertRiskExistingList
(
riskExistingList
));
}
/**
* 修改现有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:edit')"
)
@Log
(
title
=
"现有风险清单库"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RiskExistingList
riskExistingList
)
{
return
toAjax
(
riskExistingListService
.
updateRiskExistingList
(
riskExistingList
));
}
/**
* 删除现有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskExisting:remove')"
)
@Log
(
title
=
"现有风险清单库"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
riskExistingListService
.
deleteRiskExistingListByIds
(
ids
));
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskInherentListController.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.censoft.censoftrongtong.domain.RiskInherentList
;
import
com.censoft.censoftrongtong.service.IRiskInherentListService
;
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.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.common.core.page.TableDataInfo
;
/**
* 固有风险清单库Controller
*
* @author ruoyi
* @date 2023-06-26
*/
@RestController
@RequestMapping
(
"/system/risk/inherent/list"
)
public
class
RiskInherentListController
extends
BaseController
{
@Autowired
private
IRiskInherentListService
riskInherentListService
;
/**
* 查询固有风险清单库列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RiskInherentList
riskInherentList
)
{
startPage
();
List
<
RiskInherentList
>
list
=
riskInherentListService
.
selectRiskInherentListList
(
riskInherentList
);
return
getDataTable
(
list
);
}
/**
* 导出固有风险清单库列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:export')"
)
@Log
(
title
=
"固有风险清单库"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RiskInherentList
riskInherentList
)
{
List
<
RiskInherentList
>
list
=
riskInherentListService
.
selectRiskInherentListList
(
riskInherentList
);
ExcelUtil
<
RiskInherentList
>
util
=
new
ExcelUtil
<
RiskInherentList
>(
RiskInherentList
.
class
);
util
.
exportExcel
(
response
,
list
,
"固有风险清单库数据"
);
}
/**
* 获取固有风险清单库详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
riskInherentListService
.
selectRiskInherentListById
(
id
));
}
/**
* 新增固有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:add')"
)
@Log
(
title
=
"固有风险清单库"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RiskInherentList
riskInherentList
)
{
return
toAjax
(
riskInherentListService
.
insertRiskInherentList
(
riskInherentList
));
}
/**
* 修改固有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:edit')"
)
@Log
(
title
=
"固有风险清单库"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RiskInherentList
riskInherentList
)
{
return
toAjax
(
riskInherentListService
.
updateRiskInherentList
(
riskInherentList
));
}
/**
* 删除固有风险清单库
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskInherent:remove')"
)
@Log
(
title
=
"固有风险清单库"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
riskInherentListService
.
deleteRiskInherentListByIds
(
ids
));
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskExistingList.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 现有风险清单库对象 risk_existing_list
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskExistingList
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 固有风险id */
@Excel
(
name
=
"固有风险id"
)
private
Long
inherentId
;
/** 风险code */
@Excel
(
name
=
"风险code"
)
private
String
code
;
/** 风险源名称 */
@Excel
(
name
=
"风险源名称"
)
private
String
name
;
/** 风险类型 */
@Excel
(
name
=
"风险类型"
)
private
String
type
;
/** 风险描述 */
@Excel
(
name
=
"风险描述"
)
private
String
describe
;
/** 评估模型 */
@Excel
(
name
=
"评估模型"
)
private
String
evaluationModel
;
/** 评估范围 */
@Excel
(
name
=
"评估范围"
)
private
String
evaluationRange
;
/** 风险等级 */
@Excel
(
name
=
"风险等级"
)
private
String
level
;
/** 风险因素 */
@Excel
(
name
=
"风险因素"
)
private
String
factor
;
/** 工程技术措施 */
@Excel
(
name
=
"工程技术措施"
)
private
String
measuresProject
;
/** 工程技术措施附件 */
@Excel
(
name
=
"工程技术措施附件"
)
private
String
measuresProjectFileIds
;
/** 管理措施 */
@Excel
(
name
=
"管理措施"
)
private
String
measuresAdministration
;
/** 管理措施附件 */
@Excel
(
name
=
"管理措施附件"
)
private
String
measuresAdministrationFileIds
;
/** 应急处置措施 */
@Excel
(
name
=
"应急处置措施"
)
private
String
measuresEmergency
;
/** 应急处置措施附件 */
@Excel
(
name
=
"应急处置措施附件"
)
private
String
measuresEmergencyFileIds
;
/** 参考依据 */
@Excel
(
name
=
"参考依据"
)
private
String
referenceBasis
;
/** 删除标志(0代表存在 1代表删除) */
private
String
delFlag
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setInherentId
(
Long
inherentId
)
{
this
.
inherentId
=
inherentId
;
}
public
Long
getInherentId
()
{
return
inherentId
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getType
()
{
return
type
;
}
public
void
setDescribe
(
String
describe
)
{
this
.
describe
=
describe
;
}
public
String
getDescribe
()
{
return
describe
;
}
public
void
setEvaluationModel
(
String
evaluationModel
)
{
this
.
evaluationModel
=
evaluationModel
;
}
public
String
getEvaluationModel
()
{
return
evaluationModel
;
}
public
void
setEvaluationRange
(
String
evaluationRange
)
{
this
.
evaluationRange
=
evaluationRange
;
}
public
String
getEvaluationRange
()
{
return
evaluationRange
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setFactor
(
String
factor
)
{
this
.
factor
=
factor
;
}
public
String
getFactor
()
{
return
factor
;
}
public
void
setMeasuresProject
(
String
measuresProject
)
{
this
.
measuresProject
=
measuresProject
;
}
public
String
getMeasuresProject
()
{
return
measuresProject
;
}
public
void
setMeasuresProjectFileIds
(
String
measuresProjectFileIds
)
{
this
.
measuresProjectFileIds
=
measuresProjectFileIds
;
}
public
String
getMeasuresProjectFileIds
()
{
return
measuresProjectFileIds
;
}
public
void
setMeasuresAdministration
(
String
measuresAdministration
)
{
this
.
measuresAdministration
=
measuresAdministration
;
}
public
String
getMeasuresAdministration
()
{
return
measuresAdministration
;
}
public
void
setMeasuresAdministrationFileIds
(
String
measuresAdministrationFileIds
)
{
this
.
measuresAdministrationFileIds
=
measuresAdministrationFileIds
;
}
public
String
getMeasuresAdministrationFileIds
()
{
return
measuresAdministrationFileIds
;
}
public
void
setMeasuresEmergency
(
String
measuresEmergency
)
{
this
.
measuresEmergency
=
measuresEmergency
;
}
public
String
getMeasuresEmergency
()
{
return
measuresEmergency
;
}
public
void
setMeasuresEmergencyFileIds
(
String
measuresEmergencyFileIds
)
{
this
.
measuresEmergencyFileIds
=
measuresEmergencyFileIds
;
}
public
String
getMeasuresEmergencyFileIds
()
{
return
measuresEmergencyFileIds
;
}
public
void
setReferenceBasis
(
String
referenceBasis
)
{
this
.
referenceBasis
=
referenceBasis
;
}
public
String
getReferenceBasis
()
{
return
referenceBasis
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"inherentId"
,
getInherentId
())
.
append
(
"code"
,
getCode
())
.
append
(
"name"
,
getName
())
.
append
(
"type"
,
getType
())
.
append
(
"describe"
,
getDescribe
())
.
append
(
"evaluationModel"
,
getEvaluationModel
())
.
append
(
"evaluationRange"
,
getEvaluationRange
())
.
append
(
"level"
,
getLevel
())
.
append
(
"factor"
,
getFactor
())
.
append
(
"measuresProject"
,
getMeasuresProject
())
.
append
(
"measuresProjectFileIds"
,
getMeasuresProjectFileIds
())
.
append
(
"measuresAdministration"
,
getMeasuresAdministration
())
.
append
(
"measuresAdministrationFileIds"
,
getMeasuresAdministrationFileIds
())
.
append
(
"measuresEmergency"
,
getMeasuresEmergency
())
.
append
(
"measuresEmergencyFileIds"
,
getMeasuresEmergencyFileIds
())
.
append
(
"referenceBasis"
,
getReferenceBasis
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskInherentList.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 固有风险清单库对象 risk_inherent_list
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskInherentList
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 风险code */
@Excel
(
name
=
"风险code"
)
private
String
code
;
/** 风险源名称 */
@Excel
(
name
=
"风险源名称"
)
private
String
name
;
/** 风险类型 */
@Excel
(
name
=
"风险类型"
)
private
String
type
;
/** 风险描述 */
@Excel
(
name
=
"风险描述"
)
private
String
describe
;
/** 评估模型 */
@Excel
(
name
=
"评估模型"
)
private
String
evaluationModel
;
/** 评估范围 */
@Excel
(
name
=
"评估范围"
)
private
String
evaluationRange
;
/** 风险等级 */
@Excel
(
name
=
"风险等级"
)
private
String
level
;
/** 风险因素 */
@Excel
(
name
=
"风险因素"
)
private
String
factor
;
/** 工程技术措施 */
@Excel
(
name
=
"工程技术措施"
)
private
String
measuresProject
;
/** 工程技术措施附件 */
@Excel
(
name
=
"工程技术措施附件"
)
private
String
measuresProjectFileIds
;
/** 管理措施 */
@Excel
(
name
=
"管理措施"
)
private
String
measuresAdministration
;
/** 管理措施附件 */
@Excel
(
name
=
"管理措施附件"
)
private
String
measuresAdministrationFileIds
;
/** 应急处置措施 */
@Excel
(
name
=
"应急处置措施"
)
private
String
measuresEmergency
;
/** 应急处置措施附件 */
@Excel
(
name
=
"应急处置措施附件"
)
private
String
measuresEmergencyFileIds
;
/** 参考依据 */
@Excel
(
name
=
"参考依据"
)
private
String
referenceBasis
;
/** 删除标志(0代表存在 1代表删除) */
private
String
delFlag
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getType
()
{
return
type
;
}
public
void
setDescribe
(
String
describe
)
{
this
.
describe
=
describe
;
}
public
String
getDescribe
()
{
return
describe
;
}
public
void
setEvaluationModel
(
String
evaluationModel
)
{
this
.
evaluationModel
=
evaluationModel
;
}
public
String
getEvaluationModel
()
{
return
evaluationModel
;
}
public
void
setEvaluationRange
(
String
evaluationRange
)
{
this
.
evaluationRange
=
evaluationRange
;
}
public
String
getEvaluationRange
()
{
return
evaluationRange
;
}
public
void
setLevel
(
String
level
)
{
this
.
level
=
level
;
}
public
String
getLevel
()
{
return
level
;
}
public
void
setFactor
(
String
factor
)
{
this
.
factor
=
factor
;
}
public
String
getFactor
()
{
return
factor
;
}
public
void
setMeasuresProject
(
String
measuresProject
)
{
this
.
measuresProject
=
measuresProject
;
}
public
String
getMeasuresProject
()
{
return
measuresProject
;
}
public
void
setMeasuresProjectFileIds
(
String
measuresProjectFileIds
)
{
this
.
measuresProjectFileIds
=
measuresProjectFileIds
;
}
public
String
getMeasuresProjectFileIds
()
{
return
measuresProjectFileIds
;
}
public
void
setMeasuresAdministration
(
String
measuresAdministration
)
{
this
.
measuresAdministration
=
measuresAdministration
;
}
public
String
getMeasuresAdministration
()
{
return
measuresAdministration
;
}
public
void
setMeasuresAdministrationFileIds
(
String
measuresAdministrationFileIds
)
{
this
.
measuresAdministrationFileIds
=
measuresAdministrationFileIds
;
}
public
String
getMeasuresAdministrationFileIds
()
{
return
measuresAdministrationFileIds
;
}
public
void
setMeasuresEmergency
(
String
measuresEmergency
)
{
this
.
measuresEmergency
=
measuresEmergency
;
}
public
String
getMeasuresEmergency
()
{
return
measuresEmergency
;
}
public
void
setMeasuresEmergencyFileIds
(
String
measuresEmergencyFileIds
)
{
this
.
measuresEmergencyFileIds
=
measuresEmergencyFileIds
;
}
public
String
getMeasuresEmergencyFileIds
()
{
return
measuresEmergencyFileIds
;
}
public
void
setReferenceBasis
(
String
referenceBasis
)
{
this
.
referenceBasis
=
referenceBasis
;
}
public
String
getReferenceBasis
()
{
return
referenceBasis
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"code"
,
getCode
())
.
append
(
"name"
,
getName
())
.
append
(
"type"
,
getType
())
.
append
(
"describe"
,
getDescribe
())
.
append
(
"evaluationModel"
,
getEvaluationModel
())
.
append
(
"evaluationRange"
,
getEvaluationRange
())
.
append
(
"level"
,
getLevel
())
.
append
(
"factor"
,
getFactor
())
.
append
(
"measuresProject"
,
getMeasuresProject
())
.
append
(
"measuresProjectFileIds"
,
getMeasuresProjectFileIds
())
.
append
(
"measuresAdministration"
,
getMeasuresAdministration
())
.
append
(
"measuresAdministrationFileIds"
,
getMeasuresAdministrationFileIds
())
.
append
(
"measuresEmergency"
,
getMeasuresEmergency
())
.
append
(
"measuresEmergencyFileIds"
,
getMeasuresEmergencyFileIds
())
.
append
(
"referenceBasis"
,
getReferenceBasis
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
toString
();
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskExistingListMapper.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskExistingList
;
import
java.util.List
;
/**
* 现有风险清单库Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskExistingListMapper
{
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
public
RiskExistingList
selectRiskExistingListById
(
Long
id
);
/**
* 查询现有风险清单库列表
*
* @param riskExistingList 现有风险清单库
* @return 现有风险清单库集合
*/
public
List
<
RiskExistingList
>
selectRiskExistingListList
(
RiskExistingList
riskExistingList
);
/**
* 新增现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
public
int
insertRiskExistingList
(
RiskExistingList
riskExistingList
);
/**
* 修改现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
public
int
updateRiskExistingList
(
RiskExistingList
riskExistingList
);
/**
* 删除现有风险清单库
*
* @param id 现有风险清单库主键
* @return 结果
*/
public
int
deleteRiskExistingListById
(
Long
id
);
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskExistingListByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskInherentListMapper.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskInherentList
;
import
java.util.List
;
/**
* 固有风险清单库Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskInherentListMapper
{
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
public
RiskInherentList
selectRiskInherentListById
(
Long
id
);
/**
* 查询固有风险清单库列表
*
* @param riskInherentList 固有风险清单库
* @return 固有风险清单库集合
*/
public
List
<
RiskInherentList
>
selectRiskInherentListList
(
RiskInherentList
riskInherentList
);
/**
* 新增固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
public
int
insertRiskInherentList
(
RiskInherentList
riskInherentList
);
/**
* 修改固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
public
int
updateRiskInherentList
(
RiskInherentList
riskInherentList
);
/**
* 删除固有风险清单库
*
* @param id 固有风险清单库主键
* @return 结果
*/
public
int
deleteRiskInherentListById
(
Long
id
);
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskInherentListByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskExistingListService.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskExistingList
;
import
java.util.List
;
/**
* 现有风险清单库Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskExistingListService
{
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
public
RiskExistingList
selectRiskExistingListById
(
Long
id
);
/**
* 查询现有风险清单库列表
*
* @param riskExistingList 现有风险清单库
* @return 现有风险清单库集合
*/
public
List
<
RiskExistingList
>
selectRiskExistingListList
(
RiskExistingList
riskExistingList
);
/**
* 新增现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
public
int
insertRiskExistingList
(
RiskExistingList
riskExistingList
);
/**
* 修改现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
public
int
updateRiskExistingList
(
RiskExistingList
riskExistingList
);
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的现有风险清单库主键集合
* @return 结果
*/
public
int
deleteRiskExistingListByIds
(
Long
[]
ids
);
/**
* 删除现有风险清单库信息
*
* @param id 现有风险清单库主键
* @return 结果
*/
public
int
deleteRiskExistingListById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskInherentListService.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskInherentList
;
import
java.util.List
;
/**
* 固有风险清单库Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskInherentListService
{
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
public
RiskInherentList
selectRiskInherentListById
(
Long
id
);
/**
* 查询固有风险清单库列表
*
* @param riskInherentList 固有风险清单库
* @return 固有风险清单库集合
*/
public
List
<
RiskInherentList
>
selectRiskInherentListList
(
RiskInherentList
riskInherentList
);
/**
* 新增固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
public
int
insertRiskInherentList
(
RiskInherentList
riskInherentList
);
/**
* 修改固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
public
int
updateRiskInherentList
(
RiskInherentList
riskInherentList
);
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的固有风险清单库主键集合
* @return 结果
*/
public
int
deleteRiskInherentListByIds
(
Long
[]
ids
);
/**
* 删除固有风险清单库信息
*
* @param id 固有风险清单库主键
* @return 结果
*/
public
int
deleteRiskInherentListById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskExistingListServiceImpl.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskExistingList
;
import
com.censoft.censoftrongtong.mapper.RiskExistingListMapper
;
import
com.censoft.censoftrongtong.service.IRiskExistingListService
;
import
com.ruoyi.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* 现有风险清单库Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public
class
RiskExistingListServiceImpl
implements
IRiskExistingListService
{
@Autowired
private
RiskExistingListMapper
riskExistingListMapper
;
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
@Override
public
RiskExistingList
selectRiskExistingListById
(
Long
id
)
{
return
riskExistingListMapper
.
selectRiskExistingListById
(
id
);
}
/**
* 查询现有风险清单库列表
*
* @param riskExistingList 现有风险清单库
* @return 现有风险清单库
*/
@Override
public
List
<
RiskExistingList
>
selectRiskExistingListList
(
RiskExistingList
riskExistingList
)
{
return
riskExistingListMapper
.
selectRiskExistingListList
(
riskExistingList
);
}
/**
* 新增现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
@Override
public
int
insertRiskExistingList
(
RiskExistingList
riskExistingList
)
{
riskExistingList
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
riskExistingListMapper
.
insertRiskExistingList
(
riskExistingList
);
}
/**
* 修改现有风险清单库
*
* @param riskExistingList 现有风险清单库
* @return 结果
*/
@Override
public
int
updateRiskExistingList
(
RiskExistingList
riskExistingList
)
{
riskExistingList
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
riskExistingListMapper
.
updateRiskExistingList
(
riskExistingList
);
}
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的现有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskExistingListByIds
(
Long
[]
ids
)
{
return
riskExistingListMapper
.
deleteRiskExistingListByIds
(
ids
);
}
/**
* 删除现有风险清单库信息
*
* @param id 现有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskExistingListById
(
Long
id
)
{
return
riskExistingListMapper
.
deleteRiskExistingListById
(
id
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskInherentListServiceImpl.java
0 → 100644
View file @
5d6abb25
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskInherentList
;
import
com.censoft.censoftrongtong.mapper.RiskInherentListMapper
;
import
com.censoft.censoftrongtong.service.IRiskInherentListService
;
import
com.ruoyi.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* 固有风险清单库Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public
class
RiskInherentListServiceImpl
implements
IRiskInherentListService
{
@Autowired
private
RiskInherentListMapper
riskInherentListMapper
;
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
@Override
public
RiskInherentList
selectRiskInherentListById
(
Long
id
)
{
return
riskInherentListMapper
.
selectRiskInherentListById
(
id
);
}
/**
* 查询固有风险清单库列表
*
* @param riskInherentList 固有风险清单库
* @return 固有风险清单库
*/
@Override
public
List
<
RiskInherentList
>
selectRiskInherentListList
(
RiskInherentList
riskInherentList
)
{
return
riskInherentListMapper
.
selectRiskInherentListList
(
riskInherentList
);
}
/**
* 新增固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
@Override
public
int
insertRiskInherentList
(
RiskInherentList
riskInherentList
)
{
riskInherentList
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
riskInherentListMapper
.
insertRiskInherentList
(
riskInherentList
);
}
/**
* 修改固有风险清单库
*
* @param riskInherentList 固有风险清单库
* @return 结果
*/
@Override
public
int
updateRiskInherentList
(
RiskInherentList
riskInherentList
)
{
riskInherentList
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
riskInherentListMapper
.
updateRiskInherentList
(
riskInherentList
);
}
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的固有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskInherentListByIds
(
Long
[]
ids
)
{
return
riskInherentListMapper
.
deleteRiskInherentListByIds
(
ids
);
}
/**
* 删除固有风险清单库信息
*
* @param id 固有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskInherentListById
(
Long
id
)
{
return
riskInherentListMapper
.
deleteRiskInherentListById
(
id
);
}
}
censoft-rongtong/src/main/resources/mapper/system/RiskExistingListMapper.xml
0 → 100644
View file @
5d6abb25
<?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.censoft.censoftrongtong.mapper.RiskExistingListMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.RiskExistingList"
id=
"RiskExistingListResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"inherentId"
column=
"inherent_id"
/>
<result
property=
"code"
column=
"code"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"describe"
column=
"describe"
/>
<result
property=
"evaluationModel"
column=
"evaluation_model"
/>
<result
property=
"evaluationRange"
column=
"evaluation_range"
/>
<result
property=
"level"
column=
"level"
/>
<result
property=
"factor"
column=
"factor"
/>
<result
property=
"measuresProject"
column=
"measures_project"
/>
<result
property=
"measuresProjectFileIds"
column=
"measures_project_file_ids"
/>
<result
property=
"measuresAdministration"
column=
"measures_administration"
/>
<result
property=
"measuresAdministrationFileIds"
column=
"measures_administration_file_ids"
/>
<result
property=
"measuresEmergency"
column=
"measures_emergency"
/>
<result
property=
"measuresEmergencyFileIds"
column=
"measures_emergency_file_ids"
/>
<result
property=
"referenceBasis"
column=
"reference_basis"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<sql
id=
"selectRiskExistingListVo"
>
select id, inherent_id, code, name, type, describe, evaluation_model, evaluation_range, level, factor, measures_project, measures_project_file_ids, measures_administration, measures_administration_file_ids, measures_emergency, measures_emergency_file_ids, reference_basis, del_flag, create_by, create_time, update_by, update_time from risk_existing_list
</sql>
<select
id=
"selectRiskExistingListList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskExistingList"
resultMap=
"RiskExistingListResult"
>
<include
refid=
"selectRiskExistingListVo"
/>
<where>
<if
test=
"inherentId != null "
>
and inherent_id = #{inherentId}
</if>
<if
test=
"code != null and code != ''"
>
and code = #{code}
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"type != null and type != ''"
>
and type = #{type}
</if>
<if
test=
"describe != null and describe != ''"
>
and describe = #{describe}
</if>
<if
test=
"evaluationModel != null and evaluationModel != ''"
>
and evaluation_model = #{evaluationModel}
</if>
<if
test=
"evaluationRange != null and evaluationRange != ''"
>
and evaluation_range = #{evaluationRange}
</if>
<if
test=
"level != null and level != ''"
>
and level = #{level}
</if>
<if
test=
"factor != null and factor != ''"
>
and factor = #{factor}
</if>
<if
test=
"measuresProject != null and measuresProject != ''"
>
and measures_project = #{measuresProject}
</if>
<if
test=
"measuresProjectFileIds != null and measuresProjectFileIds != ''"
>
and measures_project_file_ids = #{measuresProjectFileIds}
</if>
<if
test=
"measuresAdministration != null and measuresAdministration != ''"
>
and measures_administration = #{measuresAdministration}
</if>
<if
test=
"measuresAdministrationFileIds != null and measuresAdministrationFileIds != ''"
>
and measures_administration_file_ids = #{measuresAdministrationFileIds}
</if>
<if
test=
"measuresEmergency != null and measuresEmergency != ''"
>
and measures_emergency = #{measuresEmergency}
</if>
<if
test=
"measuresEmergencyFileIds != null and measuresEmergencyFileIds != ''"
>
and measures_emergency_file_ids = #{measuresEmergencyFileIds}
</if>
<if
test=
"referenceBasis != null and referenceBasis != ''"
>
and reference_basis = #{referenceBasis}
</if>
</where>
</select>
<select
id=
"selectRiskExistingListById"
parameterType=
"Long"
resultMap=
"RiskExistingListResult"
>
<include
refid=
"selectRiskExistingListVo"
/>
where id = #{id}
</select>
<insert
id=
"insertRiskExistingList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskExistingList"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into risk_existing_list
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"inherentId != null"
>
inherent_id,
</if>
<if
test=
"code != null"
>
code,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"type != null"
>
type,
</if>
<if
test=
"describe != null"
>
describe,
</if>
<if
test=
"evaluationModel != null"
>
evaluation_model,
</if>
<if
test=
"evaluationRange != null"
>
evaluation_range,
</if>
<if
test=
"level != null"
>
level,
</if>
<if
test=
"factor != null"
>
factor,
</if>
<if
test=
"measuresProject != null"
>
measures_project,
</if>
<if
test=
"measuresProjectFileIds != null"
>
measures_project_file_ids,
</if>
<if
test=
"measuresAdministration != null"
>
measures_administration,
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
measures_administration_file_ids,
</if>
<if
test=
"measuresEmergency != null"
>
measures_emergency,
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
measures_emergency_file_ids,
</if>
<if
test=
"referenceBasis != null"
>
reference_basis,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"inherentId != null"
>
#{inherentId},
</if>
<if
test=
"code != null"
>
#{code},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"type != null"
>
#{type},
</if>
<if
test=
"describe != null"
>
#{describe},
</if>
<if
test=
"evaluationModel != null"
>
#{evaluationModel},
</if>
<if
test=
"evaluationRange != null"
>
#{evaluationRange},
</if>
<if
test=
"level != null"
>
#{level},
</if>
<if
test=
"factor != null"
>
#{factor},
</if>
<if
test=
"measuresProject != null"
>
#{measuresProject},
</if>
<if
test=
"measuresProjectFileIds != null"
>
#{measuresProjectFileIds},
</if>
<if
test=
"measuresAdministration != null"
>
#{measuresAdministration},
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
#{measuresAdministrationFileIds},
</if>
<if
test=
"measuresEmergency != null"
>
#{measuresEmergency},
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
#{measuresEmergencyFileIds},
</if>
<if
test=
"referenceBasis != null"
>
#{referenceBasis},
</if>
<if
test=
"delFlag != null"
>
#{delFlag},
</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>
</trim>
</insert>
<update
id=
"updateRiskExistingList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskExistingList"
>
update risk_existing_list
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"inherentId != null"
>
inherent_id = #{inherentId},
</if>
<if
test=
"code != null"
>
code = #{code},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"type != null"
>
type = #{type},
</if>
<if
test=
"describe != null"
>
describe = #{describe},
</if>
<if
test=
"evaluationModel != null"
>
evaluation_model = #{evaluationModel},
</if>
<if
test=
"evaluationRange != null"
>
evaluation_range = #{evaluationRange},
</if>
<if
test=
"level != null"
>
level = #{level},
</if>
<if
test=
"factor != null"
>
factor = #{factor},
</if>
<if
test=
"measuresProject != null"
>
measures_project = #{measuresProject},
</if>
<if
test=
"measuresProjectFileIds != null"
>
measures_project_file_ids = #{measuresProjectFileIds},
</if>
<if
test=
"measuresAdministration != null"
>
measures_administration = #{measuresAdministration},
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
measures_administration_file_ids = #{measuresAdministrationFileIds},
</if>
<if
test=
"measuresEmergency != null"
>
measures_emergency = #{measuresEmergency},
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
measures_emergency_file_ids = #{measuresEmergencyFileIds},
</if>
<if
test=
"referenceBasis != null"
>
reference_basis = #{referenceBasis},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag},
</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>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteRiskExistingListById"
parameterType=
"Long"
>
delete from risk_existing_list where id = #{id}
</delete>
<delete
id=
"deleteRiskExistingListByIds"
parameterType=
"String"
>
delete from risk_existing_list where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
censoft-rongtong/src/main/resources/mapper/system/RiskInherentListMapper.xml
0 → 100644
View file @
5d6abb25
<?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.censoft.censoftrongtong.mapper.RiskInherentListMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.RiskInherentList"
id=
"RiskInherentListResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"code"
column=
"code"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"describe"
column=
"describe"
/>
<result
property=
"evaluationModel"
column=
"evaluation_model"
/>
<result
property=
"evaluationRange"
column=
"evaluation_range"
/>
<result
property=
"level"
column=
"level"
/>
<result
property=
"factor"
column=
"factor"
/>
<result
property=
"measuresProject"
column=
"measures_project"
/>
<result
property=
"measuresProjectFileIds"
column=
"measures_project_file_ids"
/>
<result
property=
"measuresAdministration"
column=
"measures_administration"
/>
<result
property=
"measuresAdministrationFileIds"
column=
"measures_administration_file_ids"
/>
<result
property=
"measuresEmergency"
column=
"measures_emergency"
/>
<result
property=
"measuresEmergencyFileIds"
column=
"measures_emergency_file_ids"
/>
<result
property=
"referenceBasis"
column=
"reference_basis"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<sql
id=
"selectRiskInherentListVo"
>
select id, code, name, type, describe, evaluation_model, evaluation_range, level, factor, measures_project, measures_project_file_ids, measures_administration, measures_administration_file_ids, measures_emergency, measures_emergency_file_ids, reference_basis, del_flag, create_by, create_time, update_by, update_time from risk_inherent_list
</sql>
<select
id=
"selectRiskInherentListList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskInherentList"
resultMap=
"RiskInherentListResult"
>
<include
refid=
"selectRiskInherentListVo"
/>
<where>
<if
test=
"code != null and code != ''"
>
and code = #{code}
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"type != null and type != ''"
>
and type = #{type}
</if>
<if
test=
"describe != null and describe != ''"
>
and describe = #{describe}
</if>
<if
test=
"evaluationModel != null and evaluationModel != ''"
>
and evaluation_model = #{evaluationModel}
</if>
<if
test=
"evaluationRange != null and evaluationRange != ''"
>
and evaluation_range = #{evaluationRange}
</if>
<if
test=
"level != null and level != ''"
>
and level = #{level}
</if>
<if
test=
"factor != null and factor != ''"
>
and factor = #{factor}
</if>
<if
test=
"measuresProject != null and measuresProject != ''"
>
and measures_project = #{measuresProject}
</if>
<if
test=
"measuresProjectFileIds != null and measuresProjectFileIds != ''"
>
and measures_project_file_ids = #{measuresProjectFileIds}
</if>
<if
test=
"measuresAdministration != null and measuresAdministration != ''"
>
and measures_administration = #{measuresAdministration}
</if>
<if
test=
"measuresAdministrationFileIds != null and measuresAdministrationFileIds != ''"
>
and measures_administration_file_ids = #{measuresAdministrationFileIds}
</if>
<if
test=
"measuresEmergency != null and measuresEmergency != ''"
>
and measures_emergency = #{measuresEmergency}
</if>
<if
test=
"measuresEmergencyFileIds != null and measuresEmergencyFileIds != ''"
>
and measures_emergency_file_ids = #{measuresEmergencyFileIds}
</if>
<if
test=
"referenceBasis != null and referenceBasis != ''"
>
and reference_basis = #{referenceBasis}
</if>
</where>
</select>
<select
id=
"selectRiskInherentListById"
parameterType=
"Long"
resultMap=
"RiskInherentListResult"
>
<include
refid=
"selectRiskInherentListVo"
/>
where id = #{id}
</select>
<insert
id=
"insertRiskInherentList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskInherentList"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into risk_inherent_list
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"code != null"
>
code,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"type != null"
>
type,
</if>
<if
test=
"describe != null"
>
describe,
</if>
<if
test=
"evaluationModel != null"
>
evaluation_model,
</if>
<if
test=
"evaluationRange != null"
>
evaluation_range,
</if>
<if
test=
"level != null"
>
level,
</if>
<if
test=
"factor != null"
>
factor,
</if>
<if
test=
"measuresProject != null"
>
measures_project,
</if>
<if
test=
"measuresProjectFileIds != null"
>
measures_project_file_ids,
</if>
<if
test=
"measuresAdministration != null"
>
measures_administration,
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
measures_administration_file_ids,
</if>
<if
test=
"measuresEmergency != null"
>
measures_emergency,
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
measures_emergency_file_ids,
</if>
<if
test=
"referenceBasis != null"
>
reference_basis,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"code != null"
>
#{code},
</if>
<if
test=
"name != null"
>
#{name},
</if>
<if
test=
"type != null"
>
#{type},
</if>
<if
test=
"describe != null"
>
#{describe},
</if>
<if
test=
"evaluationModel != null"
>
#{evaluationModel},
</if>
<if
test=
"evaluationRange != null"
>
#{evaluationRange},
</if>
<if
test=
"level != null"
>
#{level},
</if>
<if
test=
"factor != null"
>
#{factor},
</if>
<if
test=
"measuresProject != null"
>
#{measuresProject},
</if>
<if
test=
"measuresProjectFileIds != null"
>
#{measuresProjectFileIds},
</if>
<if
test=
"measuresAdministration != null"
>
#{measuresAdministration},
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
#{measuresAdministrationFileIds},
</if>
<if
test=
"measuresEmergency != null"
>
#{measuresEmergency},
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
#{measuresEmergencyFileIds},
</if>
<if
test=
"referenceBasis != null"
>
#{referenceBasis},
</if>
<if
test=
"delFlag != null"
>
#{delFlag},
</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>
</trim>
</insert>
<update
id=
"updateRiskInherentList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskInherentList"
>
update risk_inherent_list
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"code != null"
>
code = #{code},
</if>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"type != null"
>
type = #{type},
</if>
<if
test=
"describe != null"
>
describe = #{describe},
</if>
<if
test=
"evaluationModel != null"
>
evaluation_model = #{evaluationModel},
</if>
<if
test=
"evaluationRange != null"
>
evaluation_range = #{evaluationRange},
</if>
<if
test=
"level != null"
>
level = #{level},
</if>
<if
test=
"factor != null"
>
factor = #{factor},
</if>
<if
test=
"measuresProject != null"
>
measures_project = #{measuresProject},
</if>
<if
test=
"measuresProjectFileIds != null"
>
measures_project_file_ids = #{measuresProjectFileIds},
</if>
<if
test=
"measuresAdministration != null"
>
measures_administration = #{measuresAdministration},
</if>
<if
test=
"measuresAdministrationFileIds != null"
>
measures_administration_file_ids = #{measuresAdministrationFileIds},
</if>
<if
test=
"measuresEmergency != null"
>
measures_emergency = #{measuresEmergency},
</if>
<if
test=
"measuresEmergencyFileIds != null"
>
measures_emergency_file_ids = #{measuresEmergencyFileIds},
</if>
<if
test=
"referenceBasis != null"
>
reference_basis = #{referenceBasis},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag},
</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>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteRiskInherentListById"
parameterType=
"Long"
>
delete from risk_inherent_list where id = #{id}
</delete>
<delete
id=
"deleteRiskInherentListByIds"
parameterType=
"String"
>
delete from risk_inherent_list where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
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