Commit fb30ad0d authored by 陈晓晋's avatar 陈晓晋

固有风险pc接口编写20230721

parent 934898ea
......@@ -48,6 +48,18 @@ public class LedgerRoomController extends BaseController
return success(list);
}
/**
* 查询基础数据-楼层列表
*/
@GetMapping("/listPc")
public TableDataInfo listPc(LedgerRoom ledgerRoom)
{
startPage();
ledgerRoom.setDelFlag("0");
List<LedgerRoom> list =ledgerRoomService.selectLedgerRoomList(ledgerRoom);
return getDataTable(list);
}
/**
* 导出基础数据-楼层列表
*/
......
......@@ -29,7 +29,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-06-26
*/
@RestController
@RequestMapping("/system/risk/inherent/list")
@RequestMapping("/system/risk/inherentDB")
public class RiskInherentListController extends BaseController
{
@Autowired
......
package com.censoft.censoftrongtong.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.censoft.censoftrongtong.domain.RiskPlanInherentList;
import com.censoft.censoftrongtong.service.IRiskPlanInherentListService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 固有风险信息Controller
*
* @author ruoyi
* @date 2023-07-20
*/
@RestController
@RequestMapping("/system/risk/inherent")
public class RiskPlanInherentListController extends BaseController
{
@Autowired
private IRiskPlanInherentListService riskPlanInherentListService;
/**
* 查询固有风险信息列表
*/
@PreAuthorize("@ss.hasPermi('system:inherent:list')")
@GetMapping("/list")
public TableDataInfo list(RiskPlanInherentList riskPlanInherentList)
{
startPage();
List<RiskPlanInherentList> list = riskPlanInherentListService.selectRiskPlanInherentListList(riskPlanInherentList);
return getDataTable(list);
}
/**
* 导出固有风险信息列表
*/
@PreAuthorize("@ss.hasPermi('system:inherent:export')")
@Log(title = "固有风险信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, RiskPlanInherentList riskPlanInherentList)
{
List<RiskPlanInherentList> list = riskPlanInherentListService.selectRiskPlanInherentListList(riskPlanInherentList);
ExcelUtil<RiskPlanInherentList> util = new ExcelUtil<RiskPlanInherentList>(RiskPlanInherentList.class);
util.exportExcel(response, list, "固有风险信息数据");
}
/**
* 获取固有风险信息详细信息
*/
@PreAuthorize("@ss.hasPermi('system:inherent:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(riskPlanInherentListService.selectRiskPlanInherentListById(id));
}
/**
* 新增固有风险信息
*/
@PreAuthorize("@ss.hasPermi('system:inherent:add')")
@Log(title = "固有风险信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody RiskPlanInherentList riskPlanInherentList)
{
return toAjax(riskPlanInherentListService.insertRiskPlanInherentList(riskPlanInherentList));
}
/**
* 修改固有风险信息
*/
@PreAuthorize("@ss.hasPermi('system:inherent:edit')")
@Log(title = "固有风险信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody RiskPlanInherentList riskPlanInherentList)
{
return toAjax(riskPlanInherentListService.updateRiskPlanInherentList(riskPlanInherentList));
}
/**
* 删除固有风险信息
*/
@PreAuthorize("@ss.hasPermi('system:inherent:remove')")
@Log(title = "固有风险信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(riskPlanInherentListService.deleteRiskPlanInherentListByIds(ids));
}
}
......@@ -191,4 +191,37 @@ public class RiskPlanInherentList extends BaseEntity {
*/
@TableField("del_flag")
private String delFlag;
/**
* 楼栋ID
*/
@TableField(exist = false)
private String buildingId;
/**
* 楼栋名称
*/
@TableField(exist = false)
private String buildingName;
/**
* 楼层ID
*/
@TableField(exist = false)
private String floorId;
/**
* 楼层名称
*/
@TableField(exist = false)
private String floorName;
/**
* 用户名
*/
@TableField(exist = false)
private String userName;
/**
* 房间名称
*/
@TableField(exist = false)
private String roomName;
}
......@@ -18,6 +18,56 @@ import java.util.List;
*/
public interface RiskPlanInherentListMapper extends BaseMapper<RiskPlanInherentList>
{
/**
* 查询固有风险清单库
*
* @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);
List<RiskPlanAppInherentListDto> getInherentListByPlanId(@Param("projectId") Long projectId, @Param("buildingId") Long buildingId, @Param("floorId") Long floorId, @Param("roomId") Long roomId);
RiskPlanAppInherentListDetailsDto getRiskPlanAppInherentListDetailsDtoByInherentId(@Param("inherentId") Long inherentId);
......
......@@ -15,6 +15,54 @@ import java.util.List;
public interface IRiskPlanInherentListService extends IService<RiskPlanInherentList>
{
/**
* 查询固有风险清单库
*
* @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);
List<RiskPlanAppInherentListDto> getInherentListByPlanId(Long projectId, Long buildingId, Long floorId, Long roomId);
Boolean saveRiskInherentListSaveDto(RiskInherentListSaveDto saveDto);
......
......@@ -227,4 +227,85 @@ public class RiskPlanInherentListServiceImpl
public RiskNotificationExportWordDto getRiskNotificationExportWordDto(Long inherentId) {
return riskPlanInherentListMapper.getRiskNotificationExportWordDto(inherentId);
}
/**
* 查询固有风险清单库
*
* @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);
}
}
......@@ -3,6 +3,263 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.censoft.censoftrongtong.mapper.RiskPlanInherentListMapper">
<resultMap type="com.censoft.censoftrongtong.domain.RiskPlanInherentList" id="RiskPlanInherentListResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="roomId" column="room_id" />
<result property="planId" column="plan_id" />
<result property="name" column="name" />
<result property="pointType" column="point_type" />
<result property="specialEquipment" column="special_equipment" />
<result property="safetyWarningSigns" column="safety_warning_signs" />
<result property="factor" column="factor" />
<result property="type" column="type" />
<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="measuresProject" column="measures_project" />
<result property="measuresProjectFileIds" column="measures_project_file_ids" />
<result property="measuresAdministration" column="measures_administration" />
<result property="measuresDeptName" column="measures_dept_name" />
<result property="measuresUserName" column="measures_user_name" />
<result property="measuresUserPhone" column="measures_user_phone" />
<result property="measuresAdministrationFileIds" column="measures_administration_file_ids" />
<result property="hazardSourceName" column="hazard_source_name" />
<result property="majorHazardSource" column="major_hazard_source" />
<result property="majorHazardSourceDescription" column="major_hazard_source_description" />
<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" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectRiskPlanInherentListVo">
select id, user_id, room_id, plan_id, name, point_type, special_equipment, safety_warning_signs, factor, type, level, risk_likelihood, risk_severity, presence_location, picture_file_ids, measures_project, measures_project_file_ids, measures_administration, measures_dept_name, measures_user_name, measures_user_phone, measures_administration_file_ids, hazard_source_name, major_hazard_source, major_hazard_source_description, measures_emergency, measures_emergency_file_ids, reference_basis, del_flag, create_by, create_time, update_by, update_time, remark from risk_plan_inherent_list
</sql>
<select id="selectRiskPlanInherentListList" parameterType="com.censoft.censoftrongtong.domain.RiskPlanInherentList" resultMap="RiskPlanInherentListResult">
SELECT
rpil.id,
lb.id AS buildingId,
lb.name AS buildingName,
lf.id AS floorId,
lf.name AS floorName,
rpil.user_id,
su.nick_name AS userName,
rpil.room_id,
lr.name AS roomName,
rpil.plan_id,
rpil.NAME,
rpil.point_type,
rpil.special_equipment,
rpil.safety_warning_signs,
rpil.factor,
rpil.type,
rpil.LEVEL,
rpil.risk_likelihood,
rpil.risk_severity,
rpil.presence_location,
rpil.picture_file_ids,
rpil.measures_project,
rpil.measures_project_file_ids,
rpil.measures_administration,
rpil.measures_dept_name,
rpil.measures_user_name,
rpil.measures_user_phone,
rpil.measures_administration_file_ids,
rpil.hazard_source_name,
rpil.major_hazard_source,
rpil.major_hazard_source_description,
rpil.measures_emergency,
rpil.measures_emergency_file_ids,
rpil.reference_basis,
rpil.del_flag,
rpil.create_by,
rpil.create_time,
rpil.update_by,
rpil.update_time,
rpil.remark
FROM
risk_plan_inherent_list rpil
LEFT JOIN ledger_room lr ON lr.id = rpil.room_id
LEFT JOIN ledger_floor lf ON lf.id = floor_id
LEFT JOIN sys_user su ON su.user_id = rpil.user_id
LEFT JOIN ledger_building lb ON lb.id = lf.building_id
LEFT JOIN sys_dict_data sdd ON sdd.dict_label = rpil.LEVEL
AND dict_type = 'risk_plan_level'
<where>
<if test="userId != null "> and rpil.user_id = #{userId}</if>
<if test="roomId != null "> and rpil.rpil.room_id = #{roomId}</if>
<if test="planId != null "> and rpil.rpil.plan_id = #{planId}</if>
<if test="name != null and name != ''"> and rpil.name like concat('%', #{name}, '%')</if>
<if test="pointType != null and pointType != ''"> and rpil.point_type = #{pointType}</if>
<if test="specialEquipment != null "> and rpil.special_equipment = #{specialEquipment}</if>
<if test="safetyWarningSigns != null and safetyWarningSigns != ''"> and rpil.safety_warning_signs = #{safetyWarningSigns}</if>
<if test="factor != null and factor != ''"> and rpil.factor = #{factor}</if>
<if test="type != null and type != ''"> and rpil.type = #{type}</if>
<if test="level != null and level != ''"> and rpil.level = #{level}</if>
<if test="riskLikelihood != null and riskLikelihood != ''"> and rpil.risk_likelihood = #{riskLikelihood}</if>
<if test="riskSeverity != null and riskSeverity != ''"> and rpil.risk_severity = #{riskSeverity}</if>
<if test="presenceLocation != null and presenceLocation != ''"> and rpil.presence_location = #{presenceLocation}</if>
<if test="pictureFileIds != null and pictureFileIds != ''"> and rpil.picture_file_ids = #{pictureFileIds}</if>
<if test="measuresProject != null and measuresProject != ''"> and rpil.measures_project = #{measuresProject}</if>
<if test="measuresProjectFileIds != null and measuresProjectFileIds != ''"> and rpil.measures_project_file_ids = #{measuresProjectFileIds}</if>
<if test="measuresAdministration != null and measuresAdministration != ''"> and rpil.measures_administration = #{measuresAdministration}</if>
<if test="measuresDeptName != null and measuresDeptName != ''"> and rpil.measures_dept_name like concat('%', #{measuresDeptName}, '%')</if>
<if test="measuresUserName != null and measuresUserName != ''"> and rpil.measures_user_name like concat('%', #{measuresUserName}, '%')</if>
<if test="measuresUserPhone != null and measuresUserPhone != ''"> and rpil.measures_user_phone = #{measuresUserPhone}</if>
<if test="measuresAdministrationFileIds != null and measuresAdministrationFileIds != ''"> and rpil.measures_administration_file_ids = #{measuresAdministrationFileIds}</if>
<if test="hazardSourceName != null and hazardSourceName != ''"> and rpil.hazard_source_name like concat('%', #{hazardSourceName}, '%')</if>
<if test="majorHazardSource != null "> and .major_hazard_source = #{majorHazardSource}</if>
<if test="majorHazardSourceDescription != null and majorHazardSourceDescription != ''"> and rpil.major_hazard_source_description = #{majorHazardSourceDescription}</if>
<if test="measuresEmergency != null and measuresEmergency != ''"> and rpil.measures_emergency = #{measuresEmergency}</if>
<if test="measuresEmergencyFileIds != null and measuresEmergencyFileIds != ''"> and rpil.measures_emergency_file_ids = #{measuresEmergencyFileIds}</if>
<if test="referenceBasis != null and referenceBasis != ''"> and rpil.reference_basis = #{referenceBasis}</if>
</where>
</select>
<select id="selectRiskPlanInherentListById" parameterType="Long" resultMap="RiskPlanInherentListResult">
<include refid="selectRiskPlanInherentListVo"/>
where id = #{id}
</select>
<insert id="insertRiskPlanInherentList" parameterType="com.censoft.censoftrongtong.domain.RiskPlanInherentList" useGeneratedKeys="true" keyProperty="id">
insert into risk_plan_inherent_list
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="roomId != null">room_id,</if>
<if test="planId != null">plan_id,</if>
<if test="name != null">name,</if>
<if test="pointType != null">point_type,</if>
<if test="specialEquipment != null">special_equipment,</if>
<if test="safetyWarningSigns != null">safety_warning_signs,</if>
<if test="factor != null">factor,</if>
<if test="type != null">type,</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="measuresProject != null">measures_project,</if>
<if test="measuresProjectFileIds != null">measures_project_file_ids,</if>
<if test="measuresAdministration != null">measures_administration,</if>
<if test="measuresDeptName != null">measures_dept_name,</if>
<if test="measuresUserName != null">measures_user_name,</if>
<if test="measuresUserPhone != null">measures_user_phone,</if>
<if test="measuresAdministrationFileIds != null">measures_administration_file_ids,</if>
<if test="hazardSourceName != null">hazard_source_name,</if>
<if test="majorHazardSource != null">major_hazard_source,</if>
<if test="majorHazardSourceDescription != null">major_hazard_source_description,</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>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="roomId != null">#{roomId},</if>
<if test="planId != null">#{planId},</if>
<if test="name != null">#{name},</if>
<if test="pointType != null">#{pointType},</if>
<if test="specialEquipment != null">#{specialEquipment},</if>
<if test="safetyWarningSigns != null">#{safetyWarningSigns},</if>
<if test="factor != null">#{factor},</if>
<if test="type != null">#{type},</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="measuresProject != null">#{measuresProject},</if>
<if test="measuresProjectFileIds != null">#{measuresProjectFileIds},</if>
<if test="measuresAdministration != null">#{measuresAdministration},</if>
<if test="measuresDeptName != null">#{measuresDeptName},</if>
<if test="measuresUserName != null">#{measuresUserName},</if>
<if test="measuresUserPhone != null">#{measuresUserPhone},</if>
<if test="measuresAdministrationFileIds != null">#{measuresAdministrationFileIds},</if>
<if test="hazardSourceName != null">#{hazardSourceName},</if>
<if test="majorHazardSource != null">#{majorHazardSource},</if>
<if test="majorHazardSourceDescription != null">#{majorHazardSourceDescription},</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>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateRiskPlanInherentList" parameterType="com.censoft.censoftrongtong.domain.RiskPlanInherentList">
update risk_plan_inherent_list
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="roomId != null">room_id = #{roomId},</if>
<if test="planId != null">plan_id = #{planId},</if>
<if test="name != null">name = #{name},</if>
<if test="pointType != null">point_type = #{pointType},</if>
<if test="specialEquipment != null">special_equipment = #{specialEquipment},</if>
<if test="safetyWarningSigns != null">safety_warning_signs = #{safetyWarningSigns},</if>
<if test="factor != null">factor = #{factor},</if>
<if test="type != null">type = #{type},</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="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="measuresDeptName != null">measures_dept_name = #{measuresDeptName},</if>
<if test="measuresUserName != null">measures_user_name = #{measuresUserName},</if>
<if test="measuresUserPhone != null">measures_user_phone = #{measuresUserPhone},</if>
<if test="measuresAdministrationFileIds != null">measures_administration_file_ids = #{measuresAdministrationFileIds},</if>
<if test="hazardSourceName != null">hazard_source_name = #{hazardSourceName},</if>
<if test="majorHazardSource != null">major_hazard_source = #{majorHazardSource},</if>
<if test="majorHazardSourceDescription != null">major_hazard_source_description = #{majorHazardSourceDescription},</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>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteRiskPlanInherentListById" parameterType="Long">
delete from risk_plan_inherent_list where id = #{id}
</delete>
<delete id="deleteRiskPlanInherentListByIds" parameterType="String">
delete from risk_plan_inherent_list where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="getInherentListByPlanId"
resultType="com.censoft.censoftrongtong.domain.dto.RiskPlanAppInherentListDto">
SELECT
......
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