PcSiteUserMapper.xml 20 KB

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