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
2549d8c7
Commit
2549d8c7
authored
Jul 17, 2023
by
周昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改现有风险字段
parent
97979645
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
129 additions
and
673 deletions
+129
-673
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
...oft/censoftrongtong/controller/RiskPlanAppController.java
+2
-2
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanExistingList.java
.../censoft/censoftrongtong/domain/RiskPlanExistingList.java
+42
-290
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/dto/RiskExistingListSaveDto.java
...t/censoftrongtong/domain/dto/RiskExistingListSaveDto.java
+69
-22
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
...ft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
+3
-51
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/IRiskPlanExistingListService.java
...censoftrongtong/service/IRiskPlanExistingListService.java
+4
-50
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
...ongtong/service/impl/RiskPlanExistingListServiceImpl.java
+9
-82
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
...in/resources/mapper/system/RiskPlanExistingListMapper.xml
+0
-176
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/RiskPlanAppController.java
View file @
2549d8c7
...
@@ -405,10 +405,10 @@ public class RiskPlanAppController extends BaseController {
...
@@ -405,10 +405,10 @@ public class RiskPlanAppController extends BaseController {
* 添加现有风险
* 添加现有风险
*
*
* @param saveDto 现有风险表单
* @param saveDto 现有风险表单
* @real_return {@link R<
Integer
>}
* @real_return {@link R<
Boolean
>}
*/
*/
@PostMapping
(
"/existing"
)
@PostMapping
(
"/existing"
)
public
R
<
Integer
>
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
public
R
<
Boolean
>
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
,
@RequestParam
(
value
=
"pictureFile[]"
,
required
=
false
)
MultipartFile
[]
pictureFile
,
@RequestParam
(
value
=
"pictureFile[]"
,
required
=
false
)
MultipartFile
[]
pictureFile
,
@RequestParam
(
value
=
"measuresProjectFile[]"
,
required
=
false
)
MultipartFile
[]
measuresProjectFile
,
@RequestParam
(
value
=
"measuresProjectFile[]"
,
required
=
false
)
MultipartFile
[]
measuresProjectFile
,
@RequestParam
(
value
=
"measuresAdministrationFile[]"
,
required
=
false
)
MultipartFile
[]
measuresAdministrationFile
,
@RequestParam
(
value
=
"measuresAdministrationFile[]"
,
required
=
false
)
MultipartFile
[]
measuresAdministrationFile
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/RiskPlanExistingList.java
View file @
2549d8c7
package
com
.
censoft
.
censoftrongtong
.
domain
;
package
com
.
censoft
.
censoftrongtong
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.annotation.Excel
;
...
@@ -11,390 +16,137 @@ import com.ruoyi.common.core.domain.BaseEntity;
...
@@ -11,390 +16,137 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @author ruoyi
* @date 2023-06-26
* @date 2023-06-26
*/
*/
@Data
@TableName
(
"risk_plan_existing_list"
)
public
class
RiskPlanExistingList
extends
BaseEntity
{
public
class
RiskPlanExistingList
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* id
* id
*/
*/
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/**
/**
* 评估人id
* 评估人id
*/
*/
@
Excel
(
name
=
"评估人
id"
)
@
TableField
(
"user_
id"
)
private
Long
userId
;
private
Long
userId
;
/**
/**
* 固有风险id
* 固有风险id
*/
*/
@
Excel
(
name
=
"固有风险
id"
)
@
TableField
(
"inherent_
id"
)
private
Long
inherentId
;
private
Long
inherentId
;
/**
/**
* 计划id
* 计划id
*/
*/
@
Excel
(
name
=
"计划
id"
)
@
TableField
(
"plan_
id"
)
private
Long
planId
;
private
Long
planId
;
/**
/**
* 房间id
* 房间id
*/
*/
@
Excel
(
name
=
"房间
id"
)
@
TableField
(
"room_
id"
)
private
Long
roomId
;
private
Long
roomId
;
/**
* 风险code
*/
@Excel
(
name
=
"风险code"
)
private
String
code
;
/**
/**
* 风险源名称
* 风险源名称
*/
*/
@
Excel
(
name
=
"风险源名称
"
)
@
TableField
(
"name
"
)
private
String
name
;
private
String
name
;
/**
/**
* 风险类型
* 风险因素
*/
@Excel
(
name
=
"风险类型"
)
private
String
type
;
/**
* 风险描述
*/
@Excel
(
name
=
"风险描述"
)
private
String
describe
;
/**
* 评估模型
*/
*/
@
Excel
(
name
=
"评估模型
"
)
@
TableField
(
"factor
"
)
private
String
evaluationModel
;
private
String
factor
;
/**
/**
*
评估范围
*
准事故类型
*/
*/
@
Excel
(
name
=
"评估范围
"
)
@
TableField
(
"type
"
)
private
String
evaluationRang
e
;
private
String
typ
e
;
/**
/**
* 风险等级
* 风险等级
*/
*/
@
Excel
(
name
=
"风险等级
"
)
@
TableField
(
"level
"
)
private
String
level
;
private
String
level
;
/**
/**
* 存在部位
* 存在部位
*/
*/
@
Excel
(
name
=
"存在部位
"
)
@
TableField
(
"presence_location
"
)
private
String
presenceLocation
;
private
String
presenceLocation
;
/**
/**
* 风险源照片id
* 风险源照片id
*/
*/
@
Excel
(
name
=
"风险源照片id
"
)
@
TableField
(
"picture_file_ids
"
)
private
String
pictureFileIds
;
private
String
pictureFileIds
;
/**
* 风险因素
*/
@Excel
(
name
=
"风险因素"
)
private
String
factor
;
/**
/**
*
发生可能性
*
技术措施
*/
*/
@
Excel
(
name
=
"发生可能性
"
)
@
TableField
(
"measures_project
"
)
private
String
riskLikelihood
;
private
String
measuresProject
;
/**
/**
*
后果严重程度
*
技术措施附件
*/
*/
@Excel
(
name
=
"后果严重程度"
)
@TableField
(
"measures_project_file_ids"
)
private
String
riskSeverity
;
private
String
measuresProjectFileIds
;
/**
/**
*
工程技术
措施
*
已采取的管控
措施
*/
*/
@
Excel
(
name
=
"工程技术措施
"
)
@
TableField
(
"measures_administration
"
)
private
String
measures
Project
;
private
String
measures
Administration
;
/**
/**
*
工程技术措施附件
*
管控责任单位id
*/
*/
@
Excel
(
name
=
"工程技术措施附件
"
)
@
TableField
(
"measures_dept_id
"
)
private
String
measuresProjectFileIds
;
private
Long
measuresDeptId
;
/**
/**
* 管
理措施
* 管
控责任人id
*/
*/
@
Excel
(
name
=
"管理措施
"
)
@
TableField
(
"measures_user_id
"
)
private
String
measuresAdministration
;
private
Long
measuresUserId
;
/**
/**
* 管理措施附件
* 管理措施附件
*/
*/
@
Excel
(
name
=
"管理措施附件
"
)
@
TableField
(
"measures_administration_file_ids
"
)
private
String
measuresAdministrationFileIds
;
private
String
measuresAdministrationFileIds
;
/**
/**
* 应急处置措施
* 应急处置措施
*/
*/
@
Excel
(
name
=
"应急处置措施
"
)
@
TableField
(
"measures_emergency
"
)
private
String
measuresEmergency
;
private
String
measuresEmergency
;
/**
/**
* 应急处置措施附件
* 应急处置措施附件
*/
*/
@
Excel
(
name
=
"应急处置措施附件
"
)
@
TableField
(
"measures_emergency_file_ids
"
)
private
String
measuresEmergencyFileIds
;
private
String
measuresEmergencyFileIds
;
/**
/**
* 参考依据
* 参考依据
*/
*/
@
Excel
(
name
=
"参考依据
"
)
@
TableField
(
"reference_basis
"
)
private
String
referenceBasis
;
private
String
referenceBasis
;
/**
/**
* 删除标志(0代表存在 1代表删除)
* 删除标志(0代表存在 1代表删除)
*/
*/
@TableField
(
"del_flag"
)
private
String
delFlag
;
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
getRiskLikelihood
()
{
return
riskLikelihood
;
}
public
void
setRiskLikelihood
(
String
riskLikelihood
)
{
this
.
riskLikelihood
=
riskLikelihood
;
}
public
String
getRiskSeverity
()
{
return
riskSeverity
;
}
public
void
setRiskSeverity
(
String
riskSeverity
)
{
this
.
riskSeverity
=
riskSeverity
;
}
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
(
"riskLikelihood"
,
getRiskLikelihood
())
.
append
(
"riskSeverity"
,
getRiskSeverity
())
.
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/dto/RiskExistingListSaveDto.java
View file @
2549d8c7
...
@@ -11,57 +11,104 @@ import lombok.Data;
...
@@ -11,57 +11,104 @@ import lombok.Data;
@Data
@Data
public
class
RiskExistingListSaveDto
{
public
class
RiskExistingListSaveDto
{
/** id */
/**
* id
*/
private
Long
id
;
private
Long
id
;
/** 评估人id */
/**
* 评估人id
*/
private
Long
userId
;
private
Long
userId
;
/** 固有风险 */
/**
* 固有风险id
*/
private
Long
inherentId
;
private
Long
inherentId
;
/** 房间id */
/**
private
Long
roomId
;
* 计划id
*/
/** 计划id */
private
Long
planId
;
private
Long
planId
;
/** 风险源名称 */
/**
* 房间id
*/
private
Long
roomId
;
/**
* 风险源名称
*/
private
String
name
;
private
String
name
;
/** 风险因素 */
/**
* 风险因素
*/
private
String
factor
;
private
String
factor
;
/** 事故类型 */
/**
* 准事故类型
*/
private
String
type
;
private
String
type
;
/** 风险等级 */
/**
* 风险等级
*/
private
String
level
;
private
String
level
;
/** 风险描述 */
/**
private
String
describe
;
* 存在部位
*/
private
String
presenceLocation
;
/** 风险源照片id */
/**
* 风险源照片id
*/
private
String
pictureFileIds
;
private
String
pictureFileIds
;
/** 工程技术措施 */
/**
* 技术措施
*/
private
String
measuresProject
;
private
String
measuresProject
;
/** 工程技术措施附件 */
/**
* 技术措施附件
*/
private
String
measuresProjectFileIds
;
private
String
measuresProjectFileIds
;
/** 管理措施 */
/**
* 已采取的管控措施
*/
private
String
measuresAdministration
;
private
String
measuresAdministration
;
/** 管理措施附件 */
/**
* 管控责任单位id
*/
private
Long
measuresDeptId
;
/**
* 管控责任人id
*/
private
Long
measuresUserId
;
/**
* 管理措施附件
*/
private
String
measuresAdministrationFileIds
;
private
String
measuresAdministrationFileIds
;
/** 应急处置措施 */
/**
* 应急处置措施
*/
private
String
measuresEmergency
;
private
String
measuresEmergency
;
/** 应急处置措施附件 */
/**
* 应急处置措施附件
*/
private
String
measuresEmergencyFileIds
;
private
String
measuresEmergencyFileIds
;
/** 参考依据 */
/**
* 参考依据
*/
private
String
referenceBasis
;
private
String
referenceBasis
;
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/mapper/RiskPlanExistingListMapper.java
View file @
2549d8c7
package
com
.
censoft
.
censoftrongtong
.
mapper
;
package
com
.
censoft
.
censoftrongtong
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
java.util.List
;
/**
/**
* 现有风险清单库Mapper接口
* 现有风险清单库Mapper接口
*
*
* @author ruoyi
* @author ruoyi
* @date 2023-06-26
* @date 2023-06-26
*/
*/
public
interface
RiskPlanExistingListMapper
public
interface
RiskPlanExistingListMapper
extends
BaseMapper
<
RiskPlanExistingList
>
{
{
/**
* 查询现有风险清单库
*
* @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/service/IRiskPlanExistingListService.java
View file @
2549d8c7
package
com
.
censoft
.
censoftrongtong
.
service
;
package
com
.
censoft
.
censoftrongtong
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto
;
import
com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto
;
import
java.util.List
;
import
java.util.List
;
...
@@ -11,55 +13,7 @@ import java.util.List;
...
@@ -11,55 +13,7 @@ import java.util.List;
* @author ruoyi
* @author ruoyi
* @date 2023-06-26
* @date 2023-06-26
*/
*/
public
interface
IRiskPlanExistingListService
public
interface
IRiskPlanExistingListService
extends
IService
<
RiskPlanExistingList
>
{
{
/**
Boolean
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
);
* 查询现有风险清单库
*
* @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
);
int
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
);
}
}
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/service/impl/RiskPlanExistingListServiceImpl.java
View file @
2549d8c7
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
package
com
.
censoft
.
censoftrongtong
.
service
.
impl
;
import
java.util.List
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.domain.RiskPlanExistingList
;
import
com.censoft.censoftrongtong.domain.RiskPlanInherentList
;
import
com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto
;
import
com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto
;
import
com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper
;
import
com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper
;
import
com.censoft.censoftrongtong.service.IRiskPlanExistingListService
;
import
com.censoft.censoftrongtong.service.IRiskPlanExistingListService
;
...
@@ -12,6 +10,8 @@ import org.springframework.beans.BeanUtils;
...
@@ -12,6 +10,8 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* 现有风险清单库Service业务层处理
* 现有风险清单库Service业务层处理
*
*
...
@@ -19,89 +19,16 @@ import org.springframework.stereotype.Service;
...
@@ -19,89 +19,16 @@ import org.springframework.stereotype.Service;
* @date 2023-06-26
* @date 2023-06-26
*/
*/
@Service
@Service
public
class
RiskPlanExistingListServiceImpl
implements
IRiskPlanExistingListService
public
class
RiskPlanExistingListServiceImpl
{
extends
ServiceImpl
<
RiskPlanExistingListMapper
,
RiskPlanExistingList
>
implements
IRiskPlanExistingListService
{
@Autowired
@Autowired
private
RiskPlanExistingListMapper
riskPlanExistingListMapper
;
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
);
}
@Override
@Override
public
int
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
)
{
public
Boolean
saveRiskExistingListSaveDto
(
RiskExistingListSaveDto
saveDto
)
{
RiskPlanExistingList
existingList
=
new
RiskPlanExistingList
();
RiskPlanExistingList
existingList
=
new
RiskPlanExistingList
();
BeanUtils
.
copyProperties
(
saveDto
,
existingList
);
BeanUtils
.
copyProperties
(
saveDto
,
existingList
);
return
insertRiskPlanExistingList
(
existingList
);
return
save
(
existingList
);
}
}
}
}
censoft-rongtong/src/main/resources/mapper/system/RiskPlanExistingListMapper.xml
View file @
2549d8c7
...
@@ -4,181 +4,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -4,181 +4,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper"
>
<mapper
namespace=
"com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.RiskPlanExistingList"
id=
"RiskPlanExistingListResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"inherentId"
column=
"inherent_id"
/>
<result
property=
"planId"
column=
"plan_id"
/>
<result
property=
"roomId"
column=
"room_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=
"riskLikelihood"
column=
"risk_likelihood"
/>
<result
property=
"riskSeverity"
column=
"risk_severity"
/>
<result
property=
"presenceLocation"
column=
"presence_location"
/>
<result
property=
"pictureFileIds"
column=
"picture_file_ids"
/>
<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=
"selectRiskPlanExistingListVo"
>
select id, user_id, inherent_id, plan_id, room_id, code, name, type, describe, evaluation_model, evaluation_range, level,risk_likelihood,risk_severity, presence_location, picture_file_ids, 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_plan_existing_list
</sql>
<select
id=
"selectRiskPlanExistingListList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanExistingList"
resultMap=
"RiskPlanExistingListResult"
>
<include
refid=
"selectRiskPlanExistingListVo"
/>
<where>
<if
test=
"userId != null "
>
and user_id = #{userId}
</if>
<if
test=
"inherentId != null "
>
and inherent_id = #{inherentId}
</if>
<if
test=
"planId != null "
>
and plan_id = #{planId}
</if>
<if
test=
"roomId != null "
>
and room_id = #{roomId}
</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=
"presenceLocation != null and presenceLocation != ''"
>
and presence_location = #{presenceLocation}
</if>
<if
test=
"pictureFileIds != null and pictureFileIds != ''"
>
and picture_file_ids = #{pictureFileIds}
</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=
"selectRiskPlanExistingListById"
parameterType=
"Long"
resultMap=
"RiskPlanExistingListResult"
>
<include
refid=
"selectRiskPlanExistingListVo"
/>
where id = #{id}
</select>
<insert
id=
"insertRiskPlanExistingList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanExistingList"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into risk_plan_existing_list
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"inherentId != null"
>
inherent_id,
</if>
<if
test=
"planId != null"
>
plan_id,
</if>
<if
test=
"roomId != null"
>
room_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=
"riskLikelihood != null"
>
risk_likelihood,
</if>
<if
test=
"riskSeverity != null"
>
risk_severity,
</if>
<if
test=
"presenceLocation != null"
>
presence_location,
</if>
<if
test=
"pictureFileIds != null"
>
picture_file_ids,
</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=
"userId != null"
>
#{userId},
</if>
<if
test=
"inherentId != null"
>
#{inherentId},
</if>
<if
test=
"planId != null"
>
#{planId},
</if>
<if
test=
"roomId != null"
>
#{roomId},
</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=
"riskLikelihood != null"
>
#{riskLikelihood},
</if>
<if
test=
"riskSeverity != null"
>
#{riskSeverity},
</if>
<if
test=
"presenceLocation != null"
>
#{presenceLocation},
</if>
<if
test=
"pictureFileIds != null"
>
#{pictureFileIds},
</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=
"updateRiskPlanExistingList"
parameterType=
"com.censoft.censoftrongtong.domain.RiskPlanExistingList"
>
update risk_plan_existing_list
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
<if
test=
"inherentId != null"
>
inherent_id = #{inherentId},
</if>
<if
test=
"planId != null"
>
plan_id = #{planId},
</if>
<if
test=
"roomId != null"
>
room_id = #{roomId},
</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=
"riskLikelihood != null"
>
risk_likelihood = #{riskLikelihood},
</if>
<if
test=
"riskSeverity != null"
>
risk_severity = #{riskSeverity},
</if>
<if
test=
"presenceLocation != null"
>
presence_location = #{presenceLocation},
</if>
<if
test=
"pictureFileIds != null"
>
picture_file_ids = #{pictureFileIds},
</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=
"deleteRiskPlanExistingListById"
parameterType=
"Long"
>
delete from risk_plan_existing_list where id = #{id}
</delete>
<delete
id=
"deleteRiskPlanExistingListByIds"
parameterType=
"String"
>
delete from risk_plan_existing_list where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
</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