RecruitInformationInfo.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <!-- namespace必须指向DAO接口 -->
  5. <mapper namespace="com.jpsoft.employment.modules.base.dao.RecruitInformationInfoDAO">
  6. <resultMap id="RecruitInformationInfoMap" type="com.jpsoft.employment.modules.base.entity.RecruitInformationInfo">
  7. <id property="id" column="id_" />
  8. <result property="enterpriseId" column="enterprise_id" />
  9. <result property="positionName" column="position_name" />
  10. <result property="salary" column="salary_" />
  11. <result property="settlementMethod" column="settlement_method" />
  12. <result property="industry" column="industry_" />
  13. <result property="recruitingNumbers" column="recruiting_numbers" />
  14. <result property="desc" column="desc" />
  15. <result property="contacts" column="contacts" />
  16. <result property="contactsPhone" column="contacts_phone" />
  17. <result property="workArea" column="work_area" />
  18. <result property="address" column="address_" />
  19. <result property="browseNumber" column="browse_number" />
  20. <result property="status" column="status_" />
  21. <result property="createBy" column="create_by" />
  22. <result property="createTime" column="create_time" />
  23. <result property="updateBy" column="update_by" />
  24. <result property="updateTime" column="update_time" />
  25. <result property="delFlag" column="del_flag" />
  26. </resultMap>
  27. <insert id="insert" parameterType="RecruitInformationInfo">
  28. <!--
  29. <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
  30. select sys_guid() from dual
  31. </selectKey>
  32. -->
  33. <![CDATA[
  34. insert into base_recruit_information_info
  35. (id_,enterprise_id,position_name,salary_,settlement_method,industry_,recruiting_numbers,desc,contacts,contacts_phone,work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag)
  36. values
  37. (
  38. #{id,jdbcType=VARCHAR}
  39. ,#{enterpriseId,jdbcType=VARCHAR}
  40. ,#{positionName,jdbcType=VARCHAR}
  41. ,#{salary,jdbcType=VARCHAR}
  42. ,#{settlementMethod,jdbcType=VARCHAR}
  43. ,#{industry,jdbcType=VARCHAR}
  44. ,#{recruitingNumbers,jdbcType=VARCHAR}
  45. ,#{desc,jdbcType=VARCHAR}
  46. ,#{contacts,jdbcType=VARCHAR}
  47. ,#{contactsPhone,jdbcType=VARCHAR}
  48. ,#{workArea,jdbcType=VARCHAR}
  49. ,#{address,jdbcType=VARCHAR}
  50. ,#{browseNumber,jdbcType= NUMERIC }
  51. ,#{status,jdbcType=VARCHAR}
  52. ,#{createBy,jdbcType=VARCHAR}
  53. ,#{createTime,jdbcType= TIMESTAMP }
  54. ,#{updateBy,jdbcType=VARCHAR}
  55. ,#{updateTime,jdbcType= TIMESTAMP }
  56. ,#{delFlag,jdbcType= NUMERIC }
  57. )
  58. ]]>
  59. </insert>
  60. <delete id="delete" parameterType="string">
  61. delete from base_recruit_information_info where id_=#{id,jdbcType=VARCHAR}
  62. </delete>
  63. <update id="update" parameterType="RecruitInformationInfo">
  64. update base_recruit_information_info
  65. <set>
  66. <if test="enterpriseId!=null">
  67. enterprise_id=#{enterpriseId,jdbcType=VARCHAR},
  68. </if>
  69. <if test="positionName!=null">
  70. position_name=#{positionName,jdbcType=VARCHAR},
  71. </if>
  72. <if test="salary!=null">
  73. salary_=#{salary,jdbcType=VARCHAR},
  74. </if>
  75. <if test="settlementMethod!=null">
  76. settlement_method=#{settlementMethod,jdbcType=VARCHAR},
  77. </if>
  78. <if test="industry!=null">
  79. industry_=#{industry,jdbcType=VARCHAR},
  80. </if>
  81. <if test="recruitingNumbers!=null">
  82. recruiting_numbers=#{recruitingNumbers,jdbcType=VARCHAR},
  83. </if>
  84. <if test="desc!=null">
  85. desc=#{desc,jdbcType=VARCHAR},
  86. </if>
  87. <if test="contacts!=null">
  88. contacts=#{contacts,jdbcType=VARCHAR},
  89. </if>
  90. <if test="contactsPhone!=null">
  91. contacts_phone=#{contactsPhone,jdbcType=VARCHAR},
  92. </if>
  93. <if test="workArea!=null">
  94. work_area=#{workArea,jdbcType=VARCHAR},
  95. </if>
  96. <if test="address!=null">
  97. address_=#{address,jdbcType=VARCHAR},
  98. </if>
  99. <if test="browseNumber!=null">
  100. browse_number=#{browseNumber,jdbcType= NUMERIC },
  101. </if>
  102. <if test="status!=null">
  103. status_=#{status,jdbcType=VARCHAR},
  104. </if>
  105. <if test="createBy!=null">
  106. create_by=#{createBy,jdbcType=VARCHAR},
  107. </if>
  108. <if test="createTime!=null">
  109. create_time=#{createTime,jdbcType= TIMESTAMP },
  110. </if>
  111. <if test="updateBy!=null">
  112. update_by=#{updateBy,jdbcType=VARCHAR},
  113. </if>
  114. <if test="updateTime!=null">
  115. update_time=#{updateTime,jdbcType= TIMESTAMP },
  116. </if>
  117. <if test="delFlag!=null">
  118. del_flag=#{delFlag,jdbcType= NUMERIC },
  119. </if>
  120. </set>
  121. where id_=#{id}
  122. </update>
  123. <select id="get" parameterType="string" resultMap="RecruitInformationInfoMap">
  124. select
  125. id_,enterprise_id,position_name,salary_,settlement_method,industry_,recruiting_numbers,desc,contacts,contacts_phone,work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag from base_recruit_information_info where id_=#{0}
  126. </select>
  127. <select id="exist" parameterType="string" resultType="int">
  128. select count(*) from base_recruit_information_info where id_=#{0}
  129. </select>
  130. <select id="list" resultMap="RecruitInformationInfoMap">
  131. select * from base_recruit_information_info
  132. </select>
  133. <select id="search" parameterType="hashmap" resultMap="RecruitInformationInfoMap">
  134. <![CDATA[
  135. select * from base_recruit_information_info
  136. ]]>
  137. <where>
  138. <if test="searchParams.id != null">
  139. and ID_ like #{searchParams.id}
  140. </if>
  141. </where>
  142. <foreach item="sort" collection="sortList" open="order by" separator=",">
  143. ${sort.name} ${sort.order}
  144. </foreach>
  145. </select>
  146. </mapper>