PcPostMapper.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  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.PcPostMapper">
  4. <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcPost">
  5. <id column="PostID" jdbcType="VARCHAR" property="postID" />
  6. <result column="ProfessionID" jdbcType="VARCHAR" property="professionID" />
  7. <result column="WorkCode" jdbcType="VARCHAR" property="workCode" />
  8. <result column="WorkName" jdbcType="VARCHAR" property="workName" />
  9. <result column="RecruitCount" jdbcType="INTEGER" property="recruitCount" />
  10. <result column="CompanyID" jdbcType="VARCHAR" property="companyID" />
  11. <result column="PostName" jdbcType="VARCHAR" property="postName" />
  12. <result column="RecordStatus" jdbcType="INTEGER" property="recordStatus" />
  13. <result column="WorkNature" jdbcType="VARCHAR" property="workNature" />
  14. <result column="ValidDay" jdbcType="INTEGER" property="validDay" />
  15. <result column="WorkYear" jdbcType="INTEGER" property="workYear" />
  16. <result column="CultureRank" jdbcType="INTEGER" property="cultureRank" />
  17. <result column="MaxSalary" jdbcType="DECIMAL" property="maxSalary" />
  18. <result column="MinSalary" jdbcType="DECIMAL" property="minSalary" />
  19. <result column="welfare" jdbcType="VARCHAR" property="welfare" />
  20. <result column="UserName" jdbcType="VARCHAR" property="userName" />
  21. <result column="UserMobile" jdbcType="VARCHAR" property="userMobile" />
  22. <result column="PostEmail" jdbcType="VARCHAR" property="postEmail" />
  23. <result column="WorkTime" jdbcType="INTEGER" property="workTime" />
  24. <result column="IsTrail" jdbcType="BIT" property="isTrail" />
  25. <result column="TrailMonths" jdbcType="INTEGER" property="trailMonths" />
  26. <result column="TrailMaxSalary" jdbcType="DECIMAL" property="trailMaxSalary" />
  27. <result column="TrailMinSalary" jdbcType="DECIMAL" property="trailMinSalary" />
  28. <result column="CreateUserID" jdbcType="VARCHAR" property="createUserID" />
  29. <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
  30. <result column="ModifyUserID" jdbcType="VARCHAR" property="modifyUserID" />
  31. <result column="ModifyTime" jdbcType="TIMESTAMP" property="modifyTime" />
  32. <result column="ValidTime" jdbcType="TIMESTAMP" property="validTime" />
  33. <result column="StartTime" jdbcType="TIMESTAMP" property="startTime" />
  34. <result column="EndTime" jdbcType="TIMESTAMP" property="endTime" />
  35. <result column="JobPlace" jdbcType="VARCHAR" property="jobPlace" />
  36. <result column="ContactName" jdbcType="VARCHAR" property="contactName" />
  37. <result column="ContactMobile" jdbcType="VARCHAR" property="contactMobile" />
  38. <result column="ContactEmail" jdbcType="VARCHAR" property="contactEmail" />
  39. <result column="WorkNatureID" jdbcType="INTEGER" property="workNatureID" />
  40. <result column="TagID" jdbcType="INTEGER" property="tagID" />
  41. <result column="OracleTableID" jdbcType="VARCHAR" property="oracleTableID" />
  42. </resultMap>
  43. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hz.employmentsite.model.PcPost">
  44. <result column="PostDesc" jdbcType="LONGVARCHAR" property="postDesc" />
  45. </resultMap>
  46. <sql id="Example_Where_Clause">
  47. <where>
  48. <foreach collection="oredCriteria" item="criteria" separator="or">
  49. <if test="criteria.valid">
  50. <trim prefix="(" prefixOverrides="and" suffix=")">
  51. <foreach collection="criteria.criteria" item="criterion">
  52. <choose>
  53. <when test="criterion.noValue">
  54. and ${criterion.condition}
  55. </when>
  56. <when test="criterion.singleValue">
  57. and ${criterion.condition} #{criterion.value}
  58. </when>
  59. <when test="criterion.betweenValue">
  60. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  61. </when>
  62. <when test="criterion.listValue">
  63. and ${criterion.condition}
  64. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  65. #{listItem}
  66. </foreach>
  67. </when>
  68. </choose>
  69. </foreach>
  70. </trim>
  71. </if>
  72. </foreach>
  73. </where>
  74. </sql>
  75. <sql id="Update_By_Example_Where_Clause">
  76. <where>
  77. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  78. <if test="criteria.valid">
  79. <trim prefix="(" prefixOverrides="and" suffix=")">
  80. <foreach collection="criteria.criteria" item="criterion">
  81. <choose>
  82. <when test="criterion.noValue">
  83. and ${criterion.condition}
  84. </when>
  85. <when test="criterion.singleValue">
  86. and ${criterion.condition} #{criterion.value}
  87. </when>
  88. <when test="criterion.betweenValue">
  89. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  90. </when>
  91. <when test="criterion.listValue">
  92. and ${criterion.condition}
  93. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  94. #{listItem}
  95. </foreach>
  96. </when>
  97. </choose>
  98. </foreach>
  99. </trim>
  100. </if>
  101. </foreach>
  102. </where>
  103. </sql>
  104. <sql id="Base_Column_List">
  105. PostID, ProfessionID, WorkCode, WorkName, RecruitCount, CompanyID, PostName, RecordStatus,
  106. WorkNature, ValidDay, WorkYear, CultureRank, MaxSalary, MinSalary, welfare, UserName,
  107. UserMobile, PostEmail, WorkTime, IsTrail, TrailMonths, TrailMaxSalary, TrailMinSalary,
  108. CreateUserID, CreateTime, ModifyUserID, ModifyTime, ValidTime, StartTime, EndTime,
  109. JobPlace, ContactName, ContactMobile, ContactEmail, WorkNatureID, TagID, OracleTableID
  110. </sql>
  111. <sql id="Blob_Column_List">
  112. PostDesc
  113. </sql>
  114. <select id="selectByExampleWithBLOBs" parameterType="com.hz.employmentsite.model.PcPostExample" resultMap="ResultMapWithBLOBs">
  115. select
  116. <if test="distinct">
  117. distinct
  118. </if>
  119. <include refid="Base_Column_List" />
  120. ,
  121. <include refid="Blob_Column_List" />
  122. from pc_post
  123. <if test="_parameter != null">
  124. <include refid="Example_Where_Clause" />
  125. </if>
  126. <if test="orderByClause != null">
  127. order by ${orderByClause}
  128. </if>
  129. </select>
  130. <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcPostExample" resultMap="BaseResultMap">
  131. select
  132. <if test="distinct">
  133. distinct
  134. </if>
  135. <include refid="Base_Column_List" />
  136. from pc_post
  137. <if test="_parameter != null">
  138. <include refid="Example_Where_Clause" />
  139. </if>
  140. <if test="orderByClause != null">
  141. order by ${orderByClause}
  142. </if>
  143. </select>
  144. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
  145. select
  146. <include refid="Base_Column_List" />
  147. ,
  148. <include refid="Blob_Column_List" />
  149. from pc_post
  150. where PostID = #{postID,jdbcType=VARCHAR}
  151. </select>
  152. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  153. delete from pc_post
  154. where PostID = #{postID,jdbcType=VARCHAR}
  155. </delete>
  156. <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcPostExample">
  157. delete from pc_post
  158. <if test="_parameter != null">
  159. <include refid="Example_Where_Clause" />
  160. </if>
  161. </delete>
  162. <insert id="insert" parameterType="com.hz.employmentsite.model.PcPost">
  163. insert into pc_post (PostID, ProfessionID, WorkCode,
  164. WorkName, RecruitCount, CompanyID,
  165. PostName, RecordStatus, WorkNature,
  166. ValidDay, WorkYear, CultureRank,
  167. MaxSalary, MinSalary, welfare,
  168. UserName, UserMobile, PostEmail,
  169. WorkTime, IsTrail, TrailMonths,
  170. TrailMaxSalary, TrailMinSalary, CreateUserID,
  171. CreateTime, ModifyUserID, ModifyTime,
  172. ValidTime, StartTime, EndTime,
  173. JobPlace, ContactName, ContactMobile,
  174. ContactEmail, WorkNatureID, TagID,
  175. OracleTableID, PostDesc)
  176. values (#{postID,jdbcType=VARCHAR}, #{professionID,jdbcType=VARCHAR}, #{workCode,jdbcType=VARCHAR},
  177. #{workName,jdbcType=VARCHAR}, #{recruitCount,jdbcType=INTEGER}, #{companyID,jdbcType=VARCHAR},
  178. #{postName,jdbcType=VARCHAR}, #{recordStatus,jdbcType=INTEGER}, #{workNature,jdbcType=VARCHAR},
  179. #{validDay,jdbcType=INTEGER}, #{workYear,jdbcType=INTEGER}, #{cultureRank,jdbcType=INTEGER},
  180. #{maxSalary,jdbcType=DECIMAL}, #{minSalary,jdbcType=DECIMAL}, #{welfare,jdbcType=VARCHAR},
  181. #{userName,jdbcType=VARCHAR}, #{userMobile,jdbcType=VARCHAR}, #{postEmail,jdbcType=VARCHAR},
  182. #{workTime,jdbcType=INTEGER}, #{isTrail,jdbcType=BIT}, #{trailMonths,jdbcType=INTEGER},
  183. #{trailMaxSalary,jdbcType=DECIMAL}, #{trailMinSalary,jdbcType=DECIMAL}, #{createUserID,jdbcType=VARCHAR},
  184. #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP},
  185. #{validTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
  186. #{jobPlace,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
  187. #{contactEmail,jdbcType=VARCHAR}, #{workNatureID,jdbcType=INTEGER}, #{tagID,jdbcType=INTEGER},
  188. #{oracleTableID,jdbcType=VARCHAR}, #{postDesc,jdbcType=LONGVARCHAR})
  189. </insert>
  190. <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcPost">
  191. insert into pc_post
  192. <trim prefix="(" suffix=")" suffixOverrides=",">
  193. <if test="postID != null">
  194. PostID,
  195. </if>
  196. <if test="professionID != null">
  197. ProfessionID,
  198. </if>
  199. <if test="workCode != null">
  200. WorkCode,
  201. </if>
  202. <if test="workName != null">
  203. WorkName,
  204. </if>
  205. <if test="recruitCount != null">
  206. RecruitCount,
  207. </if>
  208. <if test="companyID != null">
  209. CompanyID,
  210. </if>
  211. <if test="postName != null">
  212. PostName,
  213. </if>
  214. <if test="recordStatus != null">
  215. RecordStatus,
  216. </if>
  217. <if test="workNature != null">
  218. WorkNature,
  219. </if>
  220. <if test="validDay != null">
  221. ValidDay,
  222. </if>
  223. <if test="workYear != null">
  224. WorkYear,
  225. </if>
  226. <if test="cultureRank != null">
  227. CultureRank,
  228. </if>
  229. <if test="maxSalary != null">
  230. MaxSalary,
  231. </if>
  232. <if test="minSalary != null">
  233. MinSalary,
  234. </if>
  235. <if test="welfare != null">
  236. welfare,
  237. </if>
  238. <if test="userName != null">
  239. UserName,
  240. </if>
  241. <if test="userMobile != null">
  242. UserMobile,
  243. </if>
  244. <if test="postEmail != null">
  245. PostEmail,
  246. </if>
  247. <if test="workTime != null">
  248. WorkTime,
  249. </if>
  250. <if test="isTrail != null">
  251. IsTrail,
  252. </if>
  253. <if test="trailMonths != null">
  254. TrailMonths,
  255. </if>
  256. <if test="trailMaxSalary != null">
  257. TrailMaxSalary,
  258. </if>
  259. <if test="trailMinSalary != null">
  260. TrailMinSalary,
  261. </if>
  262. <if test="createUserID != null">
  263. CreateUserID,
  264. </if>
  265. <if test="createTime != null">
  266. CreateTime,
  267. </if>
  268. <if test="modifyUserID != null">
  269. ModifyUserID,
  270. </if>
  271. <if test="modifyTime != null">
  272. ModifyTime,
  273. </if>
  274. <if test="validTime != null">
  275. ValidTime,
  276. </if>
  277. <if test="startTime != null">
  278. StartTime,
  279. </if>
  280. <if test="endTime != null">
  281. EndTime,
  282. </if>
  283. <if test="jobPlace != null">
  284. JobPlace,
  285. </if>
  286. <if test="contactName != null">
  287. ContactName,
  288. </if>
  289. <if test="contactMobile != null">
  290. ContactMobile,
  291. </if>
  292. <if test="contactEmail != null">
  293. ContactEmail,
  294. </if>
  295. <if test="workNatureID != null">
  296. WorkNatureID,
  297. </if>
  298. <if test="tagID != null">
  299. TagID,
  300. </if>
  301. <if test="oracleTableID != null">
  302. OracleTableID,
  303. </if>
  304. <if test="postDesc != null">
  305. PostDesc,
  306. </if>
  307. </trim>
  308. <trim prefix="values (" suffix=")" suffixOverrides=",">
  309. <if test="postID != null">
  310. #{postID,jdbcType=VARCHAR},
  311. </if>
  312. <if test="professionID != null">
  313. #{professionID,jdbcType=VARCHAR},
  314. </if>
  315. <if test="workCode != null">
  316. #{workCode,jdbcType=VARCHAR},
  317. </if>
  318. <if test="workName != null">
  319. #{workName,jdbcType=VARCHAR},
  320. </if>
  321. <if test="recruitCount != null">
  322. #{recruitCount,jdbcType=INTEGER},
  323. </if>
  324. <if test="companyID != null">
  325. #{companyID,jdbcType=VARCHAR},
  326. </if>
  327. <if test="postName != null">
  328. #{postName,jdbcType=VARCHAR},
  329. </if>
  330. <if test="recordStatus != null">
  331. #{recordStatus,jdbcType=INTEGER},
  332. </if>
  333. <if test="workNature != null">
  334. #{workNature,jdbcType=VARCHAR},
  335. </if>
  336. <if test="validDay != null">
  337. #{validDay,jdbcType=INTEGER},
  338. </if>
  339. <if test="workYear != null">
  340. #{workYear,jdbcType=INTEGER},
  341. </if>
  342. <if test="cultureRank != null">
  343. #{cultureRank,jdbcType=INTEGER},
  344. </if>
  345. <if test="maxSalary != null">
  346. #{maxSalary,jdbcType=DECIMAL},
  347. </if>
  348. <if test="minSalary != null">
  349. #{minSalary,jdbcType=DECIMAL},
  350. </if>
  351. <if test="welfare != null">
  352. #{welfare,jdbcType=VARCHAR},
  353. </if>
  354. <if test="userName != null">
  355. #{userName,jdbcType=VARCHAR},
  356. </if>
  357. <if test="userMobile != null">
  358. #{userMobile,jdbcType=VARCHAR},
  359. </if>
  360. <if test="postEmail != null">
  361. #{postEmail,jdbcType=VARCHAR},
  362. </if>
  363. <if test="workTime != null">
  364. #{workTime,jdbcType=INTEGER},
  365. </if>
  366. <if test="isTrail != null">
  367. #{isTrail,jdbcType=BIT},
  368. </if>
  369. <if test="trailMonths != null">
  370. #{trailMonths,jdbcType=INTEGER},
  371. </if>
  372. <if test="trailMaxSalary != null">
  373. #{trailMaxSalary,jdbcType=DECIMAL},
  374. </if>
  375. <if test="trailMinSalary != null">
  376. #{trailMinSalary,jdbcType=DECIMAL},
  377. </if>
  378. <if test="createUserID != null">
  379. #{createUserID,jdbcType=VARCHAR},
  380. </if>
  381. <if test="createTime != null">
  382. #{createTime,jdbcType=TIMESTAMP},
  383. </if>
  384. <if test="modifyUserID != null">
  385. #{modifyUserID,jdbcType=VARCHAR},
  386. </if>
  387. <if test="modifyTime != null">
  388. #{modifyTime,jdbcType=TIMESTAMP},
  389. </if>
  390. <if test="validTime != null">
  391. #{validTime,jdbcType=TIMESTAMP},
  392. </if>
  393. <if test="startTime != null">
  394. #{startTime,jdbcType=TIMESTAMP},
  395. </if>
  396. <if test="endTime != null">
  397. #{endTime,jdbcType=TIMESTAMP},
  398. </if>
  399. <if test="jobPlace != null">
  400. #{jobPlace,jdbcType=VARCHAR},
  401. </if>
  402. <if test="contactName != null">
  403. #{contactName,jdbcType=VARCHAR},
  404. </if>
  405. <if test="contactMobile != null">
  406. #{contactMobile,jdbcType=VARCHAR},
  407. </if>
  408. <if test="contactEmail != null">
  409. #{contactEmail,jdbcType=VARCHAR},
  410. </if>
  411. <if test="workNatureID != null">
  412. #{workNatureID,jdbcType=INTEGER},
  413. </if>
  414. <if test="tagID != null">
  415. #{tagID,jdbcType=INTEGER},
  416. </if>
  417. <if test="oracleTableID != null">
  418. #{oracleTableID,jdbcType=VARCHAR},
  419. </if>
  420. <if test="postDesc != null">
  421. #{postDesc,jdbcType=LONGVARCHAR},
  422. </if>
  423. </trim>
  424. </insert>
  425. <select id="countByExample" parameterType="com.hz.employmentsite.model.PcPostExample" resultType="java.lang.Long">
  426. select count(*) from pc_post
  427. <if test="_parameter != null">
  428. <include refid="Example_Where_Clause" />
  429. </if>
  430. </select>
  431. <update id="updateByExampleSelective" parameterType="map">
  432. update pc_post
  433. <set>
  434. <if test="row.postID != null">
  435. PostID = #{row.postID,jdbcType=VARCHAR},
  436. </if>
  437. <if test="row.professionID != null">
  438. ProfessionID = #{row.professionID,jdbcType=VARCHAR},
  439. </if>
  440. <if test="row.workCode != null">
  441. WorkCode = #{row.workCode,jdbcType=VARCHAR},
  442. </if>
  443. <if test="row.workName != null">
  444. WorkName = #{row.workName,jdbcType=VARCHAR},
  445. </if>
  446. <if test="row.recruitCount != null">
  447. RecruitCount = #{row.recruitCount,jdbcType=INTEGER},
  448. </if>
  449. <if test="row.companyID != null">
  450. CompanyID = #{row.companyID,jdbcType=VARCHAR},
  451. </if>
  452. <if test="row.postName != null">
  453. PostName = #{row.postName,jdbcType=VARCHAR},
  454. </if>
  455. <if test="row.recordStatus != null">
  456. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  457. </if>
  458. <if test="row.workNature != null">
  459. WorkNature = #{row.workNature,jdbcType=VARCHAR},
  460. </if>
  461. <if test="row.validDay != null">
  462. ValidDay = #{row.validDay,jdbcType=INTEGER},
  463. </if>
  464. <if test="row.workYear != null">
  465. WorkYear = #{row.workYear,jdbcType=INTEGER},
  466. </if>
  467. <if test="row.cultureRank != null">
  468. CultureRank = #{row.cultureRank,jdbcType=INTEGER},
  469. </if>
  470. <if test="row.maxSalary != null">
  471. MaxSalary = #{row.maxSalary,jdbcType=DECIMAL},
  472. </if>
  473. <if test="row.minSalary != null">
  474. MinSalary = #{row.minSalary,jdbcType=DECIMAL},
  475. </if>
  476. <if test="row.welfare != null">
  477. welfare = #{row.welfare,jdbcType=VARCHAR},
  478. </if>
  479. <if test="row.userName != null">
  480. UserName = #{row.userName,jdbcType=VARCHAR},
  481. </if>
  482. <if test="row.userMobile != null">
  483. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  484. </if>
  485. <if test="row.postEmail != null">
  486. PostEmail = #{row.postEmail,jdbcType=VARCHAR},
  487. </if>
  488. <if test="row.workTime != null">
  489. WorkTime = #{row.workTime,jdbcType=INTEGER},
  490. </if>
  491. <if test="row.isTrail != null">
  492. IsTrail = #{row.isTrail,jdbcType=BIT},
  493. </if>
  494. <if test="row.trailMonths != null">
  495. TrailMonths = #{row.trailMonths,jdbcType=INTEGER},
  496. </if>
  497. <if test="row.trailMaxSalary != null">
  498. TrailMaxSalary = #{row.trailMaxSalary,jdbcType=DECIMAL},
  499. </if>
  500. <if test="row.trailMinSalary != null">
  501. TrailMinSalary = #{row.trailMinSalary,jdbcType=DECIMAL},
  502. </if>
  503. <if test="row.createUserID != null">
  504. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  505. </if>
  506. <if test="row.createTime != null">
  507. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  508. </if>
  509. <if test="row.modifyUserID != null">
  510. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  511. </if>
  512. <if test="row.modifyTime != null">
  513. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
  514. </if>
  515. <if test="row.validTime != null">
  516. ValidTime = #{row.validTime,jdbcType=TIMESTAMP},
  517. </if>
  518. <if test="row.startTime != null">
  519. StartTime = #{row.startTime,jdbcType=TIMESTAMP},
  520. </if>
  521. <if test="row.endTime != null">
  522. EndTime = #{row.endTime,jdbcType=TIMESTAMP},
  523. </if>
  524. <if test="row.jobPlace != null">
  525. JobPlace = #{row.jobPlace,jdbcType=VARCHAR},
  526. </if>
  527. <if test="row.contactName != null">
  528. ContactName = #{row.contactName,jdbcType=VARCHAR},
  529. </if>
  530. <if test="row.contactMobile != null">
  531. ContactMobile = #{row.contactMobile,jdbcType=VARCHAR},
  532. </if>
  533. <if test="row.contactEmail != null">
  534. ContactEmail = #{row.contactEmail,jdbcType=VARCHAR},
  535. </if>
  536. <if test="row.workNatureID != null">
  537. WorkNatureID = #{row.workNatureID,jdbcType=INTEGER},
  538. </if>
  539. <if test="row.tagID != null">
  540. TagID = #{row.tagID,jdbcType=INTEGER},
  541. </if>
  542. <if test="row.oracleTableID != null">
  543. OracleTableID = #{row.oracleTableID,jdbcType=VARCHAR},
  544. </if>
  545. <if test="row.postDesc != null">
  546. PostDesc = #{row.postDesc,jdbcType=LONGVARCHAR},
  547. </if>
  548. </set>
  549. <if test="example != null">
  550. <include refid="Update_By_Example_Where_Clause" />
  551. </if>
  552. </update>
  553. <update id="updateByExampleWithBLOBs" parameterType="map">
  554. update pc_post
  555. set PostID = #{row.postID,jdbcType=VARCHAR},
  556. ProfessionID = #{row.professionID,jdbcType=VARCHAR},
  557. WorkCode = #{row.workCode,jdbcType=VARCHAR},
  558. WorkName = #{row.workName,jdbcType=VARCHAR},
  559. RecruitCount = #{row.recruitCount,jdbcType=INTEGER},
  560. CompanyID = #{row.companyID,jdbcType=VARCHAR},
  561. PostName = #{row.postName,jdbcType=VARCHAR},
  562. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  563. WorkNature = #{row.workNature,jdbcType=VARCHAR},
  564. ValidDay = #{row.validDay,jdbcType=INTEGER},
  565. WorkYear = #{row.workYear,jdbcType=INTEGER},
  566. CultureRank = #{row.cultureRank,jdbcType=INTEGER},
  567. MaxSalary = #{row.maxSalary,jdbcType=DECIMAL},
  568. MinSalary = #{row.minSalary,jdbcType=DECIMAL},
  569. welfare = #{row.welfare,jdbcType=VARCHAR},
  570. UserName = #{row.userName,jdbcType=VARCHAR},
  571. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  572. PostEmail = #{row.postEmail,jdbcType=VARCHAR},
  573. WorkTime = #{row.workTime,jdbcType=INTEGER},
  574. IsTrail = #{row.isTrail,jdbcType=BIT},
  575. TrailMonths = #{row.trailMonths,jdbcType=INTEGER},
  576. TrailMaxSalary = #{row.trailMaxSalary,jdbcType=DECIMAL},
  577. TrailMinSalary = #{row.trailMinSalary,jdbcType=DECIMAL},
  578. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  579. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  580. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  581. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
  582. ValidTime = #{row.validTime,jdbcType=TIMESTAMP},
  583. StartTime = #{row.startTime,jdbcType=TIMESTAMP},
  584. EndTime = #{row.endTime,jdbcType=TIMESTAMP},
  585. JobPlace = #{row.jobPlace,jdbcType=VARCHAR},
  586. ContactName = #{row.contactName,jdbcType=VARCHAR},
  587. ContactMobile = #{row.contactMobile,jdbcType=VARCHAR},
  588. ContactEmail = #{row.contactEmail,jdbcType=VARCHAR},
  589. WorkNatureID = #{row.workNatureID,jdbcType=INTEGER},
  590. TagID = #{row.tagID,jdbcType=INTEGER},
  591. OracleTableID = #{row.oracleTableID,jdbcType=VARCHAR},
  592. PostDesc = #{row.postDesc,jdbcType=LONGVARCHAR}
  593. <if test="example != null">
  594. <include refid="Update_By_Example_Where_Clause" />
  595. </if>
  596. </update>
  597. <update id="updateByExample" parameterType="map">
  598. update pc_post
  599. set PostID = #{row.postID,jdbcType=VARCHAR},
  600. ProfessionID = #{row.professionID,jdbcType=VARCHAR},
  601. WorkCode = #{row.workCode,jdbcType=VARCHAR},
  602. WorkName = #{row.workName,jdbcType=VARCHAR},
  603. RecruitCount = #{row.recruitCount,jdbcType=INTEGER},
  604. CompanyID = #{row.companyID,jdbcType=VARCHAR},
  605. PostName = #{row.postName,jdbcType=VARCHAR},
  606. RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
  607. WorkNature = #{row.workNature,jdbcType=VARCHAR},
  608. ValidDay = #{row.validDay,jdbcType=INTEGER},
  609. WorkYear = #{row.workYear,jdbcType=INTEGER},
  610. CultureRank = #{row.cultureRank,jdbcType=INTEGER},
  611. MaxSalary = #{row.maxSalary,jdbcType=DECIMAL},
  612. MinSalary = #{row.minSalary,jdbcType=DECIMAL},
  613. welfare = #{row.welfare,jdbcType=VARCHAR},
  614. UserName = #{row.userName,jdbcType=VARCHAR},
  615. UserMobile = #{row.userMobile,jdbcType=VARCHAR},
  616. PostEmail = #{row.postEmail,jdbcType=VARCHAR},
  617. WorkTime = #{row.workTime,jdbcType=INTEGER},
  618. IsTrail = #{row.isTrail,jdbcType=BIT},
  619. TrailMonths = #{row.trailMonths,jdbcType=INTEGER},
  620. TrailMaxSalary = #{row.trailMaxSalary,jdbcType=DECIMAL},
  621. TrailMinSalary = #{row.trailMinSalary,jdbcType=DECIMAL},
  622. CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
  623. CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
  624. ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
  625. ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
  626. ValidTime = #{row.validTime,jdbcType=TIMESTAMP},
  627. StartTime = #{row.startTime,jdbcType=TIMESTAMP},
  628. EndTime = #{row.endTime,jdbcType=TIMESTAMP},
  629. JobPlace = #{row.jobPlace,jdbcType=VARCHAR},
  630. ContactName = #{row.contactName,jdbcType=VARCHAR},
  631. ContactMobile = #{row.contactMobile,jdbcType=VARCHAR},
  632. ContactEmail = #{row.contactEmail,jdbcType=VARCHAR},
  633. WorkNatureID = #{row.workNatureID,jdbcType=INTEGER},
  634. TagID = #{row.tagID,jdbcType=INTEGER},
  635. OracleTableID = #{row.oracleTableID,jdbcType=VARCHAR}
  636. <if test="example != null">
  637. <include refid="Update_By_Example_Where_Clause" />
  638. </if>
  639. </update>
  640. <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcPost">
  641. update pc_post
  642. <set>
  643. <if test="professionID != null">
  644. ProfessionID = #{professionID,jdbcType=VARCHAR},
  645. </if>
  646. <if test="workCode != null">
  647. WorkCode = #{workCode,jdbcType=VARCHAR},
  648. </if>
  649. <if test="workName != null">
  650. WorkName = #{workName,jdbcType=VARCHAR},
  651. </if>
  652. <if test="recruitCount != null">
  653. RecruitCount = #{recruitCount,jdbcType=INTEGER},
  654. </if>
  655. <if test="companyID != null">
  656. CompanyID = #{companyID,jdbcType=VARCHAR},
  657. </if>
  658. <if test="postName != null">
  659. PostName = #{postName,jdbcType=VARCHAR},
  660. </if>
  661. <if test="recordStatus != null">
  662. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  663. </if>
  664. <if test="workNature != null">
  665. WorkNature = #{workNature,jdbcType=VARCHAR},
  666. </if>
  667. <if test="validDay != null">
  668. ValidDay = #{validDay,jdbcType=INTEGER},
  669. </if>
  670. <if test="workYear != null">
  671. WorkYear = #{workYear,jdbcType=INTEGER},
  672. </if>
  673. <if test="cultureRank != null">
  674. CultureRank = #{cultureRank,jdbcType=INTEGER},
  675. </if>
  676. <if test="maxSalary != null">
  677. MaxSalary = #{maxSalary,jdbcType=DECIMAL},
  678. </if>
  679. <if test="minSalary != null">
  680. MinSalary = #{minSalary,jdbcType=DECIMAL},
  681. </if>
  682. <if test="welfare != null">
  683. welfare = #{welfare,jdbcType=VARCHAR},
  684. </if>
  685. <if test="userName != null">
  686. UserName = #{userName,jdbcType=VARCHAR},
  687. </if>
  688. <if test="userMobile != null">
  689. UserMobile = #{userMobile,jdbcType=VARCHAR},
  690. </if>
  691. <if test="postEmail != null">
  692. PostEmail = #{postEmail,jdbcType=VARCHAR},
  693. </if>
  694. <if test="workTime != null">
  695. WorkTime = #{workTime,jdbcType=INTEGER},
  696. </if>
  697. <if test="isTrail != null">
  698. IsTrail = #{isTrail,jdbcType=BIT},
  699. </if>
  700. <if test="trailMonths != null">
  701. TrailMonths = #{trailMonths,jdbcType=INTEGER},
  702. </if>
  703. <if test="trailMaxSalary != null">
  704. TrailMaxSalary = #{trailMaxSalary,jdbcType=DECIMAL},
  705. </if>
  706. <if test="trailMinSalary != null">
  707. TrailMinSalary = #{trailMinSalary,jdbcType=DECIMAL},
  708. </if>
  709. <if test="createUserID != null">
  710. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  711. </if>
  712. <if test="createTime != null">
  713. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  714. </if>
  715. <if test="modifyUserID != null">
  716. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  717. </if>
  718. <if test="modifyTime != null">
  719. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
  720. </if>
  721. <if test="validTime != null">
  722. ValidTime = #{validTime,jdbcType=TIMESTAMP},
  723. </if>
  724. <if test="startTime != null">
  725. StartTime = #{startTime,jdbcType=TIMESTAMP},
  726. </if>
  727. <if test="endTime != null">
  728. EndTime = #{endTime,jdbcType=TIMESTAMP},
  729. </if>
  730. <if test="jobPlace != null">
  731. JobPlace = #{jobPlace,jdbcType=VARCHAR},
  732. </if>
  733. <if test="contactName != null">
  734. ContactName = #{contactName,jdbcType=VARCHAR},
  735. </if>
  736. <if test="contactMobile != null">
  737. ContactMobile = #{contactMobile,jdbcType=VARCHAR},
  738. </if>
  739. <if test="contactEmail != null">
  740. ContactEmail = #{contactEmail,jdbcType=VARCHAR},
  741. </if>
  742. <if test="workNatureID != null">
  743. WorkNatureID = #{workNatureID,jdbcType=INTEGER},
  744. </if>
  745. <if test="tagID != null">
  746. TagID = #{tagID,jdbcType=INTEGER},
  747. </if>
  748. <if test="oracleTableID != null">
  749. OracleTableID = #{oracleTableID,jdbcType=VARCHAR},
  750. </if>
  751. <if test="postDesc != null">
  752. PostDesc = #{postDesc,jdbcType=LONGVARCHAR},
  753. </if>
  754. </set>
  755. where PostID = #{postID,jdbcType=VARCHAR}
  756. </update>
  757. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hz.employmentsite.model.PcPost">
  758. update pc_post
  759. set ProfessionID = #{professionID,jdbcType=VARCHAR},
  760. WorkCode = #{workCode,jdbcType=VARCHAR},
  761. WorkName = #{workName,jdbcType=VARCHAR},
  762. RecruitCount = #{recruitCount,jdbcType=INTEGER},
  763. CompanyID = #{companyID,jdbcType=VARCHAR},
  764. PostName = #{postName,jdbcType=VARCHAR},
  765. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  766. WorkNature = #{workNature,jdbcType=VARCHAR},
  767. ValidDay = #{validDay,jdbcType=INTEGER},
  768. WorkYear = #{workYear,jdbcType=INTEGER},
  769. CultureRank = #{cultureRank,jdbcType=INTEGER},
  770. MaxSalary = #{maxSalary,jdbcType=DECIMAL},
  771. MinSalary = #{minSalary,jdbcType=DECIMAL},
  772. welfare = #{welfare,jdbcType=VARCHAR},
  773. UserName = #{userName,jdbcType=VARCHAR},
  774. UserMobile = #{userMobile,jdbcType=VARCHAR},
  775. PostEmail = #{postEmail,jdbcType=VARCHAR},
  776. WorkTime = #{workTime,jdbcType=INTEGER},
  777. IsTrail = #{isTrail,jdbcType=BIT},
  778. TrailMonths = #{trailMonths,jdbcType=INTEGER},
  779. TrailMaxSalary = #{trailMaxSalary,jdbcType=DECIMAL},
  780. TrailMinSalary = #{trailMinSalary,jdbcType=DECIMAL},
  781. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  782. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  783. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  784. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
  785. ValidTime = #{validTime,jdbcType=TIMESTAMP},
  786. StartTime = #{startTime,jdbcType=TIMESTAMP},
  787. EndTime = #{endTime,jdbcType=TIMESTAMP},
  788. JobPlace = #{jobPlace,jdbcType=VARCHAR},
  789. ContactName = #{contactName,jdbcType=VARCHAR},
  790. ContactMobile = #{contactMobile,jdbcType=VARCHAR},
  791. ContactEmail = #{contactEmail,jdbcType=VARCHAR},
  792. WorkNatureID = #{workNatureID,jdbcType=INTEGER},
  793. TagID = #{tagID,jdbcType=INTEGER},
  794. OracleTableID = #{oracleTableID,jdbcType=VARCHAR},
  795. PostDesc = #{postDesc,jdbcType=LONGVARCHAR}
  796. where PostID = #{postID,jdbcType=VARCHAR}
  797. </update>
  798. <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcPost">
  799. update pc_post
  800. set ProfessionID = #{professionID,jdbcType=VARCHAR},
  801. WorkCode = #{workCode,jdbcType=VARCHAR},
  802. WorkName = #{workName,jdbcType=VARCHAR},
  803. RecruitCount = #{recruitCount,jdbcType=INTEGER},
  804. CompanyID = #{companyID,jdbcType=VARCHAR},
  805. PostName = #{postName,jdbcType=VARCHAR},
  806. RecordStatus = #{recordStatus,jdbcType=INTEGER},
  807. WorkNature = #{workNature,jdbcType=VARCHAR},
  808. ValidDay = #{validDay,jdbcType=INTEGER},
  809. WorkYear = #{workYear,jdbcType=INTEGER},
  810. CultureRank = #{cultureRank,jdbcType=INTEGER},
  811. MaxSalary = #{maxSalary,jdbcType=DECIMAL},
  812. MinSalary = #{minSalary,jdbcType=DECIMAL},
  813. welfare = #{welfare,jdbcType=VARCHAR},
  814. UserName = #{userName,jdbcType=VARCHAR},
  815. UserMobile = #{userMobile,jdbcType=VARCHAR},
  816. PostEmail = #{postEmail,jdbcType=VARCHAR},
  817. WorkTime = #{workTime,jdbcType=INTEGER},
  818. IsTrail = #{isTrail,jdbcType=BIT},
  819. TrailMonths = #{trailMonths,jdbcType=INTEGER},
  820. TrailMaxSalary = #{trailMaxSalary,jdbcType=DECIMAL},
  821. TrailMinSalary = #{trailMinSalary,jdbcType=DECIMAL},
  822. CreateUserID = #{createUserID,jdbcType=VARCHAR},
  823. CreateTime = #{createTime,jdbcType=TIMESTAMP},
  824. ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
  825. ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
  826. ValidTime = #{validTime,jdbcType=TIMESTAMP},
  827. StartTime = #{startTime,jdbcType=TIMESTAMP},
  828. EndTime = #{endTime,jdbcType=TIMESTAMP},
  829. JobPlace = #{jobPlace,jdbcType=VARCHAR},
  830. ContactName = #{contactName,jdbcType=VARCHAR},
  831. ContactMobile = #{contactMobile,jdbcType=VARCHAR},
  832. ContactEmail = #{contactEmail,jdbcType=VARCHAR},
  833. WorkNatureID = #{workNatureID,jdbcType=INTEGER},
  834. TagID = #{tagID,jdbcType=INTEGER},
  835. OracleTableID = #{oracleTableID,jdbcType=VARCHAR}
  836. where PostID = #{postID,jdbcType=VARCHAR}
  837. </update>
  838. </mapper>