ImEntryCtrlMapper.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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.ImEntryCtrlMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImEntryCtrl" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ECT_SESSIONID" property="sessionid" jdbcType="VARCHAR" />
  10. <id column="ECT_USERID" property="userid" jdbcType="VARCHAR" />
  11. <result column="ECT_LOGONTIME" property="logontime" jdbcType="CHAR" />
  12. <result column="ECT_SERVER" property="server" jdbcType="VARCHAR" />
  13. </resultMap>
  14. <sql id="Example_Where_Clause" >
  15. <!--
  16. WARNING - @mbggenerated
  17. This element is automatically generated by MyBatis Generator, do not modify.
  18. -->
  19. <where >
  20. <foreach collection="oredCriteria" item="criteria" separator="or" >
  21. <if test="criteria.valid" >
  22. <trim prefix="(" suffix=")" prefixOverrides="and" >
  23. <foreach collection="criteria.criteria" item="criterion" >
  24. <choose >
  25. <when test="criterion.noValue" >
  26. and ${criterion.condition}
  27. </when>
  28. <when test="criterion.singleValue" >
  29. and ${criterion.condition} #{criterion.value}
  30. </when>
  31. <when test="criterion.betweenValue" >
  32. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  33. </when>
  34. <when test="criterion.listValue" >
  35. and ${criterion.condition}
  36. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  37. #{listItem}
  38. </foreach>
  39. </when>
  40. </choose>
  41. </foreach>
  42. </trim>
  43. </if>
  44. </foreach>
  45. </where>
  46. </sql>
  47. <sql id="Update_By_Example_Where_Clause" >
  48. <!--
  49. WARNING - @mbggenerated
  50. This element is automatically generated by MyBatis Generator, do not modify.
  51. -->
  52. <where >
  53. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  54. <if test="criteria.valid" >
  55. <trim prefix="(" suffix=")" prefixOverrides="and" >
  56. <foreach collection="criteria.criteria" item="criterion" >
  57. <choose >
  58. <when test="criterion.noValue" >
  59. and ${criterion.condition}
  60. </when>
  61. <when test="criterion.singleValue" >
  62. and ${criterion.condition} #{criterion.value}
  63. </when>
  64. <when test="criterion.betweenValue" >
  65. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  66. </when>
  67. <when test="criterion.listValue" >
  68. and ${criterion.condition}
  69. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  70. #{listItem}
  71. </foreach>
  72. </when>
  73. </choose>
  74. </foreach>
  75. </trim>
  76. </if>
  77. </foreach>
  78. </where>
  79. </sql>
  80. <sql id="Base_Column_List" >
  81. <!--
  82. WARNING - @mbggenerated
  83. This element is automatically generated by MyBatis Generator, do not modify.
  84. -->
  85. ECT_SESSIONID, ECT_USERID, ECT_LOGONTIME, ECT_SERVER
  86. </sql>
  87. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImEntryCtrlExample" >
  88. <!--
  89. WARNING - @mbggenerated
  90. This element is automatically generated by MyBatis Generator, do not modify.
  91. -->
  92. select
  93. <if test="distinct" >
  94. distinct
  95. </if>
  96. <include refid="Base_Column_List" />
  97. from im_entry_ctrl
  98. <if test="_parameter != null" >
  99. <include refid="Example_Where_Clause" />
  100. </if>
  101. <if test="orderByClause != null" >
  102. order by ${orderByClause}
  103. </if>
  104. </select>
  105. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImEntryCtrlKey" >
  106. <!--
  107. WARNING - @mbggenerated
  108. This element is automatically generated by MyBatis Generator, do not modify.
  109. -->
  110. select
  111. <include refid="Base_Column_List" />
  112. from im_entry_ctrl
  113. where ECT_SESSIONID = #{sessionid,jdbcType=VARCHAR}
  114. and ECT_USERID = #{userid,jdbcType=VARCHAR}
  115. </select>
  116. <delete id="deleteByPrimaryKey" parameterType="com.minpay.db.table.model.ImEntryCtrlKey" >
  117. <!--
  118. WARNING - @mbggenerated
  119. This element is automatically generated by MyBatis Generator, do not modify.
  120. -->
  121. delete from im_entry_ctrl
  122. where ECT_SESSIONID = #{sessionid,jdbcType=VARCHAR}
  123. and ECT_USERID = #{userid,jdbcType=VARCHAR}
  124. </delete>
  125. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImEntryCtrlExample" >
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. delete from im_entry_ctrl
  131. <if test="_parameter != null" >
  132. <include refid="Example_Where_Clause" />
  133. </if>
  134. </delete>
  135. <insert id="insert" parameterType="com.minpay.db.table.model.ImEntryCtrl" >
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. insert into im_entry_ctrl (ECT_SESSIONID, ECT_USERID, ECT_LOGONTIME,
  141. ECT_SERVER)
  142. values (#{sessionid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{logontime,jdbcType=CHAR},
  143. #{server,jdbcType=VARCHAR})
  144. </insert>
  145. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImEntryCtrl" >
  146. <!--
  147. WARNING - @mbggenerated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. -->
  150. insert into im_entry_ctrl
  151. <trim prefix="(" suffix=")" suffixOverrides="," >
  152. <if test="sessionid != null" >
  153. ECT_SESSIONID,
  154. </if>
  155. <if test="userid != null" >
  156. ECT_USERID,
  157. </if>
  158. <if test="logontime != null" >
  159. ECT_LOGONTIME,
  160. </if>
  161. <if test="server != null" >
  162. ECT_SERVER,
  163. </if>
  164. </trim>
  165. <trim prefix="values (" suffix=")" suffixOverrides="," >
  166. <if test="sessionid != null" >
  167. #{sessionid,jdbcType=VARCHAR},
  168. </if>
  169. <if test="userid != null" >
  170. #{userid,jdbcType=VARCHAR},
  171. </if>
  172. <if test="logontime != null" >
  173. #{logontime,jdbcType=CHAR},
  174. </if>
  175. <if test="server != null" >
  176. #{server,jdbcType=VARCHAR},
  177. </if>
  178. </trim>
  179. </insert>
  180. <select id="countByExample" parameterType="com.minpay.db.table.model.ImEntryCtrlExample" resultType="java.lang.Integer" >
  181. <!--
  182. WARNING - @mbggenerated
  183. This element is automatically generated by MyBatis Generator, do not modify.
  184. -->
  185. select count(*) from im_entry_ctrl
  186. <if test="_parameter != null" >
  187. <include refid="Example_Where_Clause" />
  188. </if>
  189. </select>
  190. <update id="updateByExampleSelective" parameterType="map" >
  191. <!--
  192. WARNING - @mbggenerated
  193. This element is automatically generated by MyBatis Generator, do not modify.
  194. -->
  195. update im_entry_ctrl
  196. <set >
  197. <if test="record.sessionid != null" >
  198. ECT_SESSIONID = #{record.sessionid,jdbcType=VARCHAR},
  199. </if>
  200. <if test="record.userid != null" >
  201. ECT_USERID = #{record.userid,jdbcType=VARCHAR},
  202. </if>
  203. <if test="record.logontime != null" >
  204. ECT_LOGONTIME = #{record.logontime,jdbcType=CHAR},
  205. </if>
  206. <if test="record.server != null" >
  207. ECT_SERVER = #{record.server,jdbcType=VARCHAR},
  208. </if>
  209. </set>
  210. <if test="_parameter != null" >
  211. <include refid="Update_By_Example_Where_Clause" />
  212. </if>
  213. </update>
  214. <update id="updateByExample" parameterType="map" >
  215. <!--
  216. WARNING - @mbggenerated
  217. This element is automatically generated by MyBatis Generator, do not modify.
  218. -->
  219. update im_entry_ctrl
  220. set ECT_SESSIONID = #{record.sessionid,jdbcType=VARCHAR},
  221. ECT_USERID = #{record.userid,jdbcType=VARCHAR},
  222. ECT_LOGONTIME = #{record.logontime,jdbcType=CHAR},
  223. ECT_SERVER = #{record.server,jdbcType=VARCHAR}
  224. <if test="_parameter != null" >
  225. <include refid="Update_By_Example_Where_Clause" />
  226. </if>
  227. </update>
  228. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImEntryCtrl" >
  229. <!--
  230. WARNING - @mbggenerated
  231. This element is automatically generated by MyBatis Generator, do not modify.
  232. -->
  233. update im_entry_ctrl
  234. <set >
  235. <if test="logontime != null" >
  236. ECT_LOGONTIME = #{logontime,jdbcType=CHAR},
  237. </if>
  238. <if test="server != null" >
  239. ECT_SERVER = #{server,jdbcType=VARCHAR},
  240. </if>
  241. </set>
  242. where ECT_SESSIONID = #{sessionid,jdbcType=VARCHAR}
  243. and ECT_USERID = #{userid,jdbcType=VARCHAR}
  244. </update>
  245. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImEntryCtrl" >
  246. <!--
  247. WARNING - @mbggenerated
  248. This element is automatically generated by MyBatis Generator, do not modify.
  249. -->
  250. update im_entry_ctrl
  251. set ECT_LOGONTIME = #{logontime,jdbcType=CHAR},
  252. ECT_SERVER = #{server,jdbcType=VARCHAR}
  253. where ECT_SESSIONID = #{sessionid,jdbcType=VARCHAR}
  254. and ECT_USERID = #{userid,jdbcType=VARCHAR}
  255. </update>
  256. </mapper>