ImUserMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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.ImUserMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImUser" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="USR_ID" property="id" jdbcType="VARCHAR" />
  10. <result column="USR_BRANCHID" property="branchid" jdbcType="VARCHAR" />
  11. <result column="USR_NAME" property="name" jdbcType="VARCHAR" />
  12. <result column="USR_DESC" property="desc" jdbcType="VARCHAR" />
  13. <result column="USR_CREATEDATE" property="createdate" jdbcType="VARCHAR" />
  14. <result column="USR_PHONE" property="phone" jdbcType="VARCHAR" />
  15. <result column="USR_EMAIL" property="email" jdbcType="VARCHAR" />
  16. <result column="USR_ADDRESS" property="address" jdbcType="VARCHAR" />
  17. <result column="USR_CERTTYPE" property="certtype" jdbcType="VARCHAR" />
  18. <result column="USR_SUPERIOR" property="superior" jdbcType="VARCHAR" />
  19. <result column="USR_CERTNO" property="certno" jdbcType="VARCHAR" />
  20. <result column="USR_MOBILE" property="mobile" jdbcType="VARCHAR" />
  21. <result column="USR_PWD" property="pwd" jdbcType="VARCHAR" />
  22. <result column="USR_AUTHPWD" property="authpwd" jdbcType="VARCHAR" />
  23. <result column="USR_INITPWD" property="initpwd" jdbcType="CHAR" />
  24. <result column="USR_INITAUTHPWD" property="initauthpwd" jdbcType="CHAR" />
  25. <result column="USR_STT" property="stt" jdbcType="CHAR" />
  26. <result column="USR_LASTPWDCGDATE" property="lastpwdcgdate" jdbcType="VARCHAR" />
  27. <result column="USR_LOGONNAME" property="logonname" jdbcType="VARCHAR" />
  28. <result column="USR_LASTMODPWDCGDATE" property="lastmodpwdcgdate" jdbcType="VARCHAR" />
  29. <result column="USR_IDENTITY" property="identity" jdbcType="CHAR" />
  30. <result column="USR_IMG" property="img" jdbcType="VARCHAR" />
  31. <result column="USR_TEST" property="test" jdbcType="VARCHAR" />
  32. <result column="USR_COMPANY_ID" property="companyId" jdbcType="VARCHAR" />
  33. </resultMap>
  34. <sql id="Example_Where_Clause" >
  35. <!--
  36. WARNING - @mbggenerated
  37. This element is automatically generated by MyBatis Generator, do not modify.
  38. -->
  39. <where >
  40. <foreach collection="oredCriteria" item="criteria" separator="or" >
  41. <if test="criteria.valid" >
  42. <trim prefix="(" suffix=")" prefixOverrides="and" >
  43. <foreach collection="criteria.criteria" item="criterion" >
  44. <choose >
  45. <when test="criterion.noValue" >
  46. and ${criterion.condition}
  47. </when>
  48. <when test="criterion.singleValue" >
  49. and ${criterion.condition} #{criterion.value}
  50. </when>
  51. <when test="criterion.betweenValue" >
  52. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  53. </when>
  54. <when test="criterion.listValue" >
  55. and ${criterion.condition}
  56. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  57. #{listItem}
  58. </foreach>
  59. </when>
  60. </choose>
  61. </foreach>
  62. </trim>
  63. </if>
  64. </foreach>
  65. </where>
  66. </sql>
  67. <sql id="Update_By_Example_Where_Clause" >
  68. <!--
  69. WARNING - @mbggenerated
  70. This element is automatically generated by MyBatis Generator, do not modify.
  71. -->
  72. <where >
  73. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  74. <if test="criteria.valid" >
  75. <trim prefix="(" suffix=")" prefixOverrides="and" >
  76. <foreach collection="criteria.criteria" item="criterion" >
  77. <choose >
  78. <when test="criterion.noValue" >
  79. and ${criterion.condition}
  80. </when>
  81. <when test="criterion.singleValue" >
  82. and ${criterion.condition} #{criterion.value}
  83. </when>
  84. <when test="criterion.betweenValue" >
  85. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  86. </when>
  87. <when test="criterion.listValue" >
  88. and ${criterion.condition}
  89. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  90. #{listItem}
  91. </foreach>
  92. </when>
  93. </choose>
  94. </foreach>
  95. </trim>
  96. </if>
  97. </foreach>
  98. </where>
  99. </sql>
  100. <sql id="Base_Column_List" >
  101. <!--
  102. WARNING - @mbggenerated
  103. This element is automatically generated by MyBatis Generator, do not modify.
  104. -->
  105. USR_ID, USR_BRANCHID, USR_NAME, USR_DESC, USR_CREATEDATE, USR_PHONE, USR_EMAIL, USR_ADDRESS,
  106. USR_CERTTYPE, USR_SUPERIOR, USR_CERTNO, USR_MOBILE, USR_PWD, USR_AUTHPWD, USR_INITPWD,
  107. USR_INITAUTHPWD, USR_STT, USR_LASTPWDCGDATE, USR_LOGONNAME, USR_LASTMODPWDCGDATE,
  108. USR_IDENTITY, USR_IMG, USR_TEST, USR_COMPANY_ID
  109. </sql>
  110. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ImUserExample" >
  111. <!--
  112. WARNING - @mbggenerated
  113. This element is automatically generated by MyBatis Generator, do not modify.
  114. -->
  115. select
  116. <if test="distinct" >
  117. distinct
  118. </if>
  119. <include refid="Base_Column_List" />
  120. from im_user
  121. <if test="_parameter != null" >
  122. <include refid="Example_Where_Clause" />
  123. </if>
  124. <if test="orderByClause != null" >
  125. order by ${orderByClause}
  126. </if>
  127. </select>
  128. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  129. <!--
  130. WARNING - @mbggenerated
  131. This element is automatically generated by MyBatis Generator, do not modify.
  132. -->
  133. select
  134. <include refid="Base_Column_List" />
  135. from im_user
  136. where USR_ID = #{id,jdbcType=VARCHAR}
  137. </select>
  138. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  139. <!--
  140. WARNING - @mbggenerated
  141. This element is automatically generated by MyBatis Generator, do not modify.
  142. -->
  143. delete from im_user
  144. where USR_ID = #{id,jdbcType=VARCHAR}
  145. </delete>
  146. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImUserExample" >
  147. <!--
  148. WARNING - @mbggenerated
  149. This element is automatically generated by MyBatis Generator, do not modify.
  150. -->
  151. delete from im_user
  152. <if test="_parameter != null" >
  153. <include refid="Example_Where_Clause" />
  154. </if>
  155. </delete>
  156. <insert id="insert" parameterType="com.minpay.db.table.model.ImUser" >
  157. <!--
  158. WARNING - @mbggenerated
  159. This element is automatically generated by MyBatis Generator, do not modify.
  160. -->
  161. insert into im_user (USR_ID, USR_BRANCHID, USR_NAME,
  162. USR_DESC, USR_CREATEDATE, USR_PHONE,
  163. USR_EMAIL, USR_ADDRESS, USR_CERTTYPE,
  164. USR_SUPERIOR, USR_CERTNO, USR_MOBILE,
  165. USR_PWD, USR_AUTHPWD, USR_INITPWD,
  166. USR_INITAUTHPWD, USR_STT, USR_LASTPWDCGDATE,
  167. USR_LOGONNAME, USR_LASTMODPWDCGDATE, USR_IDENTITY,
  168. USR_IMG, USR_TEST, USR_COMPANY_ID
  169. )
  170. values (#{id,jdbcType=VARCHAR}, #{branchid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  171. #{desc,jdbcType=VARCHAR}, #{createdate,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
  172. #{email,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{certtype,jdbcType=VARCHAR},
  173. #{superior,jdbcType=VARCHAR}, #{certno,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
  174. #{pwd,jdbcType=VARCHAR}, #{authpwd,jdbcType=VARCHAR}, #{initpwd,jdbcType=CHAR},
  175. #{initauthpwd,jdbcType=CHAR}, #{stt,jdbcType=CHAR}, #{lastpwdcgdate,jdbcType=VARCHAR},
  176. #{logonname,jdbcType=VARCHAR}, #{lastmodpwdcgdate,jdbcType=VARCHAR}, #{identity,jdbcType=CHAR},
  177. #{img,jdbcType=VARCHAR}, #{test,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}
  178. )
  179. </insert>
  180. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImUser" >
  181. <!--
  182. WARNING - @mbggenerated
  183. This element is automatically generated by MyBatis Generator, do not modify.
  184. -->
  185. insert into im_user
  186. <trim prefix="(" suffix=")" suffixOverrides="," >
  187. <if test="id != null" >
  188. USR_ID,
  189. </if>
  190. <if test="branchid != null" >
  191. USR_BRANCHID,
  192. </if>
  193. <if test="name != null" >
  194. USR_NAME,
  195. </if>
  196. <if test="desc != null" >
  197. USR_DESC,
  198. </if>
  199. <if test="createdate != null" >
  200. USR_CREATEDATE,
  201. </if>
  202. <if test="phone != null" >
  203. USR_PHONE,
  204. </if>
  205. <if test="email != null" >
  206. USR_EMAIL,
  207. </if>
  208. <if test="address != null" >
  209. USR_ADDRESS,
  210. </if>
  211. <if test="certtype != null" >
  212. USR_CERTTYPE,
  213. </if>
  214. <if test="superior != null" >
  215. USR_SUPERIOR,
  216. </if>
  217. <if test="certno != null" >
  218. USR_CERTNO,
  219. </if>
  220. <if test="mobile != null" >
  221. USR_MOBILE,
  222. </if>
  223. <if test="pwd != null" >
  224. USR_PWD,
  225. </if>
  226. <if test="authpwd != null" >
  227. USR_AUTHPWD,
  228. </if>
  229. <if test="initpwd != null" >
  230. USR_INITPWD,
  231. </if>
  232. <if test="initauthpwd != null" >
  233. USR_INITAUTHPWD,
  234. </if>
  235. <if test="stt != null" >
  236. USR_STT,
  237. </if>
  238. <if test="lastpwdcgdate != null" >
  239. USR_LASTPWDCGDATE,
  240. </if>
  241. <if test="logonname != null" >
  242. USR_LOGONNAME,
  243. </if>
  244. <if test="lastmodpwdcgdate != null" >
  245. USR_LASTMODPWDCGDATE,
  246. </if>
  247. <if test="identity != null" >
  248. USR_IDENTITY,
  249. </if>
  250. <if test="img != null" >
  251. USR_IMG,
  252. </if>
  253. <if test="test != null" >
  254. USR_TEST,
  255. </if>
  256. <if test="companyId != null" >
  257. USR_COMPANY_ID,
  258. </if>
  259. </trim>
  260. <trim prefix="values (" suffix=")" suffixOverrides="," >
  261. <if test="id != null" >
  262. #{id,jdbcType=VARCHAR},
  263. </if>
  264. <if test="branchid != null" >
  265. #{branchid,jdbcType=VARCHAR},
  266. </if>
  267. <if test="name != null" >
  268. #{name,jdbcType=VARCHAR},
  269. </if>
  270. <if test="desc != null" >
  271. #{desc,jdbcType=VARCHAR},
  272. </if>
  273. <if test="createdate != null" >
  274. #{createdate,jdbcType=VARCHAR},
  275. </if>
  276. <if test="phone != null" >
  277. #{phone,jdbcType=VARCHAR},
  278. </if>
  279. <if test="email != null" >
  280. #{email,jdbcType=VARCHAR},
  281. </if>
  282. <if test="address != null" >
  283. #{address,jdbcType=VARCHAR},
  284. </if>
  285. <if test="certtype != null" >
  286. #{certtype,jdbcType=VARCHAR},
  287. </if>
  288. <if test="superior != null" >
  289. #{superior,jdbcType=VARCHAR},
  290. </if>
  291. <if test="certno != null" >
  292. #{certno,jdbcType=VARCHAR},
  293. </if>
  294. <if test="mobile != null" >
  295. #{mobile,jdbcType=VARCHAR},
  296. </if>
  297. <if test="pwd != null" >
  298. #{pwd,jdbcType=VARCHAR},
  299. </if>
  300. <if test="authpwd != null" >
  301. #{authpwd,jdbcType=VARCHAR},
  302. </if>
  303. <if test="initpwd != null" >
  304. #{initpwd,jdbcType=CHAR},
  305. </if>
  306. <if test="initauthpwd != null" >
  307. #{initauthpwd,jdbcType=CHAR},
  308. </if>
  309. <if test="stt != null" >
  310. #{stt,jdbcType=CHAR},
  311. </if>
  312. <if test="lastpwdcgdate != null" >
  313. #{lastpwdcgdate,jdbcType=VARCHAR},
  314. </if>
  315. <if test="logonname != null" >
  316. #{logonname,jdbcType=VARCHAR},
  317. </if>
  318. <if test="lastmodpwdcgdate != null" >
  319. #{lastmodpwdcgdate,jdbcType=VARCHAR},
  320. </if>
  321. <if test="identity != null" >
  322. #{identity,jdbcType=CHAR},
  323. </if>
  324. <if test="img != null" >
  325. #{img,jdbcType=VARCHAR},
  326. </if>
  327. <if test="test != null" >
  328. #{test,jdbcType=VARCHAR},
  329. </if>
  330. <if test="companyId != null" >
  331. #{companyId,jdbcType=VARCHAR},
  332. </if>
  333. </trim>
  334. </insert>
  335. <select id="countByExample" parameterType="com.minpay.db.table.model.ImUserExample" resultType="java.lang.Integer" >
  336. <!--
  337. WARNING - @mbggenerated
  338. This element is automatically generated by MyBatis Generator, do not modify.
  339. -->
  340. select count(*) from im_user
  341. <if test="_parameter != null" >
  342. <include refid="Example_Where_Clause" />
  343. </if>
  344. </select>
  345. <update id="updateByExampleSelective" parameterType="map" >
  346. <!--
  347. WARNING - @mbggenerated
  348. This element is automatically generated by MyBatis Generator, do not modify.
  349. -->
  350. update im_user
  351. <set >
  352. <if test="record.id != null" >
  353. USR_ID = #{record.id,jdbcType=VARCHAR},
  354. </if>
  355. <if test="record.branchid != null" >
  356. USR_BRANCHID = #{record.branchid,jdbcType=VARCHAR},
  357. </if>
  358. <if test="record.name != null" >
  359. USR_NAME = #{record.name,jdbcType=VARCHAR},
  360. </if>
  361. <if test="record.desc != null" >
  362. USR_DESC = #{record.desc,jdbcType=VARCHAR},
  363. </if>
  364. <if test="record.createdate != null" >
  365. USR_CREATEDATE = #{record.createdate,jdbcType=VARCHAR},
  366. </if>
  367. <if test="record.phone != null" >
  368. USR_PHONE = #{record.phone,jdbcType=VARCHAR},
  369. </if>
  370. <if test="record.email != null" >
  371. USR_EMAIL = #{record.email,jdbcType=VARCHAR},
  372. </if>
  373. <if test="record.address != null" >
  374. USR_ADDRESS = #{record.address,jdbcType=VARCHAR},
  375. </if>
  376. <if test="record.certtype != null" >
  377. USR_CERTTYPE = #{record.certtype,jdbcType=VARCHAR},
  378. </if>
  379. <if test="record.superior != null" >
  380. USR_SUPERIOR = #{record.superior,jdbcType=VARCHAR},
  381. </if>
  382. <if test="record.certno != null" >
  383. USR_CERTNO = #{record.certno,jdbcType=VARCHAR},
  384. </if>
  385. <if test="record.mobile != null" >
  386. USR_MOBILE = #{record.mobile,jdbcType=VARCHAR},
  387. </if>
  388. <if test="record.pwd != null" >
  389. USR_PWD = #{record.pwd,jdbcType=VARCHAR},
  390. </if>
  391. <if test="record.authpwd != null" >
  392. USR_AUTHPWD = #{record.authpwd,jdbcType=VARCHAR},
  393. </if>
  394. <if test="record.initpwd != null" >
  395. USR_INITPWD = #{record.initpwd,jdbcType=CHAR},
  396. </if>
  397. <if test="record.initauthpwd != null" >
  398. USR_INITAUTHPWD = #{record.initauthpwd,jdbcType=CHAR},
  399. </if>
  400. <if test="record.stt != null" >
  401. USR_STT = #{record.stt,jdbcType=CHAR},
  402. </if>
  403. <if test="record.lastpwdcgdate != null" >
  404. USR_LASTPWDCGDATE = #{record.lastpwdcgdate,jdbcType=VARCHAR},
  405. </if>
  406. <if test="record.logonname != null" >
  407. USR_LOGONNAME = #{record.logonname,jdbcType=VARCHAR},
  408. </if>
  409. <if test="record.lastmodpwdcgdate != null" >
  410. USR_LASTMODPWDCGDATE = #{record.lastmodpwdcgdate,jdbcType=VARCHAR},
  411. </if>
  412. <if test="record.identity != null" >
  413. USR_IDENTITY = #{record.identity,jdbcType=CHAR},
  414. </if>
  415. <if test="record.img != null" >
  416. USR_IMG = #{record.img,jdbcType=VARCHAR},
  417. </if>
  418. <if test="record.test != null" >
  419. USR_TEST = #{record.test,jdbcType=VARCHAR},
  420. </if>
  421. <if test="record.companyId != null" >
  422. USR_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  423. </if>
  424. </set>
  425. <if test="_parameter != null" >
  426. <include refid="Update_By_Example_Where_Clause" />
  427. </if>
  428. </update>
  429. <update id="updateByExample" parameterType="map" >
  430. <!--
  431. WARNING - @mbggenerated
  432. This element is automatically generated by MyBatis Generator, do not modify.
  433. -->
  434. update im_user
  435. set USR_ID = #{record.id,jdbcType=VARCHAR},
  436. USR_BRANCHID = #{record.branchid,jdbcType=VARCHAR},
  437. USR_NAME = #{record.name,jdbcType=VARCHAR},
  438. USR_DESC = #{record.desc,jdbcType=VARCHAR},
  439. USR_CREATEDATE = #{record.createdate,jdbcType=VARCHAR},
  440. USR_PHONE = #{record.phone,jdbcType=VARCHAR},
  441. USR_EMAIL = #{record.email,jdbcType=VARCHAR},
  442. USR_ADDRESS = #{record.address,jdbcType=VARCHAR},
  443. USR_CERTTYPE = #{record.certtype,jdbcType=VARCHAR},
  444. USR_SUPERIOR = #{record.superior,jdbcType=VARCHAR},
  445. USR_CERTNO = #{record.certno,jdbcType=VARCHAR},
  446. USR_MOBILE = #{record.mobile,jdbcType=VARCHAR},
  447. USR_PWD = #{record.pwd,jdbcType=VARCHAR},
  448. USR_AUTHPWD = #{record.authpwd,jdbcType=VARCHAR},
  449. USR_INITPWD = #{record.initpwd,jdbcType=CHAR},
  450. USR_INITAUTHPWD = #{record.initauthpwd,jdbcType=CHAR},
  451. USR_STT = #{record.stt,jdbcType=CHAR},
  452. USR_LASTPWDCGDATE = #{record.lastpwdcgdate,jdbcType=VARCHAR},
  453. USR_LOGONNAME = #{record.logonname,jdbcType=VARCHAR},
  454. USR_LASTMODPWDCGDATE = #{record.lastmodpwdcgdate,jdbcType=VARCHAR},
  455. USR_IDENTITY = #{record.identity,jdbcType=CHAR},
  456. USR_IMG = #{record.img,jdbcType=VARCHAR},
  457. USR_TEST = #{record.test,jdbcType=VARCHAR},
  458. USR_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR}
  459. <if test="_parameter != null" >
  460. <include refid="Update_By_Example_Where_Clause" />
  461. </if>
  462. </update>
  463. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImUser" >
  464. <!--
  465. WARNING - @mbggenerated
  466. This element is automatically generated by MyBatis Generator, do not modify.
  467. -->
  468. update im_user
  469. <set >
  470. <if test="branchid != null" >
  471. USR_BRANCHID = #{branchid,jdbcType=VARCHAR},
  472. </if>
  473. <if test="name != null" >
  474. USR_NAME = #{name,jdbcType=VARCHAR},
  475. </if>
  476. <if test="desc != null" >
  477. USR_DESC = #{desc,jdbcType=VARCHAR},
  478. </if>
  479. <if test="createdate != null" >
  480. USR_CREATEDATE = #{createdate,jdbcType=VARCHAR},
  481. </if>
  482. <if test="phone != null" >
  483. USR_PHONE = #{phone,jdbcType=VARCHAR},
  484. </if>
  485. <if test="email != null" >
  486. USR_EMAIL = #{email,jdbcType=VARCHAR},
  487. </if>
  488. <if test="address != null" >
  489. USR_ADDRESS = #{address,jdbcType=VARCHAR},
  490. </if>
  491. <if test="certtype != null" >
  492. USR_CERTTYPE = #{certtype,jdbcType=VARCHAR},
  493. </if>
  494. <if test="superior != null" >
  495. USR_SUPERIOR = #{superior,jdbcType=VARCHAR},
  496. </if>
  497. <if test="certno != null" >
  498. USR_CERTNO = #{certno,jdbcType=VARCHAR},
  499. </if>
  500. <if test="mobile != null" >
  501. USR_MOBILE = #{mobile,jdbcType=VARCHAR},
  502. </if>
  503. <if test="pwd != null" >
  504. USR_PWD = #{pwd,jdbcType=VARCHAR},
  505. </if>
  506. <if test="authpwd != null" >
  507. USR_AUTHPWD = #{authpwd,jdbcType=VARCHAR},
  508. </if>
  509. <if test="initpwd != null" >
  510. USR_INITPWD = #{initpwd,jdbcType=CHAR},
  511. </if>
  512. <if test="initauthpwd != null" >
  513. USR_INITAUTHPWD = #{initauthpwd,jdbcType=CHAR},
  514. </if>
  515. <if test="stt != null" >
  516. USR_STT = #{stt,jdbcType=CHAR},
  517. </if>
  518. <if test="lastpwdcgdate != null" >
  519. USR_LASTPWDCGDATE = #{lastpwdcgdate,jdbcType=VARCHAR},
  520. </if>
  521. <if test="logonname != null" >
  522. USR_LOGONNAME = #{logonname,jdbcType=VARCHAR},
  523. </if>
  524. <if test="lastmodpwdcgdate != null" >
  525. USR_LASTMODPWDCGDATE = #{lastmodpwdcgdate,jdbcType=VARCHAR},
  526. </if>
  527. <if test="identity != null" >
  528. USR_IDENTITY = #{identity,jdbcType=CHAR},
  529. </if>
  530. <if test="img != null" >
  531. USR_IMG = #{img,jdbcType=VARCHAR},
  532. </if>
  533. <if test="test != null" >
  534. USR_TEST = #{test,jdbcType=VARCHAR},
  535. </if>
  536. <if test="companyId != null" >
  537. USR_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  538. </if>
  539. </set>
  540. where USR_ID = #{id,jdbcType=VARCHAR}
  541. </update>
  542. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImUser" >
  543. <!--
  544. WARNING - @mbggenerated
  545. This element is automatically generated by MyBatis Generator, do not modify.
  546. -->
  547. update im_user
  548. set USR_BRANCHID = #{branchid,jdbcType=VARCHAR},
  549. USR_NAME = #{name,jdbcType=VARCHAR},
  550. USR_DESC = #{desc,jdbcType=VARCHAR},
  551. USR_CREATEDATE = #{createdate,jdbcType=VARCHAR},
  552. USR_PHONE = #{phone,jdbcType=VARCHAR},
  553. USR_EMAIL = #{email,jdbcType=VARCHAR},
  554. USR_ADDRESS = #{address,jdbcType=VARCHAR},
  555. USR_CERTTYPE = #{certtype,jdbcType=VARCHAR},
  556. USR_SUPERIOR = #{superior,jdbcType=VARCHAR},
  557. USR_CERTNO = #{certno,jdbcType=VARCHAR},
  558. USR_MOBILE = #{mobile,jdbcType=VARCHAR},
  559. USR_PWD = #{pwd,jdbcType=VARCHAR},
  560. USR_AUTHPWD = #{authpwd,jdbcType=VARCHAR},
  561. USR_INITPWD = #{initpwd,jdbcType=CHAR},
  562. USR_INITAUTHPWD = #{initauthpwd,jdbcType=CHAR},
  563. USR_STT = #{stt,jdbcType=CHAR},
  564. USR_LASTPWDCGDATE = #{lastpwdcgdate,jdbcType=VARCHAR},
  565. USR_LOGONNAME = #{logonname,jdbcType=VARCHAR},
  566. USR_LASTMODPWDCGDATE = #{lastmodpwdcgdate,jdbcType=VARCHAR},
  567. USR_IDENTITY = #{identity,jdbcType=CHAR},
  568. USR_IMG = #{img,jdbcType=VARCHAR},
  569. USR_TEST = #{test,jdbcType=VARCHAR},
  570. USR_COMPANY_ID = #{companyId,jdbcType=VARCHAR}
  571. where USR_ID = #{id,jdbcType=VARCHAR}
  572. </update>
  573. </mapper>