PcPostMapper.xml 28 KB

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