SignPfxFilePreMapper.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="org.springblade.manager.mapper.SignPfxFilePreMapper">
  6. <resultMap id="BaseResultMap" type="org.springblade.manager.entity.SignPfxFilePre">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="signaturePngUrl" column="signature_png_url" jdbcType="VARCHAR"/>
  9. <result property="wide" column="wide" jdbcType="DOUBLE"/>
  10. <result property="high" column="high" jdbcType="DOUBLE"/>
  11. </resultMap>
  12. <sql id="Base_Column_List">
  13. id,signature_png_url,wide,
  14. high
  15. </sql>
  16. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  17. select
  18. <include refid="Base_Column_List" />
  19. from m_sign_pfx_file_pre
  20. where id = #{id,jdbcType=BIGINT}
  21. </select>
  22. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  23. delete from m_sign_pfx_file_pre
  24. where id = #{id,jdbcType=BIGINT}
  25. </delete>
  26. <insert id="insert" keyColumn="id" keyProperty="id" parameterType="org.springblade.manager.entity.SignPfxFilePre" useGeneratedKeys="true">
  27. insert into m_sign_pfx_file_pre
  28. ( id,signature_png_url,wide
  29. ,high)
  30. values (#{id,jdbcType=BIGINT},#{signaturePngUrl,jdbcType=VARCHAR},#{wide,jdbcType=DOUBLE}
  31. ,#{high,jdbcType=DOUBLE})
  32. </insert>
  33. <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="org.springblade.manager.entity.SignPfxFilePre" useGeneratedKeys="true">
  34. insert into m_sign_pfx_file_pre
  35. <trim prefix="(" suffix=")" suffixOverrides=",">
  36. <if test="id != null">id,</if>
  37. <if test="signaturePngUrl != null">signature_png_url,</if>
  38. <if test="wide != null">wide,</if>
  39. <if test="high != null">high,</if>
  40. </trim>
  41. <trim prefix="values (" suffix=")" suffixOverrides=",">
  42. <if test="id != null">#{id,jdbcType=BIGINT},</if>
  43. <if test="signaturePngUrl != null">#{signaturePngUrl,jdbcType=VARCHAR},</if>
  44. <if test="wide != null">#{wide,jdbcType=DOUBLE},</if>
  45. <if test="high != null">#{high,jdbcType=DOUBLE},</if>
  46. </trim>
  47. </insert>
  48. <update id="updateByPrimaryKeySelective" parameterType="org.springblade.manager.entity.SignPfxFilePre">
  49. update m_sign_pfx_file_pre
  50. <set>
  51. <if test="signaturePngUrl != null">
  52. signature_png_url = #{signaturePngUrl,jdbcType=VARCHAR},
  53. </if>
  54. <if test="wide != null">
  55. wide = #{wide,jdbcType=DOUBLE},
  56. </if>
  57. <if test="high != null">
  58. high = #{high,jdbcType=DOUBLE},
  59. </if>
  60. </set>
  61. where id = #{id,jdbcType=BIGINT}
  62. </update>
  63. <update id="updateByPrimaryKey" parameterType="org.springblade.manager.entity.SignPfxFilePre">
  64. update m_sign_pfx_file_pre
  65. set
  66. signature_png_url = #{signaturePngUrl,jdbcType=VARCHAR},
  67. wide = #{wide,jdbcType=DOUBLE},
  68. high = #{high,jdbcType=DOUBLE}
  69. where id = #{id,jdbcType=BIGINT}
  70. </update>
  71. </mapper>