<?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.gkhy.safePlatform.doublePrevention.repository.PreventWorkAndMeasureRepository">
|
|
<resultMap id="BaseResultMap" type="com.gkhy.safePlatform.doublePrevention.entity.PreventWorkAndMeasure">
|
<id property="id" column="id"/>
|
<result property="measureUuid" column="measure_uuid"/>
|
<result property="workUuid" column="work_uuid"/>
|
</resultMap>
|
|
|
|
<delete id="updateWorkAndMeasure">
|
delete from prevent_work_and_measure
|
where work_uuid = #{workUuid}
|
</delete>
|
|
<!--PreventWorkAndMeasure getWorkAndMeasure(String workUuid, String measureUuid);-->
|
<select id="getWorkAndMeasure" resultType="com.gkhy.safePlatform.doublePrevention.entity.PreventWorkAndMeasure">
|
select * from prevent_work_and_measure
|
where work_uuid = #{workUuid} and measure_uuid = #{measureUuid}
|
</select>
|
|
<!-- PreventWorkAndMeasure getWorkAndMeasureByWorkUuid(String workUuid);-->
|
<select id="getWorkAndMeasureByWorkUuid" resultMap="BaseResultMap">
|
select * from prevent_work_and_measure
|
where work_uuid = #{workUuid}
|
</select>
|
|
</mapper>
|