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.
526 lines
28 KiB
526 lines
28 KiB
<?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.ArchiveRecordInfoMapper"> |
|
|
|
<resultMap type="ArchiveRecordInfo" id="ArchiveRecordInfoResult"> |
|
<result property="id" column="id" /> |
|
<result property="fileNum" column="file_num" /> |
|
<result property="totalNum" column="total_num" /> |
|
<result property="boxNum" column="box_num" /> |
|
<result property="caseNum" column="case_num" /> |
|
<result property="year" column="year" /> |
|
<result property="archiveCategory" column="archive_category" /> |
|
<result property="archiveScope" column="archive_scope" /> |
|
<result property="boxName" column="box_name" /> |
|
<result property="department" column="department" /> |
|
<result property="storageTime" column="storage_time" /> |
|
<result property="searchType" column="search_type" /> |
|
<result property="secretLevel" column="secret_level" /> |
|
<result property="address" column="address" /> |
|
<result property="major" column="major" /> |
|
<result property="number" column="number" /> |
|
<result property="pages" column="pages" /> |
|
<result property="ownerName" column="owner_name" /> |
|
<result property="startDate" column="start_date" /> |
|
<result property="endDate" column="end_date" /> |
|
<result property="descriptionTime" column="description_time" /> |
|
<result property="categoryCode" column="category_code" /> |
|
<result property="cabinetNumber" column="cabinet_number" /> |
|
<result property="url" column="url" /> |
|
<result property="status" column="status" /> |
|
<result property="source" column="source" /> |
|
<result property="delFlag" column="del_flag" /> |
|
<result property="placeDept" column="place_dept" /> |
|
<result property="type" column="type" /> |
|
<result property="pageNumber" column="page_number" /> |
|
<result property="buildingNumber" column="building_number" /> |
|
<result property="winnersUnit" column="winners_unit" /> |
|
<result property="issuingUnit" column="issuing_unit" /> |
|
<result property="sizeDes" column="size_des" /> |
|
<result property="createTime" column="create_time" /> |
|
<result property="updateTime" column="update_time" /> |
|
<result property="remark" column="remark" /> |
|
<result property="createId" column="create_id" /> |
|
<result property="suffixType" column="suffix_type"/> |
|
<result property="rejectReason" column="reject_reason"/> |
|
<result property="recordType" column="record_type"/> |
|
<result property="projectNumber" column="project_number"/> |
|
<result property="certificateNo" column="certificate_no"/> |
|
<result property="keyWords" column="key_words"/> |
|
<result property="received_number" column="received_number"/> |
|
<result property="archive_date" column="archive_date"/> |
|
<result property="interior_number" column="interior_number"/> |
|
<result property="journal_name" column="journal_name"/> |
|
<result property="country" column="country"/> |
|
<result property="partner" column="partner"/> |
|
<result property="catalog_number" column="catalog_number"/> |
|
<result property="copies" column="copies"/> |
|
<result property="location_num" column="location_num"/> |
|
<result property="explain_des" column="explain_des"/> |
|
<result property="project_name" column="project_name"/> |
|
<result property="micro_no" column="micro_no"/> |
|
<result property="piece_nums" column="piece_nums"/> |
|
<result property="drawing_nums" column="drawing_nums"/> |
|
<result property="photo_nums" column="photo_nums"/> |
|
<result property="disc_number" column="disc_number"/> |
|
<result property="provide_date" column="provide_date"/> |
|
<result property="provide_user" column="provide_user"/> |
|
<result property="original_path" column="original_path"/> |
|
<result property="photo_no" column="photo_no"/> |
|
<result property="negative_no" column="negative_no"/> |
|
<result property="see_no" column="see_no"/> |
|
<result property="appendixAddress" column="appendix_address"/> |
|
</resultMap> |
|
|
|
<sql id="selectArchiveRecordInfoVo"> |
|
select id, file_num, total_num, box_num, case_num, year, archive_category, archive_scope, box_name, department, storage_time, search_type, secret_level, address, major, number, pages, owner_name, start_date, end_date, description_time, category_code, cabinet_number, url, status, source, del_flag, place_dept, type, page_number, building_number, winners_unit, issuing_unit, size_des, create_time, update_time,suffix_type, remark, create_id,reject_reason, |
|
record_type,project_number,certificate_no,key_words |
|
,received_number,archive_date,interior_number,journal_name,partner,country,catalog_number,copies,location_num,explain_des,project_name,micro_no, |
|
piece_nums,drawing_nums,photo_nums,disc_number,provide_date,provide_user,original_path,photo_no,negative_no,see_no,appendix_address |
|
from "PUBLIC"."archive_record_info" |
|
</sql> |
|
|
|
<select id="selectArchiveRecordInfoList" parameterType="ArchiveRecordInfo" resultMap="ArchiveRecordInfoResult"> |
|
<include refid="selectArchiveRecordInfoVo"/> |
|
<where> |
|
<if test="fileNum != null and fileNum != ''"> and file_num like concat('%',#{fileNum}, '%')</if> |
|
<if test="totalNum != null and totalNum != ''"> and total_num = #{totalNum}</if> |
|
<if test="boxNum != null and boxNum != ''"> and box_num = #{boxNum}</if> |
|
<if test="caseNum != null and caseNum != ''"> and case_num = #{caseNum}</if> |
|
<if test="year != null and year != ''"> and year = #{year}</if> |
|
<if test="archiveCategory != null and archiveCategory != ''"> and archive_category = #{archiveCategory}</if> |
|
<if test="archiveScope != null and archiveScope != ''"> and archive_scope = #{archiveScope}</if> |
|
<if test="boxName != null and boxName != ''"> and box_name like concat('%', #{boxName}, '%')</if> |
|
<if test="department != null and department != ''"> and department = #{department}</if> |
|
<if test="storageTime != null and storageTime != ''"> and storage_time = #{storageTime}</if> |
|
<if test="searchType != null and searchType != ''"> and search_type = #{searchType}</if> |
|
<if test="secretLevel != null and secretLevel != ''"> and secret_level = #{secretLevel}</if> |
|
<if test="address != null and address != ''"> and address = #{address}</if> |
|
<if test="major != null and major != ''"> and major = #{major}</if> |
|
<if test="number != null and number != ''"> and number = #{number}</if> |
|
<if test="pages != null and pages != ''"> and pages = #{pages}</if> |
|
<if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if> |
|
<if test="startDate != null "> and start_date = #{startDate}</if> |
|
<if test="endDate != null "> and end_date = #{endDate}</if> |
|
<if test="searchBeginDate!=null and searchEndDate !=null"> and description_time between #{searchBeginDate} and #{searchEndDate}</if> |
|
<if test="categoryCode != null and categoryCode != ''"> and category_code = #{categoryCode}</if> |
|
<if test="cabinetNumber != null and cabinetNumber != ''"> and cabinet_number = #{cabinetNumber}</if> |
|
<if test="url != null and url != ''"> and url = #{url}</if> |
|
<if test="status != null and status != ''"> and status = #{status}</if> |
|
<if test="source != null and source != ''"> and source = #{source}</if> |
|
<if test="placeDept != null and placeDept != ''"> and place_dept = #{placeDept}</if> |
|
<if test="type != null and type != ''"> and type = #{type}</if> |
|
<if test="pageNumber != null and pageNumber != ''"> and page_number = #{pageNumber}</if> |
|
<if test="buildingNumber != null and buildingNumber != ''"> and building_number = #{buildingNumber}</if> |
|
<if test="winnersUnit != null and winnersUnit != ''"> and winners_unit = #{winnersUnit}</if> |
|
<if test="issuingUnit != null and issuingUnit != ''"> and issuing_unit = #{issuingUnit}</if> |
|
<if test="sizeDes != null and sizeDes != ''"> and size_des = #{sizeDes}</if> |
|
<if test="createId != null and createId != ''"> and create_id = #{createId}</if> |
|
<if test="recordType != null and recordType != ''"> and record_type like concat('%', #{recordType}, '%')</if> |
|
<!--<if test="projectNumber !=null and projectNumber !=''">and project_number =#{projectNumber}</if>--> |
|
<if test="projectNumber !=null and projectNumber !=''">and project_number like concat('%', #{projectNumber})</if> |
|
<if test="certificateNo!=null and certificateNo!=''">and certificate_no=#{certificateNo}</if> |
|
<if test="keyWords!=null and keyWords!=''">and key_words like concat('%', #{keyWords}, '%')</if> |
|
<if test="received_number!=null and received_number!=''">and received_number=#{received_number}</if> |
|
<if test="archive_date!=null and archive_date!=''">and archive_date=#{archive_date}</if> |
|
<if test="interior_number!=null and interior_number!=''">and interior_number=#{interior_number}</if> |
|
<if test="journal_name!=null and journal_name!=''">and journal_name=#{journal_name}</if> |
|
<if test="appendixAddress !=null and appendixAddress !=''">and appendix_address=#{appendixAddress}</if> |
|
</where> |
|
order by update_time desc |
|
</select> |
|
|
|
<select id="selectArchiveRecordInfoById" parameterType="String" resultMap="ArchiveRecordInfoResult"> |
|
<include refid="selectArchiveRecordInfoVo"/> |
|
where id = #{id} |
|
</select> |
|
|
|
<!-- <insert id="insertArchiveRecordInfo" parameterType="ArchiveRecordInfo">--> |
|
<!-- insert into archive_record_info--> |
|
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">--> |
|
<!-- <if test="fileNum != null">file_num,</if>--> |
|
<!-- <if test="totalNum != null">total_num,</if>--> |
|
<!-- <if test="boxNum != null">box_num,</if>--> |
|
<!-- <if test="caseNum != null">case_num,</if>--> |
|
<!-- <if test="year != null">year,</if>--> |
|
<!-- <if test="archiveCategory != null">archive_category,</if>--> |
|
<!-- <if test="archiveScope != null">archive_scope,</if>--> |
|
<!-- <if test="boxName != null">box_name,</if>--> |
|
<!-- <if test="department != null">department,</if>--> |
|
<!-- <if test="storageTime != null">storage_time,</if>--> |
|
<!-- <if test="searchType != null">search_type,</if>--> |
|
<!-- <if test="secretLevel != null">secret_level,</if>--> |
|
<!-- <if test="address != null">address,</if>--> |
|
<!-- <if test="major != null">major,</if>--> |
|
<!-- <if test="number != null">number,</if>--> |
|
<!-- <if test="pages != null">pages,</if>--> |
|
<!-- <if test="ownerName != null">owner_name,</if>--> |
|
<!-- <if test="startDate != null">start_date,</if>--> |
|
<!-- <if test="endDate != null">end_date,</if>--> |
|
<!-- <if test="descriptionTime != null">description_time,</if>--> |
|
<!-- <if test="categoryCode != null">category_code,</if>--> |
|
<!-- <if test="cabinetNumber != null">cabinet_number,</if>--> |
|
<!-- <if test="url != null">url,</if>--> |
|
<!-- <if test="status != null">status,</if>--> |
|
<!-- <if test="source != null">source,</if>--> |
|
<!-- <if test="delFlag != null">del_flag,</if>--> |
|
<!-- <if test="placeDept != null">place_dept,</if>--> |
|
<!-- <if test="type != null">type,</if>--> |
|
<!-- <if test="pageNumber != null">page_number,</if>--> |
|
<!-- <if test="buildingNumber != null">building_number,</if>--> |
|
<!-- <if test="winnersUnit != null">winners_unit,</if>--> |
|
<!-- <if test="issuing unit != null">issuing unit,</if>--> |
|
<!-- <if test="size != null">size,</if>--> |
|
<!-- <if test="createTime != null">create_time,</if>--> |
|
<!-- <if test="updateTime != null">update_time,</if>--> |
|
<!-- <if test="remark != null">remark,</if>--> |
|
<!-- <if test="createId != null">create_id,</if>--> |
|
<!-- </trim>--> |
|
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">--> |
|
|
|
<!-- <if test="fileNum != null">#{fileNum},</if>--> |
|
<!-- <if test="totalNum != null">#{totalNum},</if>--> |
|
<!-- <if test="boxNum != null">#{boxNum},</if>--> |
|
<!-- <if test="caseNum != null">#{caseNum},</if>--> |
|
<!-- <if test="year != null">#{year},</if>--> |
|
<!-- <if test="archiveCategory != null">#{archiveCategory},</if>--> |
|
<!-- <if test="archiveScope != null">#{archiveScope},</if>--> |
|
<!-- <if test="boxName != null">#{boxName},</if>--> |
|
<!-- <if test="department != null">#{department},</if>--> |
|
<!-- <if test="storageTime != null">#{storageTime},</if>--> |
|
<!-- <if test="searchType != null">#{searchType},</if>--> |
|
<!-- <if test="secretLevel != null">#{secretLevel},</if>--> |
|
<!-- <if test="address != null">#{address},</if>--> |
|
<!-- <if test="major != null">#{major},</if>--> |
|
<!-- <if test="number != null">#{number},</if>--> |
|
<!-- <if test="pages != null">#{pages},</if>--> |
|
<!-- <if test="ownerName != null">#{ownerName},</if>--> |
|
<!-- <if test="startDate != null">#{startDate},</if>--> |
|
<!-- <if test="endDate != null">#{endDate},</if>--> |
|
<!-- <if test="descriptionTime != null">#{descriptionTime},</if>--> |
|
<!-- <if test="categoryCode != null">#{categoryCode},</if>--> |
|
<!-- <if test="cabinetNumber != null">#{cabinetNumber},</if>--> |
|
<!-- <if test="url != null">#{url},</if>--> |
|
<!-- <if test="status != null">#{status},</if>--> |
|
<!-- <if test="source != null">#{source},</if>--> |
|
<!-- <if test="delFlag != null">#{delFlag},</if>--> |
|
<!-- <if test="placeDept != null">#{placeDept},</if>--> |
|
<!-- <if test="type != null">#{type},</if>--> |
|
<!-- <if test="pageNumber != null">#{pageNumber},</if>--> |
|
<!-- <if test="buildingNumber != null">#{buildingNumber},</if>--> |
|
<!-- <if test="winnersUnit != null">#{winnersUnit},</if>--> |
|
<!-- <if test="issuing unit != null">#{issuing unit},</if>--> |
|
<!-- <if test="size != null">#{size},</if>--> |
|
<!-- <if test="createTime != null">#{createTime},</if>--> |
|
<!-- <if test="updateTime != null">#{updateTime},</if>--> |
|
<!-- <if test="remark != null">#{remark},</if>--> |
|
<!-- <if test="createId != null">#{createId},</if>--> |
|
<!-- </trim>--> |
|
<!-- </insert>--> |
|
|
|
<insert id="insertArchiveRecordInfo" parameterType="ArchiveRecordInfo"> |
|
INSERT INTO "public"."archive_record_info"( |
|
"file_num", |
|
"total_num", |
|
"box_num", |
|
"case_num", |
|
"year", |
|
"archive_category", |
|
"archive_scope", |
|
"box_name", |
|
"department", |
|
"storage_time", |
|
"search_type", |
|
"secret_level", |
|
"address", |
|
"major", |
|
"number", |
|
"pages", |
|
"owner_name", |
|
"start_date", |
|
"end_date", |
|
"description_time", |
|
"category_code", |
|
"cabinet_number", |
|
"url", |
|
"status", |
|
"source", |
|
"del_flag", |
|
"place_dept", |
|
"type", |
|
"page_number", |
|
"building_number", |
|
"winners_unit", |
|
"issuing_unit", |
|
"size_des", |
|
"create_time", |
|
"update_time", |
|
"remark", |
|
"create_id", |
|
"suffix_type", |
|
"reject_reason", |
|
"record_type", |
|
"project_number", |
|
"certificate_no", |
|
"key_words", |
|
"received_number", |
|
"archive_date", |
|
"interior_number", |
|
"journal_name", |
|
"country", |
|
"partner", |
|
"catalog_number", |
|
"copies", |
|
"location_num", |
|
"explain_des", |
|
"project_name", |
|
"micro_no", |
|
"piece_nums", |
|
"drawing_nums", |
|
"photo_nums", |
|
"disc_number", |
|
"provide_date", |
|
"provide_user", |
|
"original_path", |
|
"photo_no", |
|
"negative_no", |
|
"see_no", |
|
"appendix_address" |
|
) |
|
VALUES( |
|
#{fileNum}, |
|
#{totalNum}, |
|
#{boxNum}, |
|
#{caseNum}, |
|
#{year}, |
|
#{archiveCategory}, |
|
#{archiveScope}, |
|
#{boxName}, |
|
#{department}, |
|
#{storageTime}, |
|
#{searchType}, |
|
#{secretLevel}, |
|
#{address}, |
|
#{major}, |
|
#{number}, |
|
#{pages}, |
|
#{ownerName}, |
|
#{startDate}, |
|
#{endDate}, |
|
#{descriptionTime}, |
|
#{categoryCode}, |
|
#{cabinetNumber}, |
|
#{url}, |
|
#{status}, |
|
#{source}, |
|
#{delFlag}, |
|
#{placeDept}, |
|
#{type}, |
|
#{pageNumber}, |
|
#{buildingNumber}, |
|
#{winnersUnit}, |
|
#{issuingUnit}, |
|
#{sizeDes}, |
|
#{createTime}, |
|
#{updateTime}, |
|
#{remark}, |
|
#{createId}, |
|
#{suffixType}, |
|
#{rejectReason}, |
|
#{recordType}, |
|
#{projectNumber}, |
|
#{certificateNo}, |
|
#{keyWords}, |
|
#{received_number}, |
|
#{archive_date}, |
|
#{interior_number}, |
|
#{journal_name}, |
|
#{country}, |
|
#{partner}, |
|
#{catalog_number}, |
|
#{copies}, |
|
#{location_num}, |
|
#{explain_des}, |
|
#{project_name}, |
|
#{micro_no}, |
|
#{piece_nums}, |
|
#{drawing_nums}, |
|
#{photo_nums}, |
|
#{disc_number}, |
|
#{provide_date}, |
|
#{provide_user}, |
|
#{original_path}, |
|
#{photo_no}, |
|
#{negative_no}, |
|
#{see_no}, |
|
#{appendixAddress} |
|
) |
|
</insert> |
|
|
|
<update id="updateArchiveRecordInfo" parameterType="ArchiveRecordInfo"> |
|
update "PUBLIC"."archive_record_info" |
|
<trim prefix="SET" suffixOverrides=","> |
|
<if test="fileNum != null">file_num = #{fileNum},</if> |
|
<if test="totalNum != null">total_num = #{totalNum},</if> |
|
<if test="boxNum != null">box_num = #{boxNum},</if> |
|
<if test="caseNum != null">case_num = #{caseNum},</if> |
|
<if test="year != null">year = #{year},</if> |
|
<if test="archiveCategory != null">archive_category = #{archiveCategory},</if> |
|
<if test="archiveScope != null">archive_scope = #{archiveScope},</if> |
|
<if test="boxName != null">box_name = #{boxName},</if> |
|
<if test="department != null">department = #{department},</if> |
|
<if test="storageTime != null">storage_time = #{storageTime},</if> |
|
<if test="searchType != null">search_type = #{searchType},</if> |
|
<if test="secretLevel != null">secret_level = #{secretLevel},</if> |
|
<if test="address != null">address = #{address},</if> |
|
<if test="major != null">major = #{major},</if> |
|
<if test="number != null">number = #{number},</if> |
|
<if test="pages != null">pages = #{pages},</if> |
|
<if test="ownerName != null">owner_name = #{ownerName},</if> |
|
<if test="startDate != null">start_date = #{startDate},</if> |
|
<if test="endDate != null">end_date = #{endDate},</if> |
|
<if test="descriptionTime != null">description_time = #{descriptionTime},</if> |
|
<if test="categoryCode != null">category_code = #{categoryCode},</if> |
|
<if test="cabinetNumber != null">cabinet_number = #{cabinetNumber},</if> |
|
<if test="url != null">url = #{url},</if> |
|
<if test="status != null">status = #{status},</if> |
|
<if test="source != null">source = #{source},</if> |
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
<if test="placeDept != null">place_dept = #{placeDept},</if> |
|
<if test="type != null">type = #{type},</if> |
|
<if test="pageNumber != null">page_number = #{pageNumber},</if> |
|
<if test="buildingNumber != null">building_number = #{buildingNumber},</if> |
|
<if test="winnersUnit != null">winners_unit = #{winnersUnit},</if> |
|
<if test="issuingUnit != null">issuing_unit = #{issuingUnit},</if> |
|
<if test="sizeDes != null">size_des = #{sizeDes},</if> |
|
<if test="suffixType !=null">suffix_type=#{suffixType},</if> |
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
<if test="remark != null">remark = #{remark},</if> |
|
<if test="createId != null">create_id = #{createId},</if> |
|
<if test="rejectReason !=null">reject_reason=#{rejectReason},</if> |
|
<if test="recordType !=null">record_type=#{recordType},</if> |
|
<if test="projectNumber!=null">project_number=#{projectNumber},</if> |
|
<if test="certificateNo!=null">certificate_no=#{certificateNo},</if> |
|
<if test="keyWords!=null">key_words=#{keyWords},</if> |
|
<if test="received_number!=null">received_number=#{received_number},</if> |
|
<if test="archive_date!=null">archive_date=#{archive_date},</if> |
|
<if test="interior_number!=null">interior_number=#{interior_number},</if> |
|
<if test="journal_name!=null">journal_name=#{journal_name},</if> |
|
<if test="country!=null">country=#{country},</if> |
|
<if test="partner!=null">partner=#{partner},</if> |
|
<if test="catalog_number!=null">catalog_number=#{catalog_number},</if> |
|
<if test="copies!=null">copies=#{copies},</if> |
|
<if test="location_num!=null">location_num=#{location_num},</if> |
|
<if test="explain_des!=null">explain_des=#{explain_des},</if> |
|
<if test="project_name!=null">project_name=#{project_name},</if> |
|
<if test="micro_no!=null">micro_no=#{micro_no},</if> |
|
<if test="piece_nums!=null">piece_nums=#{piece_nums},</if> |
|
<if test="drawing_nums!=null">drawing_nums=#{drawing_nums},</if> |
|
<if test="photo_nums!=null">photo_nums=#{photo_nums},</if> |
|
<if test="disc_number!=null">disc_number=#{disc_number},</if> |
|
<if test="provide_date!=null">provide_date=#{provide_date},</if> |
|
<if test="provide_user!=null">provide_user=#{provide_user},</if> |
|
<if test="original_path!=null">original_path=#{original_path},</if> |
|
<if test="photo_no!=null">photo_no=#{photo_no},</if> |
|
<if test="negative_no!=null">negative_no=#{negative_no},</if> |
|
<if test="see_no!=null">see_no=#{see_no},</if> |
|
<if test="appendixAddress !=null and appendixAddress !=''">appendix_address=#{appendixAddress},</if> |
|
</trim> |
|
where id = #{id} |
|
</update> |
|
|
|
<delete id="deleteArchiveRecordInfoById" parameterType="String"> |
|
delete from "PUBLIC"."archive_record_info" where id = #{id} |
|
</delete> |
|
|
|
<delete id="deleteArchiveRecordInfoByIds" parameterType="String"> |
|
delete from "PUBLIC"."archive_record_info" where id in |
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
#{id} |
|
</foreach> |
|
</delete> |
|
|
|
<select id="listByIds" parameterType="list" resultMap="ArchiveRecordInfoResult"> |
|
<include refid="selectArchiveRecordInfoVo"/> where id in |
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
#{id} |
|
</foreach> |
|
</select> |
|
|
|
<!-- <insert id="batchSaveRecordInfoList" useGeneratedKeys="true" keyProperty="id"> |
|
insert into "PUBLIC"."archive_record_info" ( |
|
`file_num`, |
|
`total_num`, |
|
`box_num`, |
|
`case_num`, |
|
`year`, |
|
`archive_category`, |
|
`archive_scope`, |
|
`box_name`, |
|
`department`, |
|
`storage_time`, |
|
`search_type`, |
|
`secret_level`, |
|
`address`, |
|
`major`, |
|
`number`, |
|
`pages`, |
|
`owner_name`, |
|
`start_date`, |
|
`end_date`, |
|
`description_time`, |
|
`category_code`, |
|
`cabinet_number`, |
|
`url`, |
|
`status`, |
|
`source`, |
|
`del_flag`, |
|
`place_dept`, |
|
`type`, |
|
`page_number`, |
|
`building_number`, |
|
`winners_unit`, |
|
`issuing_unit`, |
|
`size_des`, |
|
`create_time`, |
|
`update_time`, |
|
`remark`, |
|
`create_id`, |
|
`suffix_type`) |
|
values |
|
<foreach collection="list" item="c" separator=","> |
|
(#{c.fileNum},#{c.totalNum}, #{c.boxNum}, #{c.caseNum}, #{c.year}, #{c.archiveCategory}, #{c.archiveScope}, #{c.boxName}, #{c.department}, #{c.storageTime}, #{c.searchType}, #{c.secretLevel}, #{c.address}, #{c.major}, #{c.number}, #{c.pages}, #{c.ownerName}, #{c.startDate}, #{c.endDate}, #{c.descriptionTime}, #{c.categoryCode}, #{c.cabinetNumber}, #{c.url}, #{c.status}, #{c.source}, #{c.delFlag}, #{c.placeDept}, #{c.type}, #{c.pageNumber}, #{c.buildingNumber}, #{c.winnersUnit}, #{c.issuingUnit}, #{c.sizeDes}, #{c.createTime}, #{c.updateTime}, #{c.remark}, #{c.createId}, #{c.suffixType}) |
|
</foreach> |
|
</insert>--> |
|
|
|
<insert id="batchSaveRecordInfoList" useGeneratedKeys="true" keyProperty="id"> |
|
insert into "PUBLIC"."archive_record_info" ("FILE_NUM", "TOTAL_NUM", "BOX_NUM", "CASE_NUM", "YEAR", "ARCHIVE_CATEGORY", "ARCHIVE_SCOPE", "BOX_NAME", |
|
"DEPARTMENT", "STORAGE_TIME", "SEARCH_TYPE", "SECRET_LEVEL", "ADDRESS", "MAJOR", "NUMBER", "PAGES", "OWNER_NAME", |
|
"START_DATE", "END_DATE", "DESCRIPTION_TIME", "CATEGORY_CODE", "CABINET_NUMBER", "URL", "STATUS", "SOURCE", "DEL_FLAG", |
|
"PLACE_DEPT", "TYPE", "PAGE_NUMBER", "BUILDING_NUMBER", "WINNERS_UNIT", "ISSUING_UNIT", "SIZE_DES", "CREATE_TIME", |
|
"UPDATE_TIME", "REMARK", "CREATE_ID", "SUFFIX_TYPE", "REJECT_REASON", "RECORD_TYPE", "PROJECT_NUMBER", "CERTIFICATE_NO", |
|
"KEY_WORDS",received_number, |
|
archive_date, |
|
interior_number, |
|
journal_name, |
|
partner, |
|
country ,catalog_number,copies,location_num,explain_des,project_name,micro_no, |
|
piece_nums,drawing_nums,photo_nums,disc_number,provide_date,provide_user,original_path,photo_no,negative_no,see_no,appendix_address) |
|
values |
|
<foreach collection="list" item="c" separator=","> |
|
(#{c.fileNum},#{c.totalNum}, #{c.boxNum}, #{c.caseNum}, #{c.year}, #{c.archiveCategory}, #{c.archiveScope}, #{c.boxName}, #{c.department}, #{c.storageTime}, #{c.searchType}, #{c.secretLevel}, #{c.address}, #{c.major}, #{c.number}, #{c.pages}, #{c.ownerName}, #{c.startDate}, |
|
#{c.endDate}, #{c.descriptionTime}, #{c.categoryCode}, #{c.cabinetNumber}, #{c.url}, #{c.status}, #{c.source}, #{c.delFlag}, #{c.placeDept}, #{c.type}, #{c.pageNumber}, #{c.buildingNumber}, #{c.winnersUnit}, #{c.issuingUnit}, #{c.sizeDes}, #{c.createTime}, |
|
#{c.updateTime}, #{c.remark}, #{c.createId}, #{c.suffixType},#{c.rejectReason}, |
|
#{c.recordType},#{c.projectNumber},#{c.certificateNo},#{c.keyWords}, |
|
#{c.received_number},#{c.archive_date},#{c.interior_number},#{c.journal_name},#{c.partner},#{c.country}, |
|
#{c.catalog_number},#{c.copies},#{c.location_num},#{c.explain_des}, |
|
#{c.project_name},#{c.micro_no},#{c.piece_nums},#{c.drawing_nums}, |
|
#{c.photo_nums},#{c.disc_number},#{c.provide_date}, |
|
#{c.provide_user},#{c.original_path},#{c.photo_no}, |
|
#{c.negative_no},#{c.see_no},#{c.appendixAddress}) |
|
</foreach> |
|
</insert> |
|
</mapper> |