|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectTdFileReceiveVo">
|
|
|
|
<sql id="selectTdFileReceiveVo">
|
|
|
|
select receive_id, file_id, file_name, provide_depart, provide_date, receive_departid, receive_state, receive_userid, receive_date, extract_state, extract_departid, extract_userid, extract_date, destory_state,destory_address, destory_depart, destory_username, destory_style, destory_count, destory_date, remark from td_file_receive
|
|
|
|
select receive_id, file_id, file_name, provide_depart, provide_date, receive_departid, receive_state, receive_userid, receive_date, extract_state, extract_departid, extract_userid, extract_date, destory_state,destory_address, destory_depart, destory_username, destory_style, destory_count, destory_date, remark from zhky."public".td_file_receive
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTdFileReceiveList" parameterType="TdFileReceive" resultMap="TdFileReceiveResult">
|
|
|
|
<select id="selectTdFileReceiveList" parameterType="TdFileReceive" resultMap="TdFileReceiveResult">
|
|
|
@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertTdFileReceive" parameterType="TdFileReceive" useGeneratedKeys="true" keyProperty="receiveId">
|
|
|
|
<insert id="insertTdFileReceive" parameterType="TdFileReceive" useGeneratedKeys="true" keyProperty="receiveId">
|
|
|
|
insert into td_file_receive
|
|
|
|
insert into zhky."public".td_file_receive
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="fileId != null">file_id,</if>
|
|
|
|
<if test="fileId != null">file_id,</if>
|
|
|
|
<if test="fileName != null">file_name,</if>
|
|
|
|
<if test="fileName != null">file_name,</if>
|
|
|
@ -123,7 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateTdFileReceive" parameterType="TdFileReceive">
|
|
|
|
<update id="updateTdFileReceive" parameterType="TdFileReceive">
|
|
|
|
update td_file_receive
|
|
|
|
update zhky."public".td_file_receive
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
<if test="fileId != null">file_id = #{fileId},</if>
|
|
|
|
<if test="fileId != null">file_id = #{fileId},</if>
|
|
|
|
<if test="fileName != null">file_name = #{fileName},</if>
|
|
|
|
<if test="fileName != null">file_name = #{fileName},</if>
|
|
|
@ -150,11 +150,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteTdFileReceiveByReceiveId" parameterType="Long">
|
|
|
|
<delete id="deleteTdFileReceiveByReceiveId" parameterType="Long">
|
|
|
|
delete from td_file_receive where receive_id = #{receiveId}
|
|
|
|
delete from zhky."public".td_file_receive where receive_id = #{receiveId}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteTdFileReceiveByReceiveIds" parameterType="String">
|
|
|
|
<delete id="deleteTdFileReceiveByReceiveIds" parameterType="String">
|
|
|
|
delete from td_file_receive where receive_id in
|
|
|
|
delete from zhky."public".td_file_receive where receive_id in
|
|
|
|
<foreach item="receiveId" collection="array" open="(" separator="," close=")">
|
|
|
|
<foreach item="receiveId" collection="array" open="(" separator="," close=")">
|
|
|
|
#{receiveId}
|
|
|
|
#{receiveId}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|