You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
6.1 KiB
116 lines
6.1 KiB
3 years ago
|
<?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.ruoyi.archives.mapper.BatchBindInfoMapper">
|
||
|
|
||
|
<resultMap type="BatchBindInfo" id="BatchBindInfoResult">
|
||
|
<result property="id" column="id" />
|
||
|
<result property="serialNumber" column="serial_number" />
|
||
|
<result property="bindType" column="bind_type" />
|
||
|
<result property="recordNum" column="record_num" />
|
||
|
<result property="fileNum" column="file_num" />
|
||
|
<result property="transferorId" column="transferor_id" />
|
||
|
<result property="turnoverTime" column="turnover_time" />
|
||
|
<result property="deptId" column="dept_id" />
|
||
|
<result property="remarks" column="remarks" />
|
||
|
<result property="delFlag" column="del_flag" />
|
||
|
<result property="createTime" column="create_time" />
|
||
|
<result property="createId" column="create_id" />
|
||
|
<result property="updateTime" column="update_time" />
|
||
|
<result property="updateId" column="update_id" />
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectBatchBindInfoVo">
|
||
|
select id, serial_number, bind_type, record_num, file_num, transferor_id, turnover_time, dept_id, remarks, del_flag, create_time, create_id, update_time, update_id from "PUBLIC"."batch_bind_info"
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectBatchBindInfoList" parameterType="BatchBindInfo" resultMap="BatchBindInfoResult">
|
||
|
<include refid="selectBatchBindInfoVo"/>
|
||
|
<where>
|
||
|
<if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
||
|
<if test="bindType != null "> and bind_type = #{bindType}</if>
|
||
|
<if test="recordNum != null "> and record_num = #{recordNum}</if>
|
||
|
<if test="fileNum != null "> and file_num = #{fileNum}</if>
|
||
|
<if test="transferorId != null and transferorId != ''"> and transferor_id = #{transferorId}</if>
|
||
|
<if test="turnoverTime != null "> and turnover_time = #{turnoverTime}</if>
|
||
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
|
||
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
||
|
<if test="createId != null and createId != ''"> and create_id = #{createId}</if>
|
||
|
<if test="updateId != null and updateId != ''"> and update_id = #{updateId}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectBatchBindInfoById" parameterType="String" resultMap="BatchBindInfoResult">
|
||
|
<include refid="selectBatchBindInfoVo"/>
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
<insert id="insertBatchBindInfo" parameterType="BatchBindInfo">
|
||
|
insert into "PUBLIC"."batch_bind_info"
|
||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">id,</if>
|
||
|
<if test="serialNumber != null">serial_number,</if>
|
||
|
<if test="bindType != null">bind_type,</if>
|
||
|
<if test="recordNum != null">record_num,</if>
|
||
|
<if test="fileNum != null">file_num,</if>
|
||
|
<if test="transferorId != null">transferor_id,</if>
|
||
|
<if test="turnoverTime != null">turnover_time,</if>
|
||
|
<if test="deptId != null">dept_id,</if>
|
||
|
<if test="remarks != null">remarks,</if>
|
||
|
<if test="delFlag != null">del_flag,</if>
|
||
|
<if test="createTime != null">create_time,</if>
|
||
|
<if test="createId != null">create_id,</if>
|
||
|
<if test="updateTime != null">update_time,</if>
|
||
|
<if test="updateId != null">update_id,</if>
|
||
|
</trim>
|
||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
<if test="id != null">#{id},</if>
|
||
|
<if test="serialNumber != null">#{serialNumber},</if>
|
||
|
<if test="bindType != null">#{bindType},</if>
|
||
|
<if test="recordNum != null">#{recordNum},</if>
|
||
|
<if test="fileNum != null">#{fileNum},</if>
|
||
|
<if test="transferorId != null">#{transferorId},</if>
|
||
|
<if test="turnoverTime != null">#{turnoverTime},</if>
|
||
|
<if test="deptId != null">#{deptId},</if>
|
||
|
<if test="remarks != null">#{remarks},</if>
|
||
|
<if test="delFlag != null">#{delFlag},</if>
|
||
|
<if test="createTime != null">#{createTime},</if>
|
||
|
<if test="createId != null">#{createId},</if>
|
||
|
<if test="updateTime != null">#{updateTime},</if>
|
||
|
<if test="updateId != null">#{updateId},</if>
|
||
|
</trim>
|
||
|
</insert>
|
||
|
|
||
|
<update id="updateBatchBindInfo" parameterType="BatchBindInfo">
|
||
|
update "PUBLIC"."batch_bind_info"
|
||
|
<trim prefix="SET" suffixOverrides=",">
|
||
|
<if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
||
|
<if test="bindType != null">bind_type = #{bindType},</if>
|
||
|
<if test="recordNum != null">record_num = #{recordNum},</if>
|
||
|
<if test="fileNum != null">file_num = #{fileNum},</if>
|
||
|
<if test="transferorId != null">transferor_id = #{transferorId},</if>
|
||
|
<if test="turnoverTime != null">turnover_time = #{turnoverTime},</if>
|
||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||
|
<if test="remarks != null">remarks = #{remarks},</if>
|
||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||
|
<if test="createId != null">create_id = #{createId},</if>
|
||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||
|
<if test="updateId != null">update_id = #{updateId},</if>
|
||
|
</trim>
|
||
|
where id = #{id}
|
||
|
</update>
|
||
|
|
||
|
<delete id="deleteBatchBindInfoById" parameterType="String">
|
||
|
delete from "PUBLIC"."batch_bind_info" where id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteBatchBindInfoByIds" parameterType="String">
|
||
|
delete from "PUBLIC"."batch_bind_info" where id in
|
||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||
|
#{id}
|
||
|
</foreach>
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|