|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.project.pssr.mapper.TPssrInstrumentTestMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TPssrInstrumentTest" id="TPssrInstrumentTestResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="subId" column="sub_id" />
|
|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTPssrInstrumentTestList" parameterType="TPssrInstrumentTest" resultMap="TPssrInstrumentTestResult">
|
|
|
<include refid="selectTPssrInstrumentTestVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="subId != null "> and sub_id = #{subId}</if>
|
|
|
<if test="approveId != null "> and approve_id = #{approveId}</if>
|
|
|
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
|
@@ -45,12 +45,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTPssrInstrumentTestById" parameterType="Long" resultMap="TPssrInstrumentTestResult">
|
|
|
<include refid="selectTPssrInstrumentTestVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTPssrInstrumentTest" parameterType="TPssrInstrumentTest">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_pssr_instrument_test.NEXTVAL as id FROM DUAL
|
|
@@ -107,6 +107,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateTPssrInstrumentTestByIds" parameterType="TPssrInstrumentTest">
|
|
|
+ update t_pssr_instrument_test
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+
|
|
|
+ <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="deleteTPssrInstrumentTestById" parameterType="Long">
|
|
|
update t_pssr_instrument_test set del_flag = 2 where id = #{id}
|
|
|
</update>
|
|
@@ -117,5 +133,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
-
|
|
|
-</mapper>
|
|
|
+
|
|
|
+</mapper>
|