You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?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.example.db1.dao.ArchiveDetailDao">
|
|
|
|
<insert id="addArchiveDetail">
|
|
insert into archive_detail(ID, PDF_PATH, MasterID, UpLoadDateTime, AssortID, Source, Title, flag, Sys,C1)
|
|
values (#{id}, #{pdfPath}, #{masterId}, #{upLoadDateTime}, #{assortId},
|
|
#{source},
|
|
#{title}, #{flag}, #{sys}, #{C1})
|
|
</insert>
|
|
<insert id="addArchiveDetailParam">
|
|
insert into
|
|
archive_detail(id,PDF_PATH,MasterID,UpLoadDateTime,AssortID,Source,Title,flag,Sys,C1
|
|
)
|
|
values
|
|
<foreach collection="list" item="item" separator=",">
|
|
(replace(newid(), '-', ''),#{item.pdfPath},#{item.masterId},#{item.uploadDateTime},#{item.assortId},#{item.source},
|
|
#{item.title},#{item.flag},#{item.sys})
|
|
</foreach>
|
|
</insert>
|
|
<delete id="delPdfPath">
|
|
delete from archive_detail
|
|
where c1 = #{C1} AND AssortID='119'
|
|
</delete>
|
|
<select id="getPdfPath" resultType="java.lang.String">
|
|
select PDF_PATH FROM Archive_Detail WHERE c1=#{C1} AND AssortID='119'
|
|
</select>
|
|
|
|
</mapper> |