PtModelLogMapper.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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.ruoyi.interfaces.mapper.PtModelLogMapper">
  4. <resultMap id="BaseResultMap" type="com.ruoyi.interfaces.domain.PtModelLog">
  5. <id column="ID" property="id" jdbcType="VARCHAR"/>
  6. <result column="MID" property="mid" jdbcType="VARCHAR"/>
  7. <result column="APPID" property="appid" jdbcType="VARCHAR"/>
  8. <result column="TOKEN" property="token" jdbcType="VARCHAR"/>
  9. <result column="VISIT_IP" property="visitIp" jdbcType="VARCHAR"/>
  10. <result column="VISIT_TM" property="visitTm" jdbcType="DATE"/>
  11. <result column="MESSAGE" property="message" jdbcType="VARCHAR"/>
  12. </resultMap>
  13. <sql id="Base_Column_List">
  14. ID
  15. , MID, APPID, TOKEN, VISIT_IP, VISIT_TM, MESSAGE
  16. </sql>
  17. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
  18. select
  19. <include refid="Base_Column_List"/>
  20. from PT_MODEL_LOG
  21. where ID = #{id,jdbcType=VARCHAR}
  22. </select>
  23. <select id="selectAll" resultMap="BaseResultMap" parameterType="java.lang.String">
  24. select
  25. <include refid="Base_Column_List"/>
  26. from PT_MODEL_LOG
  27. </select>
  28. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  29. delete
  30. from PT_MODEL_LOG
  31. where ID = #{id,jdbcType=VARCHAR}
  32. </delete>
  33. <insert id="insert" parameterType="com.ruoyi.interfaces.domain.PtModelLog">
  34. insert into PT_MODEL_LOG (ID, MID, APPID,
  35. TOKEN, VISIT_IP, VISIT_TM, MESSAGE)
  36. values (#{id,jdbcType=VARCHAR}, #{mid,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR},
  37. #{token,jdbcType=VARCHAR}, #{visitIp,jdbcType=VARCHAR}, #{visitTm,jdbcType=DATE},
  38. #{message,jdbcType=VARCHAR})
  39. </insert>
  40. <insert id="insertSelective" parameterType="com.ruoyi.interfaces.domain.PtModelLog">
  41. insert into PT_MODEL_LOG
  42. <trim prefix="(" suffix=")" suffixOverrides=",">
  43. <if test="id != null">
  44. ID,
  45. </if>
  46. <if test="mid != null">
  47. MID,
  48. </if>
  49. <if test="appid != null">
  50. APPID,
  51. </if>
  52. <if test="token != null">
  53. TOKEN,
  54. </if>
  55. <if test="visitIp != null">
  56. VISIT_IP,
  57. </if>
  58. <if test="visitTm != null">
  59. VISIT_TM,
  60. </if>
  61. <if test="message != null">
  62. MESSAGE,
  63. </if>
  64. </trim>
  65. <trim prefix="values (" suffix=")" suffixOverrides=",">
  66. <if test="id != null">
  67. #{id,jdbcType=VARCHAR},
  68. </if>
  69. <if test="mid != null">
  70. #{mid,jdbcType=VARCHAR},
  71. </if>
  72. <if test="appid != null">
  73. #{appid,jdbcType=VARCHAR},
  74. </if>
  75. <if test="token != null">
  76. #{token,jdbcType=VARCHAR},
  77. </if>
  78. <if test="visitIp != null">
  79. #{visitIp,jdbcType=VARCHAR},
  80. </if>
  81. <if test="visitTm != null">
  82. #{visitTm,jdbcType=DATE},
  83. </if>
  84. <if test="message != null">
  85. #{message,jdbcType=VARCHAR},
  86. </if>
  87. </trim>
  88. </insert>
  89. <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.interfaces.domain.PtModelLog">
  90. update PT_MODEL_LOG
  91. <set>
  92. <if test="mid != null">
  93. MID = #{mid,jdbcType=VARCHAR},
  94. </if>
  95. <if test="appid != null">
  96. APPID = #{appid,jdbcType=VARCHAR},
  97. </if>
  98. <if test="token != null">
  99. TOKEN = #{token,jdbcType=VARCHAR},
  100. </if>
  101. <if test="visitIp != null">
  102. #{visitIp,jdbcType=VARCHAR},
  103. </if>
  104. <if test="visitTm != null">
  105. #{visitTm,jdbcType=DATE},
  106. </if>
  107. <if test="message != null">
  108. MESSAGE = #{message,jdbcType=VARCHAR},
  109. </if>
  110. </set>
  111. where ID = #{id,jdbcType=VARCHAR}
  112. </update>
  113. <update id="updateByPrimaryKey" parameterType="com.ruoyi.interfaces.domain.PtModelLog">
  114. update PT_MODEL_LOG
  115. set MID = #{mid,jdbcType=VARCHAR},
  116. APPID = #{appid,jdbcType=VARCHAR},
  117. TOKEN = #{token,jdbcType=VARCHAR},
  118. VISIT_IP = #{visitIp,jdbcType=VARCHAR},
  119. VISIT_TM = #{visitTm,jdbcType=DATE},
  120. MESSAGE = #{message,jdbcType=VARCHAR}
  121. where ID = #{id,jdbcType=VARCHAR}
  122. </update>
  123. </mapper>