Browse Source

招聘信息增加年龄要求字段

yanliming 1 year ago
parent
commit
377b095e84

+ 3 - 0
common/src/main/java/com/jpsoft/employment/modules/base/entity/RecruitInformationInfo.java

@@ -83,6 +83,9 @@ public class RecruitInformationInfo {
 	@ApiModelProperty(value = "是否上线")
 	private Boolean isOnline;
 
+	@ApiModelProperty(value = "年龄要求")
+	private String ageRequirement;
+
 	@Transient
 	@ApiModelProperty(value = "薪资形式翻译")
 	private String salaryFormN;

+ 6 - 2
common/src/main/resources/mapper/base/RecruitInformationInfo.xml

@@ -25,7 +25,7 @@
 			<result property="delFlag" column="del_flag" />
 			<result property="salaryForm" column="salary_form" />
 			<result property="isOnline" column="is_online" />
-
+			<result property="ageRequirement" column="age_requirement" />
 			</resultMap>
 	<insert id="insert"  parameterType="com.jpsoft.employment.modules.base.entity.RecruitInformationInfo">
 	<!--
@@ -36,7 +36,7 @@
 	<![CDATA[
 		insert into base_recruit_information_info
 	    (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,salary_form,is_online)
+	    work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag,salary_form,is_online,age_requirement)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -60,6 +60,7 @@
 ,#{delFlag,jdbcType= NUMERIC }
 ,#{salaryForm,jdbcType=VARCHAR}
 ,#{isOnline,jdbcType= NUMERIC }
+,#{ageRequirement,jdbcType=VARCHAR}
 		)
 	]]>
 	</insert>
@@ -129,6 +130,9 @@
 			<if test="isOnline!=null">
 				is_online=#{isOnline,jdbcType= NUMERIC },
 			</if>
+			<if test="ageRequirement!=null">
+				age_requirement=#{ageRequirement,jdbcType= VARCHAR },
+			</if>
 		</set>
 	where id_=#{id}
 	</update>

+ 1 - 0
web/src/main/java/com/jpsoft/employment/modules/base/controller/RecruitInformationInfoController.java

@@ -313,6 +313,7 @@ public class RecruitInformationInfoController {
                 map.put("workArea",recruitInformationInfo.getWorkArea());
                 map.put("address",recruitInformationInfo.getAddress());
                 map.put("browseNumber",recruitInformationInfo.getBrowseNumber());
+                map.put("ageRequirement",recruitInformationInfo.getAgeRequirement());
 
                 String statusN;
                 if ("1".equals(recruitInformationInfo.getStatus())) {