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.
96 lines
3.1 KiB
XML
96 lines
3.1 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.duplicate.infrastructure.dao.ArchiveDetailMapper">
|
|
<insert id="insertSel">
|
|
insert into archive_detail
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
id,
|
|
<if test="pdfPath != null">
|
|
PDF_PATH,
|
|
</if>
|
|
<if test="masterid != null">
|
|
MasterID,
|
|
</if>
|
|
<if test="uploaddatetime != null">
|
|
UpLoadDateTime,
|
|
</if>
|
|
<if test="assortid != null">
|
|
AssortID,
|
|
</if>
|
|
<if test="source != null">
|
|
Source,
|
|
</if>
|
|
<if test="subassort != null">
|
|
SubAssort,
|
|
</if>
|
|
<if test="title != null">
|
|
Title,
|
|
</if>
|
|
<if test="flag != null">
|
|
flag,
|
|
</if>
|
|
<if test="sys != null">
|
|
Sys,
|
|
</if>
|
|
<if test="C1 != null">
|
|
C1,
|
|
</if>
|
|
<if test="SoleKey != null">
|
|
SoleKey,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<!--<if test="id != null and id!=''">-->
|
|
(select replace(newid(),'-','')),
|
|
<!--</if>-->
|
|
<if test="pdfPath != null">
|
|
#{pdfPath,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="masterid != null">
|
|
#{masterid,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="uploaddatetime != null">
|
|
#{uploaddatetime,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="assortid != null">
|
|
#{assortid,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="source != null">
|
|
#{source,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="subassort != null">
|
|
#{subassort,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="title != null">
|
|
#{title,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="flag != null">
|
|
#{flag,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="sys != null">
|
|
#{sys,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="C1 != null">
|
|
#{C1,jdbcType=NVARCHAR},
|
|
</if>
|
|
<if test="SoleKey != null">
|
|
#{SoleKey,jdbcType=NVARCHAR},
|
|
</if>
|
|
|
|
</trim>
|
|
</insert>
|
|
<delete id="deleteByPrimaryKey">
|
|
delete from archive_detail
|
|
where id = #{id,jdbcType=NVARCHAR}
|
|
</delete>
|
|
<delete id="delFileBySource">
|
|
delete from archive_detail
|
|
where MasterID = #{masterId} AND Source IN (#{collectId, jdbcType=NVARCHAR})
|
|
</delete>
|
|
|
|
<select id="getDetailBySerialNumber" resultType="com.example.duplicate.controller.param.ArchiveDetailDto">
|
|
select * from archive_detail where SoleKey=#{serialNumber}
|
|
</select>
|
|
</mapper> |