فهرست منبع

增加企业招聘是否置顶后台实体类

yanliming 1 سال پیش
والد
کامیت
a0b9c86740

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

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

+ 8 - 1
common/src/main/resources/mapper/base/RecruitInformationInfo.xml

@@ -26,6 +26,8 @@
 			<result property="salaryForm" column="salary_form" />
 			<result property="isOnline" column="is_online" />
 			<result property="ageRequirement" column="age_requirement" />
+			<result property="isTopping" column="is_topping" />
+
 			</resultMap>
 	<insert id="insert"  parameterType="com.jpsoft.employment.modules.base.entity.RecruitInformationInfo">
 	<!--
@@ -36,7 +38,8 @@
 	<![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,age_requirement)
+	    work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag,
+	    salary_form,is_online,age_requirement,is_topping)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -61,6 +64,7 @@
 ,#{salaryForm,jdbcType=VARCHAR}
 ,#{isOnline,jdbcType= NUMERIC }
 ,#{ageRequirement,jdbcType=VARCHAR}
+,#{isTopping,jdbcType= NUMERIC }
 		)
 	]]>
 	</insert>
@@ -133,6 +137,9 @@
 			<if test="ageRequirement!=null">
 				age_requirement=#{ageRequirement,jdbcType= VARCHAR },
 			</if>
+			<if test="isTopping!=null">
+				is_topping=#{isTopping,jdbcType= NUMERIC },
+			</if>
 		</set>
 	where id_=#{id}
 	</update>