ImLogMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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.minpay.db.table.mapper.ImLogMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImLog">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="LOG_LOGNO" jdbcType="CHAR" property="logno" />
  10. <result column="LOG_DATETIME" jdbcType="CHAR" property="datetime" />
  11. <result column="LOG_USERID" jdbcType="VARCHAR" property="userid" />
  12. <result column="LOG_BSNCODE" jdbcType="VARCHAR" property="bsncode" />
  13. <result column="LOG_RESULT" jdbcType="CHAR" property="result" />
  14. <result column="LOG_CONTEXTID" jdbcType="VARCHAR" property="contextid" />
  15. <result column="LOG_INFO" jdbcType="VARCHAR" property="info" />
  16. <result column="LOG_IP" jdbcType="VARCHAR" property="ip" />
  17. <result column="LOG_STATE" jdbcType="VARCHAR" property="state" />
  18. </resultMap>
  19. <sql id="Example_Where_Clause">
  20. <!--
  21. WARNING - @mbggenerated
  22. This element is automatically generated by MyBatis Generator, do not modify.
  23. -->
  24. <where>
  25. <foreach collection="oredCriteria" item="criteria" separator="or">
  26. <if test="criteria.valid">
  27. <trim prefix="(" prefixOverrides="and" suffix=")">
  28. <foreach collection="criteria.criteria" item="criterion">
  29. <choose>
  30. <when test="criterion.noValue">
  31. and ${criterion.condition}
  32. </when>
  33. <when test="criterion.singleValue">
  34. and ${criterion.condition} #{criterion.value}
  35. </when>
  36. <when test="criterion.betweenValue">
  37. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  38. </when>
  39. <when test="criterion.listValue">
  40. and ${criterion.condition}
  41. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  42. #{listItem}
  43. </foreach>
  44. </when>
  45. </choose>
  46. </foreach>
  47. </trim>
  48. </if>
  49. </foreach>
  50. </where>
  51. </sql>
  52. <sql id="Update_By_Example_Where_Clause">
  53. <!--
  54. WARNING - @mbggenerated
  55. This element is automatically generated by MyBatis Generator, do not modify.
  56. -->
  57. <where>
  58. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  59. <if test="criteria.valid">
  60. <trim prefix="(" prefixOverrides="and" suffix=")">
  61. <foreach collection="criteria.criteria" item="criterion">
  62. <choose>
  63. <when test="criterion.noValue">
  64. and ${criterion.condition}
  65. </when>
  66. <when test="criterion.singleValue">
  67. and ${criterion.condition} #{criterion.value}
  68. </when>
  69. <when test="criterion.betweenValue">
  70. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  71. </when>
  72. <when test="criterion.listValue">
  73. and ${criterion.condition}
  74. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  75. #{listItem}
  76. </foreach>
  77. </when>
  78. </choose>
  79. </foreach>
  80. </trim>
  81. </if>
  82. </foreach>
  83. </where>
  84. </sql>
  85. <sql id="Base_Column_List">
  86. <!--
  87. WARNING - @mbggenerated
  88. This element is automatically generated by MyBatis Generator, do not modify.
  89. -->
  90. LOG_LOGNO, LOG_DATETIME, LOG_USERID, LOG_BSNCODE, LOG_RESULT, LOG_CONTEXTID, LOG_INFO,
  91. LOG_IP, LOG_STATE
  92. </sql>
  93. <select id="selectByExample" parameterType="com.minpay.db.table.model.ImLogExample" resultMap="BaseResultMap">
  94. <!--
  95. WARNING - @mbggenerated
  96. This element is automatically generated by MyBatis Generator, do not modify.
  97. -->
  98. select
  99. <if test="distinct">
  100. distinct
  101. </if>
  102. <include refid="Base_Column_List" />
  103. from im_log
  104. <if test="_parameter != null">
  105. <include refid="Example_Where_Clause" />
  106. </if>
  107. <if test="orderByClause != null">
  108. order by ${orderByClause}
  109. </if>
  110. </select>
  111. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  112. <!--
  113. WARNING - @mbggenerated
  114. This element is automatically generated by MyBatis Generator, do not modify.
  115. -->
  116. select
  117. <include refid="Base_Column_List" />
  118. from im_log
  119. where LOG_LOGNO = #{logno,jdbcType=CHAR}
  120. </select>
  121. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  122. <!--
  123. WARNING - @mbggenerated
  124. This element is automatically generated by MyBatis Generator, do not modify.
  125. -->
  126. delete from im_log
  127. where LOG_LOGNO = #{logno,jdbcType=CHAR}
  128. </delete>
  129. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImLogExample">
  130. <!--
  131. WARNING - @mbggenerated
  132. This element is automatically generated by MyBatis Generator, do not modify.
  133. -->
  134. delete from im_log
  135. <if test="_parameter != null">
  136. <include refid="Example_Where_Clause" />
  137. </if>
  138. </delete>
  139. <insert id="insert" parameterType="com.minpay.db.table.model.ImLog">
  140. <!--
  141. WARNING - @mbggenerated
  142. This element is automatically generated by MyBatis Generator, do not modify.
  143. -->
  144. insert into im_log (LOG_LOGNO, LOG_DATETIME, LOG_USERID,
  145. LOG_BSNCODE, LOG_RESULT, LOG_CONTEXTID,
  146. LOG_INFO, LOG_IP, LOG_STATE)
  147. values (#{logno,jdbcType=CHAR}, #{datetime,jdbcType=CHAR}, #{userid,jdbcType=VARCHAR},
  148. #{bsncode,jdbcType=VARCHAR}, #{result,jdbcType=CHAR}, #{contextid,jdbcType=VARCHAR},
  149. #{info,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR})
  150. </insert>
  151. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImLog">
  152. <!--
  153. WARNING - @mbggenerated
  154. This element is automatically generated by MyBatis Generator, do not modify.
  155. -->
  156. insert into im_log
  157. <trim prefix="(" suffix=")" suffixOverrides=",">
  158. <if test="logno != null">
  159. LOG_LOGNO,
  160. </if>
  161. <if test="datetime != null">
  162. LOG_DATETIME,
  163. </if>
  164. <if test="userid != null">
  165. LOG_USERID,
  166. </if>
  167. <if test="bsncode != null">
  168. LOG_BSNCODE,
  169. </if>
  170. <if test="result != null">
  171. LOG_RESULT,
  172. </if>
  173. <if test="contextid != null">
  174. LOG_CONTEXTID,
  175. </if>
  176. <if test="info != null">
  177. LOG_INFO,
  178. </if>
  179. <if test="ip != null">
  180. LOG_IP,
  181. </if>
  182. <if test="state != null">
  183. LOG_STATE,
  184. </if>
  185. </trim>
  186. <trim prefix="values (" suffix=")" suffixOverrides=",">
  187. <if test="logno != null">
  188. #{logno,jdbcType=CHAR},
  189. </if>
  190. <if test="datetime != null">
  191. #{datetime,jdbcType=CHAR},
  192. </if>
  193. <if test="userid != null">
  194. #{userid,jdbcType=VARCHAR},
  195. </if>
  196. <if test="bsncode != null">
  197. #{bsncode,jdbcType=VARCHAR},
  198. </if>
  199. <if test="result != null">
  200. #{result,jdbcType=CHAR},
  201. </if>
  202. <if test="contextid != null">
  203. #{contextid,jdbcType=VARCHAR},
  204. </if>
  205. <if test="info != null">
  206. #{info,jdbcType=VARCHAR},
  207. </if>
  208. <if test="ip != null">
  209. #{ip,jdbcType=VARCHAR},
  210. </if>
  211. <if test="state != null">
  212. #{state,jdbcType=VARCHAR},
  213. </if>
  214. </trim>
  215. </insert>
  216. <select id="countByExample" parameterType="com.minpay.db.table.model.ImLogExample" resultType="java.lang.Integer">
  217. <!--
  218. WARNING - @mbggenerated
  219. This element is automatically generated by MyBatis Generator, do not modify.
  220. -->
  221. select count(*) from im_log
  222. <if test="_parameter != null">
  223. <include refid="Example_Where_Clause" />
  224. </if>
  225. </select>
  226. <update id="updateByExampleSelective" parameterType="map">
  227. <!--
  228. WARNING - @mbggenerated
  229. This element is automatically generated by MyBatis Generator, do not modify.
  230. -->
  231. update im_log
  232. <set>
  233. <if test="record.logno != null">
  234. LOG_LOGNO = #{record.logno,jdbcType=CHAR},
  235. </if>
  236. <if test="record.datetime != null">
  237. LOG_DATETIME = #{record.datetime,jdbcType=CHAR},
  238. </if>
  239. <if test="record.userid != null">
  240. LOG_USERID = #{record.userid,jdbcType=VARCHAR},
  241. </if>
  242. <if test="record.bsncode != null">
  243. LOG_BSNCODE = #{record.bsncode,jdbcType=VARCHAR},
  244. </if>
  245. <if test="record.result != null">
  246. LOG_RESULT = #{record.result,jdbcType=CHAR},
  247. </if>
  248. <if test="record.contextid != null">
  249. LOG_CONTEXTID = #{record.contextid,jdbcType=VARCHAR},
  250. </if>
  251. <if test="record.info != null">
  252. LOG_INFO = #{record.info,jdbcType=VARCHAR},
  253. </if>
  254. <if test="record.ip != null">
  255. LOG_IP = #{record.ip,jdbcType=VARCHAR},
  256. </if>
  257. <if test="record.state != null">
  258. LOG_STATE = #{record.state,jdbcType=VARCHAR},
  259. </if>
  260. </set>
  261. <if test="_parameter != null">
  262. <include refid="Update_By_Example_Where_Clause" />
  263. </if>
  264. </update>
  265. <update id="updateByExample" parameterType="map">
  266. <!--
  267. WARNING - @mbggenerated
  268. This element is automatically generated by MyBatis Generator, do not modify.
  269. -->
  270. update im_log
  271. set LOG_LOGNO = #{record.logno,jdbcType=CHAR},
  272. LOG_DATETIME = #{record.datetime,jdbcType=CHAR},
  273. LOG_USERID = #{record.userid,jdbcType=VARCHAR},
  274. LOG_BSNCODE = #{record.bsncode,jdbcType=VARCHAR},
  275. LOG_RESULT = #{record.result,jdbcType=CHAR},
  276. LOG_CONTEXTID = #{record.contextid,jdbcType=VARCHAR},
  277. LOG_INFO = #{record.info,jdbcType=VARCHAR},
  278. LOG_IP = #{record.ip,jdbcType=VARCHAR},
  279. LOG_STATE = #{record.state,jdbcType=VARCHAR}
  280. <if test="_parameter != null">
  281. <include refid="Update_By_Example_Where_Clause" />
  282. </if>
  283. </update>
  284. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImLog">
  285. <!--
  286. WARNING - @mbggenerated
  287. This element is automatically generated by MyBatis Generator, do not modify.
  288. -->
  289. update im_log
  290. <set>
  291. <if test="datetime != null">
  292. LOG_DATETIME = #{datetime,jdbcType=CHAR},
  293. </if>
  294. <if test="userid != null">
  295. LOG_USERID = #{userid,jdbcType=VARCHAR},
  296. </if>
  297. <if test="bsncode != null">
  298. LOG_BSNCODE = #{bsncode,jdbcType=VARCHAR},
  299. </if>
  300. <if test="result != null">
  301. LOG_RESULT = #{result,jdbcType=CHAR},
  302. </if>
  303. <if test="contextid != null">
  304. LOG_CONTEXTID = #{contextid,jdbcType=VARCHAR},
  305. </if>
  306. <if test="info != null">
  307. LOG_INFO = #{info,jdbcType=VARCHAR},
  308. </if>
  309. <if test="ip != null">
  310. LOG_IP = #{ip,jdbcType=VARCHAR},
  311. </if>
  312. <if test="state != null">
  313. LOG_STATE = #{state,jdbcType=VARCHAR},
  314. </if>
  315. </set>
  316. where LOG_LOGNO = #{logno,jdbcType=CHAR}
  317. </update>
  318. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImLog">
  319. <!--
  320. WARNING - @mbggenerated
  321. This element is automatically generated by MyBatis Generator, do not modify.
  322. -->
  323. update im_log
  324. set LOG_DATETIME = #{datetime,jdbcType=CHAR},
  325. LOG_USERID = #{userid,jdbcType=VARCHAR},
  326. LOG_BSNCODE = #{bsncode,jdbcType=VARCHAR},
  327. LOG_RESULT = #{result,jdbcType=CHAR},
  328. LOG_CONTEXTID = #{contextid,jdbcType=VARCHAR},
  329. LOG_INFO = #{info,jdbcType=VARCHAR},
  330. LOG_IP = #{ip,jdbcType=VARCHAR},
  331. LOG_STATE = #{state,jdbcType=VARCHAR}
  332. where LOG_LOGNO = #{logno,jdbcType=CHAR}
  333. </update>
  334. </mapper>