JobInformationInfo.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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.JobInformationInfoDAO">
  6. <resultMap id="JobInformationInfoMap" type="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
  7. <id property="id" column="id_" />
  8. <result property="personId" column="person_id" />
  9. <result property="photo" column="photo_" />
  10. <result property="serviceDesc" column="service_desc" />
  11. <result property="intendedIndustries" column="Intended_industries" />
  12. <result property="intendedPosition" column="Intended_position" />
  13. <result property="hopeSalary" column="hope_salary" />
  14. <result property="method" column="method_" />
  15. <result property="workExperience" column="work_experience" />
  16. <result property="education" column="education_" />
  17. <result property="status" column="status_" />
  18. <result property="createBy" column="create_by" />
  19. <result property="createTime" column="create_time" />
  20. <result property="updateBy" column="update_by" />
  21. <result property="updateTime" column="update_time" />
  22. <result property="delFlag" column="del_flag" />
  23. </resultMap>
  24. <insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
  25. <!--
  26. <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
  27. select sys_guid() from dual
  28. </selectKey>
  29. -->
  30. <![CDATA[
  31. insert into base_job_information_info
  32. (id_,person_id,photo_,service_desc,Intended_industries,Intended_position,hope_salary,method_,work_experience,education_,status_,create_by,create_time,update_by,update_time,del_flag)
  33. values
  34. (
  35. #{id,jdbcType=VARCHAR}
  36. ,#{personId,jdbcType=VARCHAR}
  37. ,#{photo,jdbcType=VARCHAR}
  38. ,#{serviceDesc,jdbcType=VARCHAR}
  39. ,#{intendedIndustries,jdbcType=VARCHAR}
  40. ,#{intendedPosition,jdbcType=VARCHAR}
  41. ,#{hopeSalary,jdbcType= NUMERIC }
  42. ,#{method,jdbcType=VARCHAR}
  43. ,#{workExperience,jdbcType= NUMERIC }
  44. ,#{education,jdbcType=VARCHAR}
  45. ,#{status,jdbcType=VARCHAR}
  46. ,#{createBy,jdbcType=VARCHAR}
  47. ,#{createTime,jdbcType= TIMESTAMP }
  48. ,#{updateBy,jdbcType=VARCHAR}
  49. ,#{updateTime,jdbcType= TIMESTAMP }
  50. ,#{delFlag,jdbcType= NUMERIC }
  51. )
  52. ]]>
  53. </insert>
  54. <delete id="delete" parameterType="string">
  55. delete from base_job_information_info where id_=#{id,jdbcType=VARCHAR}
  56. </delete>
  57. <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
  58. update base_job_information_info
  59. <set>
  60. <if test="personId!=null">
  61. person_id=#{personId,jdbcType=VARCHAR},
  62. </if>
  63. <if test="photo!=null">
  64. photo_=#{photo,jdbcType=VARCHAR},
  65. </if>
  66. <if test="serviceDesc!=null">
  67. service_desc=#{serviceDesc,jdbcType=VARCHAR},
  68. </if>
  69. <if test="intendedIndustries!=null">
  70. Intended_industries=#{intendedIndustries,jdbcType=VARCHAR},
  71. </if>
  72. <if test="intendedPosition!=null">
  73. Intended_position=#{intendedPosition,jdbcType=VARCHAR},
  74. </if>
  75. <if test="hopeSalary!=null">
  76. hope_salary=#{hopeSalary,jdbcType= NUMERIC },
  77. </if>
  78. <if test="method!=null">
  79. method_=#{method,jdbcType=VARCHAR},
  80. </if>
  81. <if test="workExperience!=null">
  82. work_experience=#{workExperience,jdbcType= NUMERIC },
  83. </if>
  84. <if test="education!=null">
  85. education_=#{education,jdbcType=VARCHAR},
  86. </if>
  87. <if test="status!=null">
  88. status_=#{status,jdbcType=VARCHAR},
  89. </if>
  90. <if test="createBy!=null">
  91. create_by=#{createBy,jdbcType=VARCHAR},
  92. </if>
  93. <if test="createTime!=null">
  94. create_time=#{createTime,jdbcType= TIMESTAMP },
  95. </if>
  96. <if test="updateBy!=null">
  97. update_by=#{updateBy,jdbcType=VARCHAR},
  98. </if>
  99. <if test="updateTime!=null">
  100. update_time=#{updateTime,jdbcType= TIMESTAMP },
  101. </if>
  102. <if test="delFlag!=null">
  103. del_flag=#{delFlag,jdbcType= NUMERIC },
  104. </if>
  105. </set>
  106. where id_=#{id}
  107. </update>
  108. <select id="get" parameterType="string" resultMap="JobInformationInfoMap">
  109. select * from base_job_information_info where id_=#{0}
  110. </select>
  111. <select id="exist" parameterType="string" resultType="int">
  112. select count(*) from base_job_information_info where id_=#{0}
  113. </select>
  114. <select id="list" resultMap="JobInformationInfoMap">
  115. select * from base_job_information_info
  116. </select>
  117. <select id="search" parameterType="hashmap" resultMap="JobInformationInfoMap">
  118. <![CDATA[
  119. select * from base_job_information_info
  120. ]]>
  121. <where>
  122. del_flag=false
  123. <if test="searchParams.id != null">
  124. and ID_ like #{searchParams.id}
  125. </if>
  126. </where>
  127. <foreach item="sort" collection="sortList" open="order by" separator=",">
  128. ${sort.name} ${sort.order}
  129. </foreach>
  130. </select>
  131. </mapper>