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
217789be
Commit
217789be
authored
Jun 26, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、初始化风险计划
parent
679b0e56
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
2635 additions
and
0 deletions
+2635
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
...ensoft/censoftrongtong/controller/RiskPlanController.java
+105
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlan.java
...ain/java/com/censoft/censoftrongtong/domain/RiskPlan.java
+212
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanExistingList.java
.../censoft/censoftrongtong/domain/RiskPlanExistingList.java
+348
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanInherentList.java
.../censoft/censoftrongtong/domain/RiskPlanInherentList.java
+334
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanTask.java
...java/com/censoft/censoftrongtong/domain/RiskPlanTask.java
+181
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
...ft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
...ft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanMapper.java
...va/com/censoft/censoftrongtong/mapper/RiskPlanMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanTaskMapper.java
...om/censoft/censoftrongtong/mapper/RiskPlanTaskMapper.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanExistingListService.java
...censoftrongtong/service/IRiskPlanExistingListService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanInherentListService.java
...censoftrongtong/service/IRiskPlanInherentListService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanService.java
...com/censoft/censoftrongtong/service/IRiskPlanService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanTaskService.java
...censoft/censoftrongtong/service/IRiskPlanTaskService.java
+62
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
...ongtong/service/impl/RiskPlanExistingListServiceImpl.java
+97
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
...ongtong/service/impl/RiskPlanInherentListServiceImpl.java
+97
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanServiceImpl.java
...oft/censoftrongtong/service/impl/RiskPlanServiceImpl.java
+97
-0
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanTaskServiceImpl.java
...censoftrongtong/service/impl/RiskPlanTaskServiceImpl.java
+94
-0
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
...in/resources/mapper/system/RiskPlanExistingListMapper.xml
+176
-0
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
...in/resources/mapper/system/RiskPlanInherentListMapper.xml
+171
-0
censoft-rongtong/src/main/resources/mapper/system/RiskPlanMapper.xml
...gtong/src/main/resources/mapper/system/RiskPlanMapper.xml
+126
-0
censoft-rongtong/src/main/resources/mapper/system/RiskPlanTaskMapper.xml
...g/src/main/resources/mapper/system/RiskPlanTaskMapper.xml
+101
-0
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanController.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
controller
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.censoft.censoftrongtong.domain.RiskPlan
;
import
com.censoft.censoftrongtong.service.IRiskPlanService
;
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/plan"
)
public
class
RiskPlanController
extends
BaseController
{
@Autowired
private
IRiskPlanService
riskPlanService
;
/**
* 查询风险计划列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RiskPlan
riskPlan
)
{
startPage
();
List
<
RiskPlan
>
list
=
riskPlanService
.
selectRiskPlanList
(
riskPlan
);
return
getDataTable
(
list
);
}
/**
* 导出风险计划列表
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:export')"
)
@Log
(
title
=
"风险计划"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RiskPlan
riskPlan
)
{
List
<
RiskPlan
>
list
=
riskPlanService
.
selectRiskPlanList
(
riskPlan
);
ExcelUtil
<
RiskPlan
>
util
=
new
ExcelUtil
<
RiskPlan
>(
RiskPlan
.
class
);
util
.
exportExcel
(
response
,
list
,
"风险计划数据"
);
}
/**
* 获取风险计划详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
riskPlanService
.
selectRiskPlanById
(
id
));
}
/**
* 新增风险计划
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:add')"
)
@Log
(
title
=
"风险计划"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RiskPlan
riskPlan
)
{
return
toAjax
(
riskPlanService
.
insertRiskPlan
(
riskPlan
));
}
/**
* 修改风险计划
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:edit')"
)
@Log
(
title
=
"风险计划"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RiskPlan
riskPlan
)
{
return
toAjax
(
riskPlanService
.
updateRiskPlan
(
riskPlan
));
}
/**
* 删除风险计划
*/
@PreAuthorize
(
"@ss.hasPermi('system:riskPlan:remove')"
)
@Log
(
title
=
"风险计划"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
riskPlanService
.
deleteRiskPlanByIds
(
ids
));
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlan.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
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.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 风险计划对象 risk_plan
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskPlan
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** $column.columnComment */
private
Long
id
;
/** 任务名称 */
@Excel
(
name
=
"任务名称"
)
private
String
name
;
/** 任务编号 */
@Excel
(
name
=
"任务编号"
)
private
String
no
;
/** 项目id */
@Excel
(
name
=
"项目id"
)
private
Long
projectId
;
/** 楼栋ids */
@Excel
(
name
=
"楼栋ids"
)
private
String
buildingIds
;
/** 创建人员id */
@Excel
(
name
=
"创建人员id"
)
private
Long
createUserId
;
/** 创建单位 */
@Excel
(
name
=
"创建单位"
)
private
Long
createDeptId
;
/** 负责人id */
@Excel
(
name
=
"负责人id"
)
private
Long
leaderUserId
;
/** 执行人员ids */
@Excel
(
name
=
"执行人员ids"
)
private
String
workUserIds
;
/** 开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"开始时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
startTime
;
/** 结束时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
endTime
;
/** 状态 */
@Excel
(
name
=
"状态"
)
private
String
status
;
/** 删除标志(0代表存在 1代表删除) */
private
String
delFlag
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
void
setNo
(
String
no
)
{
this
.
no
=
no
;
}
public
String
getNo
()
{
return
no
;
}
public
void
setProjectId
(
Long
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Long
getProjectId
()
{
return
projectId
;
}
public
void
setBuildingIds
(
String
buildingIds
)
{
this
.
buildingIds
=
buildingIds
;
}
public
String
getBuildingIds
()
{
return
buildingIds
;
}
public
void
setCreateUserId
(
Long
createUserId
)
{
this
.
createUserId
=
createUserId
;
}
public
Long
getCreateUserId
()
{
return
createUserId
;
}
public
void
setCreateDeptId
(
Long
createDeptId
)
{
this
.
createDeptId
=
createDeptId
;
}
public
Long
getCreateDeptId
()
{
return
createDeptId
;
}
public
void
setLeaderUserId
(
Long
leaderUserId
)
{
this
.
leaderUserId
=
leaderUserId
;
}
public
Long
getLeaderUserId
()
{
return
leaderUserId
;
}
public
void
setWorkUserIds
(
String
workUserIds
)
{
this
.
workUserIds
=
workUserIds
;
}
public
String
getWorkUserIds
()
{
return
workUserIds
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getStatus
()
{
return
status
;
}
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
(
"name"
,
getName
())
.
append
(
"no"
,
getNo
())
.
append
(
"projectId"
,
getProjectId
())
.
append
(
"buildingIds"
,
getBuildingIds
())
.
append
(
"createUserId"
,
getCreateUserId
())
.
append
(
"createDeptId"
,
getCreateDeptId
())
.
append
(
"leaderUserId"
,
getLeaderUserId
())
.
append
(
"workUserIds"
,
getWorkUserIds
())
.
append
(
"startTime"
,
getStartTime
())
.
append
(
"endTime"
,
getEndTime
())
.
append
(
"status"
,
getStatus
())
.
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/RiskPlanExistingList.java
0 → 100644
View file @
217789be
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_plan_existing_list
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskPlanExistingList
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 评估人id */
@Excel
(
name
=
"评估人id"
)
private
Long
userId
;
/** 固有风险id */
@Excel
(
name
=
"固有风险id"
)
private
Long
inherentId
;
/** 计划id */
@Excel
(
name
=
"计划id"
)
private
Long
planId
;
/** 房间id */
@Excel
(
name
=
"房间id"
)
private
Long
roomId
;
/** 风险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
presenceLocation
;
/** 风险源照片id */
@Excel
(
name
=
"风险源照片id"
)
private
String
pictureFileIds
;
/** 风险因素 */
@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
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getUserId
()
{
return
userId
;
}
public
void
setInherentId
(
Long
inherentId
)
{
this
.
inherentId
=
inherentId
;
}
public
Long
getInherentId
()
{
return
inherentId
;
}
public
void
setPlanId
(
Long
planId
)
{
this
.
planId
=
planId
;
}
public
Long
getPlanId
()
{
return
planId
;
}
public
void
setRoomId
(
Long
roomId
)
{
this
.
roomId
=
roomId
;
}
public
Long
getRoomId
()
{
return
roomId
;
}
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
setPresenceLocation
(
String
presenceLocation
)
{
this
.
presenceLocation
=
presenceLocation
;
}
public
String
getPresenceLocation
()
{
return
presenceLocation
;
}
public
void
setPictureFileIds
(
String
pictureFileIds
)
{
this
.
pictureFileIds
=
pictureFileIds
;
}
public
String
getPictureFileIds
()
{
return
pictureFileIds
;
}
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
(
"userId"
,
getUserId
())
.
append
(
"inherentId"
,
getInherentId
())
.
append
(
"planId"
,
getPlanId
())
.
append
(
"roomId"
,
getRoomId
())
.
append
(
"code"
,
getCode
())
.
append
(
"name"
,
getName
())
.
append
(
"type"
,
getType
())
.
append
(
"describe"
,
getDescribe
())
.
append
(
"evaluationModel"
,
getEvaluationModel
())
.
append
(
"evaluationRange"
,
getEvaluationRange
())
.
append
(
"level"
,
getLevel
())
.
append
(
"presenceLocation"
,
getPresenceLocation
())
.
append
(
"pictureFileIds"
,
getPictureFileIds
())
.
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/RiskPlanInherentList.java
0 → 100644
View file @
217789be
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_plan_inherent_list
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskPlanInherentList
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 评估人id */
@Excel
(
name
=
"评估人id"
)
private
Long
userId
;
/** 房间id */
@Excel
(
name
=
"房间id"
)
private
Long
roomId
;
/** 计划id */
@Excel
(
name
=
"计划id"
)
private
Long
planId
;
/** 风险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
presenceLocation
;
/** 风险源照片id */
@Excel
(
name
=
"风险源照片id"
)
private
String
pictureFileIds
;
/** 风险因素 */
@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
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getUserId
()
{
return
userId
;
}
public
void
setRoomId
(
Long
roomId
)
{
this
.
roomId
=
roomId
;
}
public
Long
getRoomId
()
{
return
roomId
;
}
public
void
setPlanId
(
Long
planId
)
{
this
.
planId
=
planId
;
}
public
Long
getPlanId
()
{
return
planId
;
}
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
setPresenceLocation
(
String
presenceLocation
)
{
this
.
presenceLocation
=
presenceLocation
;
}
public
String
getPresenceLocation
()
{
return
presenceLocation
;
}
public
void
setPictureFileIds
(
String
pictureFileIds
)
{
this
.
pictureFileIds
=
pictureFileIds
;
}
public
String
getPictureFileIds
()
{
return
pictureFileIds
;
}
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
(
"userId"
,
getUserId
())
.
append
(
"roomId"
,
getRoomId
())
.
append
(
"planId"
,
getPlanId
())
.
append
(
"code"
,
getCode
())
.
append
(
"name"
,
getName
())
.
append
(
"type"
,
getType
())
.
append
(
"describe"
,
getDescribe
())
.
append
(
"evaluationModel"
,
getEvaluationModel
())
.
append
(
"evaluationRange"
,
getEvaluationRange
())
.
append
(
"level"
,
getLevel
())
.
append
(
"presenceLocation"
,
getPresenceLocation
())
.
append
(
"pictureFileIds"
,
getPictureFileIds
())
.
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/RiskPlanTask.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
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.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.core.domain.BaseEntity
;
/**
* 风险计划任务对象 risk_plan_task
*
* @author ruoyi
* @date 2023-06-26
*/
public
class
RiskPlanTask
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
id
;
/** 计划id */
@Excel
(
name
=
"计划id"
)
private
Long
planId
;
/** 任务名称 */
@Excel
(
name
=
"任务名称"
)
private
String
taskName
;
/** 经办结果 */
@Excel
(
name
=
"经办结果"
)
private
String
taskResult
;
/** 经办意见 */
@Excel
(
name
=
"经办意见"
)
private
String
taskOpinion
;
/** 审批单位 */
@Excel
(
name
=
"审批单位"
)
private
Long
approvalDeptId
;
/** 审批角色 */
@Excel
(
name
=
"审批角色"
)
private
String
approvalRoleKey
;
/** 状态 */
@Excel
(
name
=
"状态"
)
private
String
status
;
/** 审批人id */
@Excel
(
name
=
"审批人id"
)
private
Long
approvalUserId
;
/** 开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"开始时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
startTime
;
/** 提交时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"提交时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
completedTime
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setPlanId
(
Long
planId
)
{
this
.
planId
=
planId
;
}
public
Long
getPlanId
()
{
return
planId
;
}
public
void
setTaskName
(
String
taskName
)
{
this
.
taskName
=
taskName
;
}
public
String
getTaskName
()
{
return
taskName
;
}
public
void
setTaskResult
(
String
taskResult
)
{
this
.
taskResult
=
taskResult
;
}
public
String
getTaskResult
()
{
return
taskResult
;
}
public
void
setTaskOpinion
(
String
taskOpinion
)
{
this
.
taskOpinion
=
taskOpinion
;
}
public
String
getTaskOpinion
()
{
return
taskOpinion
;
}
public
void
setApprovalDeptId
(
Long
approvalDeptId
)
{
this
.
approvalDeptId
=
approvalDeptId
;
}
public
Long
getApprovalDeptId
()
{
return
approvalDeptId
;
}
public
void
setApprovalRoleKey
(
String
approvalRoleKey
)
{
this
.
approvalRoleKey
=
approvalRoleKey
;
}
public
String
getApprovalRoleKey
()
{
return
approvalRoleKey
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setApprovalUserId
(
Long
approvalUserId
)
{
this
.
approvalUserId
=
approvalUserId
;
}
public
Long
getApprovalUserId
()
{
return
approvalUserId
;
}
public
void
setStartTime
(
Date
startTime
)
{
this
.
startTime
=
startTime
;
}
public
Date
getStartTime
()
{
return
startTime
;
}
public
void
setCompletedTime
(
Date
completedTime
)
{
this
.
completedTime
=
completedTime
;
}
public
Date
getCompletedTime
()
{
return
completedTime
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"planId"
,
getPlanId
())
.
append
(
"taskName"
,
getTaskName
())
.
append
(
"taskResult"
,
getTaskResult
())
.
append
(
"taskOpinion"
,
getTaskOpinion
())
.
append
(
"approvalDeptId"
,
getApprovalDeptId
())
.
append
(
"approvalRoleKey"
,
getApprovalRoleKey
())
.
append
(
"status"
,
getStatus
())
.
append
(
"approvalUserId"
,
getApprovalUserId
())
.
append
(
"startTime"
,
getStartTime
())
.
append
(
"completedTime"
,
getCompletedTime
())
.
toString
();
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
java.util.List
;
/**
* 现有风险清单库Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskPlanExistingListMapper
{
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
public
RiskPlanExistingList
selectRiskPlanExistingListById
(
Long
id
);
/**
* 查询现有风险清单库列表
*
* @param riskPlanExistingList 现有风险清单库
* @return 现有风险清单库集合
*/
public
List
<
RiskPlanExistingList
>
selectRiskPlanExistingListList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 新增现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
public
int
insertRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 修改现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
public
int
updateRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 删除现有风险清单库
*
* @param id 现有风险清单库主键
* @return 结果
*/
public
int
deleteRiskPlanExistingListById
(
Long
id
);
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskPlanExistingListByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanInherentListMapper.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
java.util.List
;
/**
* 固有风险清单库Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskPlanInherentListMapper
{
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
public
RiskPlanInherentList
selectRiskPlanInherentListById
(
Long
id
);
/**
* 查询固有风险清单库列表
*
* @param riskPlanInherentList 固有风险清单库
* @return 固有风险清单库集合
*/
public
List
<
RiskPlanInherentList
>
selectRiskPlanInherentListList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 新增固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
public
int
insertRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 修改固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
public
int
updateRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 删除固有风险清单库
*
* @param id 固有风险清单库主键
* @return 结果
*/
public
int
deleteRiskPlanInherentListById
(
Long
id
);
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskPlanInherentListByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanMapper.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskPlan
;
import
java.util.List
;
/**
* 风险计划Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskPlanMapper
{
/**
* 查询风险计划
*
* @param id 风险计划主键
* @return 风险计划
*/
public
RiskPlan
selectRiskPlanById
(
Long
id
);
/**
* 查询风险计划列表
*
* @param riskPlan 风险计划
* @return 风险计划集合
*/
public
List
<
RiskPlan
>
selectRiskPlanList
(
RiskPlan
riskPlan
);
/**
* 新增风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
public
int
insertRiskPlan
(
RiskPlan
riskPlan
);
/**
* 修改风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
public
int
updateRiskPlan
(
RiskPlan
riskPlan
);
/**
* 删除风险计划
*
* @param id 风险计划主键
* @return 结果
*/
public
int
deleteRiskPlanById
(
Long
id
);
/**
* 批量删除风险计划
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskPlanByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanTaskMapper.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.censoft.censoftrongtong.domain.RiskPlanTask
;
import
java.util.List
;
/**
* 风险计划任务Mapper接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
RiskPlanTaskMapper
{
/**
* 查询风险计划任务
*
* @param id 风险计划任务主键
* @return 风险计划任务
*/
public
RiskPlanTask
selectRiskPlanTaskById
(
Long
id
);
/**
* 查询风险计划任务列表
*
* @param riskPlanTask 风险计划任务
* @return 风险计划任务集合
*/
public
List
<
RiskPlanTask
>
selectRiskPlanTaskList
(
RiskPlanTask
riskPlanTask
);
/**
* 新增风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
public
int
insertRiskPlanTask
(
RiskPlanTask
riskPlanTask
);
/**
* 修改风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
public
int
updateRiskPlanTask
(
RiskPlanTask
riskPlanTask
);
/**
* 删除风险计划任务
*
* @param id 风险计划任务主键
* @return 结果
*/
public
int
deleteRiskPlanTaskById
(
Long
id
);
/**
* 批量删除风险计划任务
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public
int
deleteRiskPlanTaskByIds
(
Long
[]
ids
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanExistingListService.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
java.util.List
;
/**
* 现有风险清单库Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskPlanExistingListService
{
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
public
RiskPlanExistingList
selectRiskPlanExistingListById
(
Long
id
);
/**
* 查询现有风险清单库列表
*
* @param riskPlanExistingList 现有风险清单库
* @return 现有风险清单库集合
*/
public
List
<
RiskPlanExistingList
>
selectRiskPlanExistingListList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 新增现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
public
int
insertRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 修改现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
public
int
updateRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
);
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的现有风险清单库主键集合
* @return 结果
*/
public
int
deleteRiskPlanExistingListByIds
(
Long
[]
ids
);
/**
* 删除现有风险清单库信息
*
* @param id 现有风险清单库主键
* @return 结果
*/
public
int
deleteRiskPlanExistingListById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanInherentListService.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
java.util.List
;
/**
* 固有风险清单库Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskPlanInherentListService
{
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
public
RiskPlanInherentList
selectRiskPlanInherentListById
(
Long
id
);
/**
* 查询固有风险清单库列表
*
* @param riskPlanInherentList 固有风险清单库
* @return 固有风险清单库集合
*/
public
List
<
RiskPlanInherentList
>
selectRiskPlanInherentListList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 新增固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
public
int
insertRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 修改固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
public
int
updateRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
);
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的固有风险清单库主键集合
* @return 结果
*/
public
int
deleteRiskPlanInherentListByIds
(
Long
[]
ids
);
/**
* 删除固有风险清单库信息
*
* @param id 固有风险清单库主键
* @return 结果
*/
public
int
deleteRiskPlanInherentListById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanService.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskPlan
;
import
java.util.List
;
/**
* 风险计划Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskPlanService
{
/**
* 查询风险计划
*
* @param id 风险计划主键
* @return 风险计划
*/
public
RiskPlan
selectRiskPlanById
(
Long
id
);
/**
* 查询风险计划列表
*
* @param riskPlan 风险计划
* @return 风险计划集合
*/
public
List
<
RiskPlan
>
selectRiskPlanList
(
RiskPlan
riskPlan
);
/**
* 新增风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
public
int
insertRiskPlan
(
RiskPlan
riskPlan
);
/**
* 修改风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
public
int
updateRiskPlan
(
RiskPlan
riskPlan
);
/**
* 批量删除风险计划
*
* @param ids 需要删除的风险计划主键集合
* @return 结果
*/
public
int
deleteRiskPlanByIds
(
Long
[]
ids
);
/**
* 删除风险计划信息
*
* @param id 风险计划主键
* @return 结果
*/
public
int
deleteRiskPlanById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanTaskService.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.censoft.censoftrongtong.domain.RiskPlanTask
;
import
java.util.List
;
/**
* 风险计划任务Service接口
*
* @author ruoyi
* @date 2023-06-26
*/
public
interface
IRiskPlanTaskService
{
/**
* 查询风险计划任务
*
* @param id 风险计划任务主键
* @return 风险计划任务
*/
public
RiskPlanTask
selectRiskPlanTaskById
(
Long
id
);
/**
* 查询风险计划任务列表
*
* @param riskPlanTask 风险计划任务
* @return 风险计划任务集合
*/
public
List
<
RiskPlanTask
>
selectRiskPlanTaskList
(
RiskPlanTask
riskPlanTask
);
/**
* 新增风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
public
int
insertRiskPlanTask
(
RiskPlanTask
riskPlanTask
);
/**
* 修改风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
public
int
updateRiskPlanTask
(
RiskPlanTask
riskPlanTask
);
/**
* 批量删除风险计划任务
*
* @param ids 需要删除的风险计划任务主键集合
* @return 结果
*/
public
int
deleteRiskPlanTaskByIds
(
Long
[]
ids
);
/**
* 删除风险计划任务信息
*
* @param id 风险计划任务主键
* @return 结果
*/
public
int
deleteRiskPlanTaskById
(
Long
id
);
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper
;
import
com.censoft.censoftrongtong.service.IRiskPlanExistingListService
;
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
RiskPlanExistingListServiceImpl
implements
IRiskPlanExistingListService
{
@Autowired
private
RiskPlanExistingListMapper
riskPlanExistingListMapper
;
/**
* 查询现有风险清单库
*
* @param id 现有风险清单库主键
* @return 现有风险清单库
*/
@Override
public
RiskPlanExistingList
selectRiskPlanExistingListById
(
Long
id
)
{
return
riskPlanExistingListMapper
.
selectRiskPlanExistingListById
(
id
);
}
/**
* 查询现有风险清单库列表
*
* @param riskPlanExistingList 现有风险清单库
* @return 现有风险清单库
*/
@Override
public
List
<
RiskPlanExistingList
>
selectRiskPlanExistingListList
(
RiskPlanExistingList
riskPlanExistingList
)
{
return
riskPlanExistingListMapper
.
selectRiskPlanExistingListList
(
riskPlanExistingList
);
}
/**
* 新增现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
@Override
public
int
insertRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
)
{
riskPlanExistingList
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
riskPlanExistingListMapper
.
insertRiskPlanExistingList
(
riskPlanExistingList
);
}
/**
* 修改现有风险清单库
*
* @param riskPlanExistingList 现有风险清单库
* @return 结果
*/
@Override
public
int
updateRiskPlanExistingList
(
RiskPlanExistingList
riskPlanExistingList
)
{
riskPlanExistingList
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
riskPlanExistingListMapper
.
updateRiskPlanExistingList
(
riskPlanExistingList
);
}
/**
* 批量删除现有风险清单库
*
* @param ids 需要删除的现有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanExistingListByIds
(
Long
[]
ids
)
{
return
riskPlanExistingListMapper
.
deleteRiskPlanExistingListByIds
(
ids
);
}
/**
* 删除现有风险清单库信息
*
* @param id 现有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanExistingListById
(
Long
id
)
{
return
riskPlanExistingListMapper
.
deleteRiskPlanExistingListById
(
id
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanInherentListServiceImpl.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
com.censoft.censoftrongtong.mapper.RiskPlanInherentListMapper
;
import
com.censoft.censoftrongtong.service.IRiskPlanInherentListService
;
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
RiskPlanInherentListServiceImpl
implements
IRiskPlanInherentListService
{
@Autowired
private
RiskPlanInherentListMapper
riskPlanInherentListMapper
;
/**
* 查询固有风险清单库
*
* @param id 固有风险清单库主键
* @return 固有风险清单库
*/
@Override
public
RiskPlanInherentList
selectRiskPlanInherentListById
(
Long
id
)
{
return
riskPlanInherentListMapper
.
selectRiskPlanInherentListById
(
id
);
}
/**
* 查询固有风险清单库列表
*
* @param riskPlanInherentList 固有风险清单库
* @return 固有风险清单库
*/
@Override
public
List
<
RiskPlanInherentList
>
selectRiskPlanInherentListList
(
RiskPlanInherentList
riskPlanInherentList
)
{
return
riskPlanInherentListMapper
.
selectRiskPlanInherentListList
(
riskPlanInherentList
);
}
/**
* 新增固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
@Override
public
int
insertRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
)
{
riskPlanInherentList
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
riskPlanInherentListMapper
.
insertRiskPlanInherentList
(
riskPlanInherentList
);
}
/**
* 修改固有风险清单库
*
* @param riskPlanInherentList 固有风险清单库
* @return 结果
*/
@Override
public
int
updateRiskPlanInherentList
(
RiskPlanInherentList
riskPlanInherentList
)
{
riskPlanInherentList
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
riskPlanInherentListMapper
.
updateRiskPlanInherentList
(
riskPlanInherentList
);
}
/**
* 批量删除固有风险清单库
*
* @param ids 需要删除的固有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanInherentListByIds
(
Long
[]
ids
)
{
return
riskPlanInherentListMapper
.
deleteRiskPlanInherentListByIds
(
ids
);
}
/**
* 删除固有风险清单库信息
*
* @param id 固有风险清单库主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanInherentListById
(
Long
id
)
{
return
riskPlanInherentListMapper
.
deleteRiskPlanInherentListById
(
id
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanServiceImpl.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskPlan
;
import
com.censoft.censoftrongtong.mapper.RiskPlanMapper
;
import
com.censoft.censoftrongtong.service.IRiskPlanService
;
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
RiskPlanServiceImpl
implements
IRiskPlanService
{
@Autowired
private
RiskPlanMapper
riskPlanMapper
;
/**
* 查询风险计划
*
* @param id 风险计划主键
* @return 风险计划
*/
@Override
public
RiskPlan
selectRiskPlanById
(
Long
id
)
{
return
riskPlanMapper
.
selectRiskPlanById
(
id
);
}
/**
* 查询风险计划列表
*
* @param riskPlan 风险计划
* @return 风险计划
*/
@Override
public
List
<
RiskPlan
>
selectRiskPlanList
(
RiskPlan
riskPlan
)
{
return
riskPlanMapper
.
selectRiskPlanList
(
riskPlan
);
}
/**
* 新增风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
@Override
public
int
insertRiskPlan
(
RiskPlan
riskPlan
)
{
riskPlan
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
riskPlanMapper
.
insertRiskPlan
(
riskPlan
);
}
/**
* 修改风险计划
*
* @param riskPlan 风险计划
* @return 结果
*/
@Override
public
int
updateRiskPlan
(
RiskPlan
riskPlan
)
{
riskPlan
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
riskPlanMapper
.
updateRiskPlan
(
riskPlan
);
}
/**
* 批量删除风险计划
*
* @param ids 需要删除的风险计划主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanByIds
(
Long
[]
ids
)
{
return
riskPlanMapper
.
deleteRiskPlanByIds
(
ids
);
}
/**
* 删除风险计划信息
*
* @param id 风险计划主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanById
(
Long
id
)
{
return
riskPlanMapper
.
deleteRiskPlanById
(
id
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanTaskServiceImpl.java
0 → 100644
View file @
217789be
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.censoft.censoftrongtong.domain.RiskPlanTask
;
import
com.censoft.censoftrongtong.mapper.RiskPlanTaskMapper
;
import
com.censoft.censoftrongtong.service.IRiskPlanTaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
/**
* 风险计划任务Service业务层处理
*
* @author ruoyi
* @date 2023-06-26
*/
@Service
public
class
RiskPlanTaskServiceImpl
implements
IRiskPlanTaskService
{
@Autowired
private
RiskPlanTaskMapper
riskPlanTaskMapper
;
/**
* 查询风险计划任务
*
* @param id 风险计划任务主键
* @return 风险计划任务
*/
@Override
public
RiskPlanTask
selectRiskPlanTaskById
(
Long
id
)
{
return
riskPlanTaskMapper
.
selectRiskPlanTaskById
(
id
);
}
/**
* 查询风险计划任务列表
*
* @param riskPlanTask 风险计划任务
* @return 风险计划任务
*/
@Override
public
List
<
RiskPlanTask
>
selectRiskPlanTaskList
(
RiskPlanTask
riskPlanTask
)
{
return
riskPlanTaskMapper
.
selectRiskPlanTaskList
(
riskPlanTask
);
}
/**
* 新增风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
@Override
public
int
insertRiskPlanTask
(
RiskPlanTask
riskPlanTask
)
{
return
riskPlanTaskMapper
.
insertRiskPlanTask
(
riskPlanTask
);
}
/**
* 修改风险计划任务
*
* @param riskPlanTask 风险计划任务
* @return 结果
*/
@Override
public
int
updateRiskPlanTask
(
RiskPlanTask
riskPlanTask
)
{
return
riskPlanTaskMapper
.
updateRiskPlanTask
(
riskPlanTask
);
}
/**
* 批量删除风险计划任务
*
* @param ids 需要删除的风险计划任务主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanTaskByIds
(
Long
[]
ids
)
{
return
riskPlanTaskMapper
.
deleteRiskPlanTaskByIds
(
ids
);
}
/**
* 删除风险计划任务信息
*
* @param id 风险计划任务主键
* @return 结果
*/
@Override
public
int
deleteRiskPlanTaskById
(
Long
id
)
{
return
riskPlanTaskMapper
.
deleteRiskPlanTaskById
(
id
);
}
}
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
0 → 100644
View file @
217789be
This diff is collapsed.
Click to expand it.
censoft-rongtong/src/main/resources/mapper/system/RiskPlanInherentListMapper.xml
0 → 100644
View file @
217789be
This diff is collapsed.
Click to expand it.
censoft-rongtong/src/main/resources/mapper/system/RiskPlanMapper.xml
0 → 100644
View file @
217789be
<?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.RiskPlanMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.RiskPlan"
id=
"RiskPlanResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"no"
column=
"no"
/>
<result
property=
"projectId"
column=
"project_id"
/>
<result
property=
"buildingIds"
column=
"building_ids"
/>
<result
property=
"createUserId"
column=
"create_user_id"
/>
<result
property=
"createDeptId"
column=
"create_dept_id"
/>
<result
property=
"leaderUserId"
column=
"leader_user_id"
/>
<result
property=
"workUserIds"
column=
"work_user_ids"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"endTime"
column=
"end_time"
/>
<result
property=
"status"
column=
"status"
/>
<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=
"selectRiskPlanVo"
>
select id, name, no, project_id, building_ids, create_user_id, create_dept_id, leader_user_id, work_user_ids, start_time, end_time, status, del_flag, create_by, create_time, update_by, update_time from risk_plan
</sql>
<select
id=
"selectRiskPlanList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlan"
resultMap=
"RiskPlanResult"
>
<include
refid=
"selectRiskPlanVo"
/>
<where>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"no != null and no != ''"
>
and no = #{no}
</if>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"buildingIds != null and buildingIds != ''"
>
and building_ids = #{buildingIds}
</if>
<if
test=
"createUserId != null "
>
and create_user_id = #{createUserId}
</if>
<if
test=
"createDeptId != null "
>
and create_dept_id = #{createDeptId}
</if>
<if
test=
"leaderUserId != null "
>
and leader_user_id = #{leaderUserId}
</if>
<if
test=
"workUserIds != null and workUserIds != ''"
>
and work_user_ids = #{workUserIds}
</if>
<if
test=
"startTime != null "
>
and start_time = #{startTime}
</if>
<if
test=
"endTime != null "
>
and end_time = #{endTime}
</if>
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
</where>
</select>
<select
id=
"selectRiskPlanById"
parameterType=
"Long"
resultMap=
"RiskPlanResult"
>
<include
refid=
"selectRiskPlanVo"
/>
where id = #{id}
</select>
<insert
id=
"insertRiskPlan"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlan"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into risk_plan
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"no != null"
>
no,
</if>
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"buildingIds != null"
>
building_ids,
</if>
<if
test=
"createUserId != null"
>
create_user_id,
</if>
<if
test=
"createDeptId != null"
>
create_dept_id,
</if>
<if
test=
"leaderUserId != null"
>
leader_user_id,
</if>
<if
test=
"workUserIds != null"
>
work_user_ids,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"endTime != null"
>
end_time,
</if>
<if
test=
"status != null"
>
status,
</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=
"name != null"
>
#{name},
</if>
<if
test=
"no != null"
>
#{no},
</if>
<if
test=
"projectId != null"
>
#{projectId},
</if>
<if
test=
"buildingIds != null"
>
#{buildingIds},
</if>
<if
test=
"createUserId != null"
>
#{createUserId},
</if>
<if
test=
"createDeptId != null"
>
#{createDeptId},
</if>
<if
test=
"leaderUserId != null"
>
#{leaderUserId},
</if>
<if
test=
"workUserIds != null"
>
#{workUserIds},
</if>
<if
test=
"startTime != null"
>
#{startTime},
</if>
<if
test=
"endTime != null"
>
#{endTime},
</if>
<if
test=
"status != null"
>
#{status},
</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=
"updateRiskPlan"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlan"
>
update risk_plan
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"no != null"
>
no = #{no},
</if>
<if
test=
"projectId != null"
>
project_id = #{projectId},
</if>
<if
test=
"buildingIds != null"
>
building_ids = #{buildingIds},
</if>
<if
test=
"createUserId != null"
>
create_user_id = #{createUserId},
</if>
<if
test=
"createDeptId != null"
>
create_dept_id = #{createDeptId},
</if>
<if
test=
"leaderUserId != null"
>
leader_user_id = #{leaderUserId},
</if>
<if
test=
"workUserIds != null"
>
work_user_ids = #{workUserIds},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime},
</if>
<if
test=
"endTime != null"
>
end_time = #{endTime},
</if>
<if
test=
"status != null"
>
status = #{status},
</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=
"deleteRiskPlanById"
parameterType=
"Long"
>
delete from risk_plan where id = #{id}
</delete>
<delete
id=
"deleteRiskPlanByIds"
parameterType=
"String"
>
delete from risk_plan 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/RiskPlanTaskMapper.xml
0 → 100644
View file @
217789be
<?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.RiskPlanTaskMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.RiskPlanTask"
id=
"RiskPlanTaskResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"planId"
column=
"plan_id"
/>
<result
property=
"taskName"
column=
"task_name"
/>
<result
property=
"taskResult"
column=
"task_result"
/>
<result
property=
"taskOpinion"
column=
"task_opinion"
/>
<result
property=
"approvalDeptId"
column=
"approval_dept_id"
/>
<result
property=
"approvalRoleKey"
column=
"approval_role_key"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"approvalUserId"
column=
"approval_user_id"
/>
<result
property=
"startTime"
column=
"start_time"
/>
<result
property=
"completedTime"
column=
"completed_time"
/>
</resultMap>
<sql
id=
"selectRiskPlanTaskVo"
>
select id, plan_id, task_name, task_result, task_opinion, approval_dept_id, approval_role_key, status, approval_user_id, start_time, completed_time from risk_plan_task
</sql>
<select
id=
"selectRiskPlanTaskList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanTask"
resultMap=
"RiskPlanTaskResult"
>
<include
refid=
"selectRiskPlanTaskVo"
/>
<where>
<if
test=
"planId != null "
>
and plan_id = #{planId}
</if>
<if
test=
"taskName != null and taskName != ''"
>
and task_name like concat('%', #{taskName}, '%')
</if>
<if
test=
"taskResult != null and taskResult != ''"
>
and task_result = #{taskResult}
</if>
<if
test=
"taskOpinion != null and taskOpinion != ''"
>
and task_opinion = #{taskOpinion}
</if>
<if
test=
"approvalDeptId != null "
>
and approval_dept_id = #{approvalDeptId}
</if>
<if
test=
"approvalRoleKey != null and approvalRoleKey != ''"
>
and approval_role_key = #{approvalRoleKey}
</if>
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
<if
test=
"approvalUserId != null "
>
and approval_user_id = #{approvalUserId}
</if>
<if
test=
"startTime != null "
>
and start_time = #{startTime}
</if>
<if
test=
"completedTime != null "
>
and completed_time = #{completedTime}
</if>
</where>
</select>
<select
id=
"selectRiskPlanTaskById"
parameterType=
"Long"
resultMap=
"RiskPlanTaskResult"
>
<include
refid=
"selectRiskPlanTaskVo"
/>
where id = #{id}
</select>
<insert
id=
"insertRiskPlanTask"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanTask"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into risk_plan_task
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"planId != null"
>
plan_id,
</if>
<if
test=
"taskName != null"
>
task_name,
</if>
<if
test=
"taskResult != null"
>
task_result,
</if>
<if
test=
"taskOpinion != null"
>
task_opinion,
</if>
<if
test=
"approvalDeptId != null"
>
approval_dept_id,
</if>
<if
test=
"approvalRoleKey != null"
>
approval_role_key,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"approvalUserId != null"
>
approval_user_id,
</if>
<if
test=
"startTime != null"
>
start_time,
</if>
<if
test=
"completedTime != null"
>
completed_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"planId != null"
>
#{planId},
</if>
<if
test=
"taskName != null"
>
#{taskName},
</if>
<if
test=
"taskResult != null"
>
#{taskResult},
</if>
<if
test=
"taskOpinion != null"
>
#{taskOpinion},
</if>
<if
test=
"approvalDeptId != null"
>
#{approvalDeptId},
</if>
<if
test=
"approvalRoleKey != null"
>
#{approvalRoleKey},
</if>
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"approvalUserId != null"
>
#{approvalUserId},
</if>
<if
test=
"startTime != null"
>
#{startTime},
</if>
<if
test=
"completedTime != null"
>
#{completedTime},
</if>
</trim>
</insert>
<update
id=
"updateRiskPlanTask"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanTask"
>
update risk_plan_task
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"planId != null"
>
plan_id = #{planId},
</if>
<if
test=
"taskName != null"
>
task_name = #{taskName},
</if>
<if
test=
"taskResult != null"
>
task_result = #{taskResult},
</if>
<if
test=
"taskOpinion != null"
>
task_opinion = #{taskOpinion},
</if>
<if
test=
"approvalDeptId != null"
>
approval_dept_id = #{approvalDeptId},
</if>
<if
test=
"approvalRoleKey != null"
>
approval_role_key = #{approvalRoleKey},
</if>
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"approvalUserId != null"
>
approval_user_id = #{approvalUserId},
</if>
<if
test=
"startTime != null"
>
start_time = #{startTime},
</if>
<if
test=
"completedTime != null"
>
completed_time = #{completedTime},
</if>
</trim>
where id = #{id}
</update>
<delete
id=
"deleteRiskPlanTaskById"
parameterType=
"Long"
>
delete from risk_plan_task where id = #{id}
</delete>
<delete
id=
"deleteRiskPlanTaskByIds"
parameterType=
"String"
>
delete from risk_plan_task 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