Commit 2549d8c7 authored by 周昊's avatar 周昊

1、修改现有风险字段

parent 97979645
......@@ -405,10 +405,10 @@ public class RiskPlanAppController extends BaseController {
* 添加现有风险
*
* @param saveDto 现有风险表单
* @real_return {@link R<Integer>}
* @real_return {@link R<Boolean>}
*/
@PostMapping("/existing")
public R<Integer> saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto
public R<Boolean> saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto
, @RequestParam(value = "pictureFile[]", required = false) MultipartFile[] pictureFile
, @RequestParam(value = "measuresProjectFile[]", required = false) MultipartFile[] measuresProjectFile
, @RequestParam(value = "measuresAdministrationFile[]", required = false) MultipartFile[] measuresAdministrationFile
......
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.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
......@@ -11,390 +16,137 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @date 2023-06-26
*/
@Data
@TableName("risk_plan_existing_list")
public class RiskPlanExistingList extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 评估人id
*/
@Excel(name = "评估人id")
@TableField("user_id")
private Long userId;
/**
* 固有风险id
*/
@Excel(name = "固有风险id")
@TableField("inherent_id")
private Long inherentId;
/**
* 计划id
*/
@Excel(name = "计划id")
@TableField("plan_id")
private Long planId;
/**
* 房间id
*/
@Excel(name = "房间id")
@TableField("room_id")
private Long roomId;
/**
* 风险code
*/
@Excel(name = "风险code")
private String code;
/**
* 风险源名称
*/
@Excel(name = "风险源名称")
@TableField("name")
private String name;
/**
* 风险类型
*/
@Excel(name = "风险类型")
private String type;
/**
* 风险描述
*/
@Excel(name = "风险描述")
private String describe;
/**
* 评估模型
* 风险因素
*/
@Excel(name = "评估模型")
private String evaluationModel;
@TableField("factor")
private String factor;
/**
* 评估范围
* 准事故类型
*/
@Excel(name = "评估范围")
private String evaluationRange;
@TableField("type")
private String type;
/**
* 风险等级
*/
@Excel(name = "风险等级")
@TableField("level")
private String level;
/**
* 存在部位
*/
@Excel(name = "存在部位")
@TableField("presence_location")
private String presenceLocation;
/**
* 风险源照片id
*/
@Excel(name = "风险源照片id")
@TableField("picture_file_ids")
private String pictureFileIds;
/**
* 风险因素
*/
@Excel(name = "风险因素")
private String factor;
/**
* 发生可能性
* 技术措施
*/
@Excel(name = "发生可能性")
private String riskLikelihood;
@TableField("measures_project")
private String measuresProject;
/**
* 后果严重程度
* 技术措施附件
*/
@Excel(name = "后果严重程度")
private String riskSeverity;
@TableField("measures_project_file_ids")
private String measuresProjectFileIds;
/**
* 工程技术措施
* 已采取的管控措施
*/
@Excel(name = "工程技术措施")
private String measuresProject;
@TableField("measures_administration")
private String measuresAdministration;
/**
* 工程技术措施附件
* 管控责任单位id
*/
@Excel(name = "工程技术措施附件")
private String measuresProjectFileIds;
@TableField("measures_dept_id")
private Long measuresDeptId;
/**
* 管理措施
* 管控责任人id
*/
@Excel(name = "管理措施")
private String measuresAdministration;
@TableField("measures_user_id")
private Long measuresUserId;
/**
* 管理措施附件
*/
@Excel(name = "管理措施附件")
@TableField("measures_administration_file_ids")
private String measuresAdministrationFileIds;
/**
* 应急处置措施
*/
@Excel(name = "应急处置措施")
@TableField("measures_emergency")
private String measuresEmergency;
/**
* 应急处置措施附件
*/
@Excel(name = "应急处置措施附件")
@TableField("measures_emergency_file_ids")
private String measuresEmergencyFileIds;
/**
* 参考依据
*/
@Excel(name = "参考依据")
@TableField("reference_basis")
private String referenceBasis;
/**
* 删除标志(0代表存在 1代表删除)
*/
@TableField("del_flag")
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();
}
}
......@@ -11,57 +11,104 @@ import lombok.Data;
@Data
public class RiskExistingListSaveDto {
/** id */
/**
* id
*/
private Long id;
/** 评估人id */
/**
* 评估人id
*/
private Long userId;
/** 固有风险 */
/**
* 固有风险id
*/
private Long inherentId;
/** 房间id */
private Long roomId;
/** 计划id */
/**
* 计划id
*/
private Long planId;
/** 风险源名称 */
/**
* 房间id
*/
private Long roomId;
/**
* 风险源名称
*/
private String name;
/** 风险因素 */
/**
* 风险因素
*/
private String factor;
/** 事故类型 */
/**
* 准事故类型
*/
private String type;
/** 风险等级 */
/**
* 风险等级
*/
private String level;
/** 风险描述 */
private String describe;
/**
* 存在部位
*/
private String presenceLocation;
/** 风险源照片id */
/**
* 风险源照片id
*/
private String pictureFileIds;
/** 工程技术措施 */
/**
* 技术措施
*/
private String measuresProject;
/** 工程技术措施附件 */
/**
* 技术措施附件
*/
private String measuresProjectFileIds;
/** 管理措施 */
/**
* 已采取的管控措施
*/
private String measuresAdministration;
/** 管理措施附件 */
/**
* 管控责任单位id
*/
private Long measuresDeptId;
/**
* 管控责任人id
*/
private Long measuresUserId;
/**
* 管理措施附件
*/
private String measuresAdministrationFileIds;
/** 应急处置措施 */
/**
* 应急处置措施
*/
private String measuresEmergency;
/** 应急处置措施附件 */
/**
* 应急处置措施附件
*/
private String measuresEmergencyFileIds;
/** 参考依据 */
/**
* 参考依据
*/
private String referenceBasis;
}
package com.censoft.censoftrongtong.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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);
public interface RiskPlanExistingListMapper extends BaseMapper<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);
}
package com.censoft.censoftrongtong.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.censoft.censoftrongtong.domain.RiskPlanExistingList;
import com.censoft.censoftrongtong.domain.RiskPlanInherentList;
import com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto;
import java.util.List;
......@@ -11,55 +13,7 @@ import java.util.List;
* @author ruoyi
* @date 2023-06-26
*/
public interface IRiskPlanExistingListService
public interface IRiskPlanExistingListService extends IService<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 ids 需要删除的现有风险清单库主键集合
* @return 结果
*/
public int deleteRiskPlanExistingListByIds(Long[] ids);
/**
* 删除现有风险清单库信息
*
* @param id 现有风险清单库主键
* @return 结果
*/
public int deleteRiskPlanExistingListById(Long id);
int saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto);
Boolean saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto);
}
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.RiskPlanInherentList;
import com.censoft.censoftrongtong.domain.dto.RiskExistingListSaveDto;
import com.censoft.censoftrongtong.mapper.RiskPlanExistingListMapper;
import com.censoft.censoftrongtong.service.IRiskPlanExistingListService;
......@@ -12,6 +10,8 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 现有风险清单库Service业务层处理
*
......@@ -19,89 +19,16 @@ import org.springframework.stereotype.Service;
* @date 2023-06-26
*/
@Service
public class RiskPlanExistingListServiceImpl implements IRiskPlanExistingListService
{
public class RiskPlanExistingListServiceImpl
extends ServiceImpl<RiskPlanExistingListMapper, RiskPlanExistingList>
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);
}
@Override
public int saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto) {
public Boolean saveRiskExistingListSaveDto(RiskExistingListSaveDto saveDto) {
RiskPlanExistingList existingList = new RiskPlanExistingList();
BeanUtils.copyProperties(saveDto, existingList);
return insertRiskPlanExistingList(existingList);
return save(existingList);
}
}
......@@ -4,181 +4,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<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>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment