|
@@ -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.TPssrMaterialRawMapper">
|
|
<mapper namespace="com.ruoyi.project.pssr.mapper.TPssrMaterialRawMapper">
|
|
-
|
|
|
|
|
|
+
|
|
<resultMap type="TPssrMaterialRaw" id="TPssrMaterialRawResult">
|
|
<resultMap type="TPssrMaterialRaw" id="TPssrMaterialRawResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="subId" column="sub_id" />
|
|
<result property="subId" column="sub_id" />
|
|
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTPssrMaterialRawList" parameterType="TPssrMaterialRaw" resultMap="TPssrMaterialRawResult">
|
|
<select id="selectTPssrMaterialRawList" parameterType="TPssrMaterialRaw" resultMap="TPssrMaterialRawResult">
|
|
<include refid="selectTPssrMaterialRawVo"/>
|
|
<include refid="selectTPssrMaterialRawVo"/>
|
|
- <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="rawMaterial != null and rawMaterial != ''"> and raw_material = #{rawMaterial}</if>
|
|
<if test="rawMaterial != null and rawMaterial != ''"> and raw_material = #{rawMaterial}</if>
|
|
@@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectTPssrMaterialRawById" parameterType="Long" resultMap="TPssrMaterialRawResult">
|
|
<select id="selectTPssrMaterialRawById" parameterType="Long" resultMap="TPssrMaterialRawResult">
|
|
<include refid="selectTPssrMaterialRawVo"/>
|
|
<include refid="selectTPssrMaterialRawVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="approveStatus != null "> AND approve_status = #{approveStatus}</if>
|
|
<if test="approveStatus != null "> AND approve_status = #{approveStatus}</if>
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insertTPssrMaterialRaw" parameterType="TPssrMaterialRaw">
|
|
<insert id="insertTPssrMaterialRaw" parameterType="TPssrMaterialRaw">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
SELECT seq_t_pssr_material_raw.NEXTVAL as id FROM DUAL
|
|
SELECT seq_t_pssr_material_raw.NEXTVAL as id FROM DUAL
|
|
@@ -146,6 +146,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <update id="updateTPssrMaterialRawByIds" parameterType="TPssrMaterialRaw">
|
|
|
|
+ update t_pssr_material_raw
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="confirm1 != null">confirm1 = #{confirm1},</if>
|
|
|
|
+ <if test="confirm2 != null">confirm2 = #{confirm2},</if>
|
|
|
|
+ <if test="confirmationDate != null">confirmation_date = #{confirmationDate},</if>
|
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</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="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
|
+ <if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where id in
|
|
|
|
+ <foreach item="id" collection="ids" open="(" separator="," close=")">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<update id="deleteTPssrMaterialRawById" parameterType="Long">
|
|
<update id="deleteTPssrMaterialRawById" parameterType="Long">
|
|
update t_pssr_material_raw set del_flag = 2 where id = #{id}
|
|
update t_pssr_material_raw set del_flag = 2 where id = #{id}
|
|
</update>
|
|
</update>
|
|
@@ -156,5 +178,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-</mapper>
|
|
|
|
|
|
+
|
|
|
|
+</mapper>
|