|
@@ -0,0 +1,59 @@
|
|
|
+<!DOCTYPE mapper
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+
|
|
|
+<mapper namespace="com.bosshand.virgo.file.dao.WorkarkContractPdfSealDao">
|
|
|
+
|
|
|
+ <resultMap type="com.bosshand.virgo.file.model.WorkarkContractPdfSeal" id="result" >
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ <id column="pictureAddress" property="pictureAddress"/>
|
|
|
+ <id column="pictureWidth" property="pictureWidth"/>
|
|
|
+ <id column="pictureHeight" property="pictureHeight"/>
|
|
|
+ <id column="sealId" property="sealId"/>
|
|
|
+ <id column="pageSize" property="pageSize"/>
|
|
|
+ <id column="pageLeft" property="pageLeft"/>
|
|
|
+ <id column="pageTop" property="pageTop"/>
|
|
|
+ <id column="pdfId" property="pdfId"/>
|
|
|
+ <id column="organizationId" property="organizationId"/>
|
|
|
+ <id column="payOrganizationId" property="payOrganizationId"/>
|
|
|
+ <id column="createDate" property="createDate"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="get" resultMap="result">
|
|
|
+ select * from workark_contract_pdf_seal where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="result">
|
|
|
+ select * from workark_contract_pdf_seal where pdfId = #{pdfId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.bosshand.virgo.file.model.WorkarkContractPdfSeal" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ INSERT into workark_contract_pdf_seal(createDate, pictureAddress, pictureWidth, pictureHeight, sealId, pageSize, pageLeft, pageTop, pdfId, organizationId, payOrganizationId) values
|
|
|
+ <foreach collection ="list" item="item" separator =",">
|
|
|
+ (now(), #{item.pictureAddress}, #{item.pictureWidth}, #{item.pictureHeight}, #{item.sealId}, #{item.pageSize}, #{item.pageLeft}, #{item.pageTop}, #{item.pdfId}, #{item.organizationId}, #{item.payOrganizationId})
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <delete id="delete">
|
|
|
+ delete from workark_contract_pdf_seal where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.bosshand.virgo.file.model.WorkarkContractPdfSeal">
|
|
|
+ update workark_contract_pdf_seal
|
|
|
+ <trim prefix="set" suffixOverrides=",">
|
|
|
+ <if test="pictureAddress!=null">pictureAddress = #{pictureAddress},</if>
|
|
|
+ <if test="pictureWidth!=null">pictureWidth = #{pictureWidth},</if>
|
|
|
+ <if test="pictureHeight!=null">pictureHeight = #{pictureHeight},</if>
|
|
|
+ <if test="pageSize!=0">pageSize = #{pageSize},</if>
|
|
|
+ <if test="pageLeft!=0">pageLeft = #{pageLeft},</if>
|
|
|
+ <if test="pageTop!=0">pageTop = #{pageTop},</if>
|
|
|
+ <if test="pdfId!=0">pdfId = #{pdfId},</if>
|
|
|
+ <if test="organizationId!=0">organizationId = #{organizationId},</if>
|
|
|
+ <if test="payOrganizationId!=0">payOrganizationId = #{payOrganizationId},</if>
|
|
|
+ <if test="sealId!=0">sealId = #{sealId},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+</mapper>
|