| | |
| | | <?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.ruoyi.doublePrevention.repository.PreventRiskCheckUnitRepository" >
|
| | |
|
| | | <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.PreventRiskCheckUnit">
|
| | | <id column="id" property="id"/>
|
| | | <result column="uuid" property="uuid"/>
|
| | | <result column="base_check_point_id" property="baseCheckPointId" />
|
| | | <result column="control_measure_id" property="controlMeasureId" />
|
| | | <result column="risk_id" property="riskId" />
|
| | | </resultMap>
|
| | |
|
| | | <!-- int insertPointAndMeasure(PreventRiskCheckUnit checkUnit);-->
|
| | | <insert id="insertPointAndMeasure">
|
| | | insert into prevent_risk_check_unit values(null, #{uuid}, #{baseCheckPointId}, #{controlMeasureId}, #{riskId})
|
| | | </insert>
|
| | |
|
| | | <!-- List<PreventRiskCheckUnit> getUnitByRiskId(String riskId);-->
|
| | | <select id="getUnitByRiskId" resultMap="BaseResultMap">
|
| | | select * from prevent_risk_check_unit
|
| | | where risk_id = #{riskId}
|
| | | </select>
|
| | |
|
| | | <!-- PreventRiskCheckUnit getUnitByBaseCheckPointId(Long baseCheckPointId);-->
|
| | | <select id="getUnitByBaseCheckPointId" resultMap="BaseResultMap">
|
| | | select * from prevent_risk_check_unit
|
| | | where base_check_point_id = #{baseCheckPointId}
|
| | | </select>
|
| | |
|
| | |
|
| | | <!-- int deletePointAndMeasure(String id);-->
|
| | | <delete id="deletePointAndMeasure">
|
| | | delete from prevent_risk_check_unit
|
| | | where base_check_point_id = #{id}
|
| | | </delete>
|
| | |
|
| | |
|
| | | </mapper>
|
| | |
|
| | | <?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.ruoyi.doublePrevention.repository.PreventRiskCheckUnitRepository" > |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.PreventRiskCheckUnit"> |
| | | <id column="id" property="id"/> |
| | | <result column="uuid" property="uuid"/> |
| | | <result column="base_check_point_id" property="baseCheckPointId" /> |
| | | <result column="control_measure_id" property="controlMeasureId" /> |
| | | <result column="risk_id" property="riskId" /> |
| | | </resultMap> |
| | | |
| | | <!-- int insertPointAndMeasure(PreventRiskCheckUnit checkUnit);--> |
| | | <insert id="insertPointAndMeasure"> |
| | | insert into prevent_risk_check_unit values(null, #{uuid}, #{baseCheckPointId}, #{controlMeasureId}, #{riskId}) |
| | | </insert> |
| | | |
| | | <!-- List<PreventRiskCheckUnit> getUnitByRiskId(String riskId);--> |
| | | <select id="getUnitByRiskId" resultMap="BaseResultMap"> |
| | | select * from prevent_risk_check_unit |
| | | where risk_id = #{riskId} |
| | | </select> |
| | | |
| | | <!-- PreventRiskCheckUnit getUnitByBaseCheckPointId(Long baseCheckPointId);--> |
| | | <select id="getUnitByBaseCheckPointId" resultMap="BaseResultMap"> |
| | | select * from prevent_risk_check_unit |
| | | where base_check_point_id = #{baseCheckPointId} |
| | | </select> |
| | | |
| | | |
| | | <!-- int deletePointAndMeasure(String id);--> |
| | | <delete id="deletePointAndMeasure"> |
| | | delete from prevent_risk_check_unit |
| | | where base_check_point_id = #{id} |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |
| | | |