ImLogonCtrlMapper.xml 14 KB

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