更新
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
<result property="cover" column="cover" />
|
||||
<result property="jobType" column="job_type" />
|
||||
<result property="jobAddress" column="job_address" />
|
||||
<result property="reviewStatus" column="review_status" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
@@ -79,6 +80,7 @@
|
||||
<result property="companyNature" column="company_nature" />
|
||||
<result property="code" column="code" />
|
||||
<result property="jobAddress" column="job_address" />
|
||||
<result property="reviewStatus" column="review_status" />
|
||||
|
||||
<association property="companyVo" resultMap="CompanyResult"/>
|
||||
</resultMap>
|
||||
@@ -97,7 +99,7 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJobVo">
|
||||
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address from job
|
||||
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address, review_status from job
|
||||
</sql>
|
||||
<insert id="insertBatchRowWork">
|
||||
INSERT INTO row_work (
|
||||
@@ -177,7 +179,7 @@
|
||||
);
|
||||
</update>
|
||||
|
||||
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
|
||||
<select id="selectJobList" parameterType="JobSearch" resultMap="JobResult">
|
||||
<include refid="selectJobVo"/>
|
||||
<where> del_flag = '0'
|
||||
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
|
||||
@@ -216,6 +218,12 @@
|
||||
and min_salary > 5000
|
||||
</if>
|
||||
</if>
|
||||
<if test="startDate != null and startDate != ''">
|
||||
and posting_date >= #{startDate}
|
||||
</if>
|
||||
<if test="endDate != null and endDate != ''">
|
||||
and posting_date <= #{endDate}
|
||||
</if>
|
||||
</where>
|
||||
order by is_explain desc
|
||||
</select>
|
||||
@@ -349,4 +357,7 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateReviewStatus">
|
||||
update job set review_status = #{reviewStatus} where job_id = #{jobId}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user