KwsLogMapper.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.sckw.slope.detection.dao.mysql.KwsLogMapper">
  4. <resultMap id="BaseResultMap" type="com.sckw.slope.detection.model.dos.mysql.KwsLog">
  5. <!--@mbg.generated-->
  6. <!--@Table kws_log-->
  7. <id column="id" jdbcType="BIGINT" property="id" />
  8. <result column="type" jdbcType="VARCHAR" property="type" />
  9. <result column="content" jdbcType="VARCHAR" property="content" />
  10. <result column="company_id" jdbcType="VARCHAR" property="companyId" />
  11. <result column="mountain_id" jdbcType="VARCHAR" property="mountainId" />
  12. <result column="create_by" jdbcType="BIGINT" property="createBy" />
  13. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  14. </resultMap>
  15. <sql id="Base_Column_List">
  16. <!--@mbg.generated-->
  17. id, `type`, content, create_by, create_time,company_id,mountain_id
  18. </sql>
  19. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  20. <!--@mbg.generated-->
  21. select
  22. <include refid="Base_Column_List" />
  23. from kws_log
  24. where id = #{id,jdbcType=BIGINT}
  25. </select>
  26. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  27. <!--@mbg.generated-->
  28. delete from kws_log
  29. where id = #{id,jdbcType=BIGINT}
  30. </delete>
  31. <insert id="insertSelective" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsLog">
  32. <!--@mbg.generated-->
  33. insert into kws_log
  34. <trim prefix="(" suffix=")" suffixOverrides=",">
  35. <if test="id != null">
  36. id,
  37. </if>
  38. <if test="type != null">
  39. `type`,
  40. </if>
  41. <if test="content != null">
  42. content,
  43. </if>
  44. <if test="createBy != null">
  45. create_by,
  46. </if>
  47. <if test="createTime != null">
  48. create_time,
  49. </if>
  50. </trim>
  51. <trim prefix="values (" suffix=")" suffixOverrides=",">
  52. <if test="id != null">
  53. #{id,jdbcType=BIGINT},
  54. </if>
  55. <if test="type != null">
  56. #{type,jdbcType=VARCHAR},
  57. </if>
  58. <if test="content != null">
  59. #{content,jdbcType=VARCHAR},
  60. </if>
  61. <if test="createBy != null">
  62. #{createBy,jdbcType=BIGINT},
  63. </if>
  64. <if test="createTime != null">
  65. #{createTime,jdbcType=TIMESTAMP},
  66. </if>
  67. </trim>
  68. </insert>
  69. <update id="updateByPrimaryKeySelective" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsLog">
  70. <!--@mbg.generated-->
  71. update kws_log
  72. <set>
  73. <if test="type != null">
  74. `type` = #{type,jdbcType=VARCHAR},
  75. </if>
  76. <if test="content != null">
  77. content = #{content,jdbcType=VARCHAR},
  78. </if>
  79. <if test="createBy != null">
  80. create_by = #{createBy,jdbcType=BIGINT},
  81. </if>
  82. <if test="createTime != null">
  83. create_time = #{createTime,jdbcType=TIMESTAMP},
  84. </if>
  85. </set>
  86. where id = #{id,jdbcType=BIGINT}
  87. </update>
  88. <update id="updateByPrimaryKey" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsLog">
  89. <!--@mbg.generated-->
  90. update kws_log
  91. set `type` = #{type,jdbcType=VARCHAR},
  92. content = #{content,jdbcType=VARCHAR},
  93. create_by = #{createBy,jdbcType=BIGINT},
  94. create_time = #{createTime,jdbcType=TIMESTAMP}
  95. where id = #{id,jdbcType=BIGINT}
  96. </update>
  97. </mapper>