PcJobhuntMapper.xml 15 KB

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