123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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="org.springblade.manager.mapper.SignPfxFilePreMapper">
- <resultMap id="BaseResultMap" type="org.springblade.manager.entity.SignPfxFilePre">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="signaturePngUrl" column="signature_png_url" jdbcType="VARCHAR"/>
- <result property="wide" column="wide" jdbcType="DOUBLE"/>
- <result property="high" column="high" jdbcType="DOUBLE"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,signature_png_url,wide,
- high
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from m_sign_pfx_file_pre
- where id = #{id,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from m_sign_pfx_file_pre
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="org.springblade.manager.entity.SignPfxFilePre" useGeneratedKeys="true">
- insert into m_sign_pfx_file_pre
- ( id,signature_png_url,wide
- ,high)
- values (#{id,jdbcType=BIGINT},#{signaturePngUrl,jdbcType=VARCHAR},#{wide,jdbcType=DOUBLE}
- ,#{high,jdbcType=DOUBLE})
- </insert>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="org.springblade.manager.entity.SignPfxFilePre" useGeneratedKeys="true">
- insert into m_sign_pfx_file_pre
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="signaturePngUrl != null">signature_png_url,</if>
- <if test="wide != null">wide,</if>
- <if test="high != null">high,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id,jdbcType=BIGINT},</if>
- <if test="signaturePngUrl != null">#{signaturePngUrl,jdbcType=VARCHAR},</if>
- <if test="wide != null">#{wide,jdbcType=DOUBLE},</if>
- <if test="high != null">#{high,jdbcType=DOUBLE},</if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="org.springblade.manager.entity.SignPfxFilePre">
- update m_sign_pfx_file_pre
- <set>
- <if test="signaturePngUrl != null">
- signature_png_url = #{signaturePngUrl,jdbcType=VARCHAR},
- </if>
- <if test="wide != null">
- wide = #{wide,jdbcType=DOUBLE},
- </if>
- <if test="high != null">
- high = #{high,jdbcType=DOUBLE},
- </if>
- </set>
- where id = #{id,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="org.springblade.manager.entity.SignPfxFilePre">
- update m_sign_pfx_file_pre
- set
- signature_png_url = #{signaturePngUrl,jdbcType=VARCHAR},
- wide = #{wide,jdbcType=DOUBLE},
- high = #{high,jdbcType=DOUBLE}
- where id = #{id,jdbcType=BIGINT}
- </update>
- </mapper>
|