|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
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.ruoyi.project.pssr.mapper.TPssrSafetyFlamearresterMapper">
|
|
<mapper namespace="com.ruoyi.project.pssr.mapper.TPssrSafetyFlamearresterMapper">
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<resultMap type="TPssrSafetyFlamearrester" id="TPssrSafetyFlamearresterResult">
|
|
<resultMap type="TPssrSafetyFlamearrester" id="TPssrSafetyFlamearresterResult">
|
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
<result property="subId" column="sub_id" />
|
|
<result property="subId" column="sub_id" />
|
|
@@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="selectTPssrSafetyFlamearresterList" parameterType="TPssrSafetyFlamearrester" resultMap="TPssrSafetyFlamearresterResult">
|
|
<select id="selectTPssrSafetyFlamearresterList" parameterType="TPssrSafetyFlamearrester" resultMap="TPssrSafetyFlamearresterResult">
|
|
|
<include refid="selectTPssrSafetyFlamearresterVo"/>
|
|
<include refid="selectTPssrSafetyFlamearresterVo"/>
|
|
|
- <where>
|
|
|
|
|
|
|
+ <where>
|
|
|
<if test="subId != null "> and sub_id = #{subId}</if>
|
|
<if test="subId != null "> and sub_id = #{subId}</if>
|
|
|
<if test="approveId != null "> and approve_id = #{approveId}</if>
|
|
<if test="approveId != null "> and approve_id = #{approveId}</if>
|
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<select id="selectTPssrSafetyFlamearresterById" parameterType="Long" resultMap="TPssrSafetyFlamearresterResult">
|
|
<select id="selectTPssrSafetyFlamearresterById" parameterType="Long" resultMap="TPssrSafetyFlamearresterResult">
|
|
|
<include refid="selectTPssrSafetyFlamearresterVo"/>
|
|
<include refid="selectTPssrSafetyFlamearresterVo"/>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -79,7 +79,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
</trim>
|
|
|
where sub_id= #{subId} and APPROVE_STATUS=0
|
|
where sub_id= #{subId} and APPROVE_STATUS=0
|
|
|
</update>
|
|
</update>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<insert id="insertTPssrSafetyFlamearrester" parameterType="TPssrSafetyFlamearrester">
|
|
<insert id="insertTPssrSafetyFlamearrester" parameterType="TPssrSafetyFlamearrester">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_pssr_safety_flame.NEXTVAL as id FROM DUAL
|
|
SELECT seq_t_pssr_safety_flame.NEXTVAL as id FROM DUAL
|
|
@@ -157,6 +159,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
+ <update id="updateTPssrSafetyFlamearresterByIds" parameterType="TPssrSafetyFlamearrester">
|
|
|
|
|
+ update t_pssr_safety_flamearrester
|
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
+ <if test="confirmer1 != null">confirmer1 = #{confirmer1},</if>
|
|
|
|
|
+ <if test="confirmer2 != null">confirmer2 = #{confirmer2},</if>
|
|
|
|
|
+ <if test="confirmationTime != null">confirmation_time = #{confirmationTime},</if>
|
|
|
|
|
+ <if test="createrCode != null">creater_code = #{createrCode},</if>
|
|
|
|
|
+ <if test="createdate != null">createdate = #{createdate},</if>
|
|
|
|
|
+ <if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
|
|
+ <if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ where id in
|
|
|
|
|
+ <foreach item="id" collection="ids" open="(" separator="," close=")">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
<update id="deleteTPssrSafetyFlamearresterById" parameterType="Long">
|
|
<update id="deleteTPssrSafetyFlamearresterById" parameterType="Long">
|
|
|
update t_pssr_safety_flamearrester set del_flag = 2 where id = #{id}
|
|
update t_pssr_safety_flamearrester set del_flag = 2 where id = #{id}
|
|
|
</update>
|
|
</update>
|
|
@@ -167,5 +187,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</update>
|
|
</update>
|
|
|
-
|
|
|
|
|
-</mapper>
|
|
|
|
|
|
|
+
|
|
|
|
|
+</mapper>
|