update
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</where>
|
||||
</select>
|
||||
<select id="applyJob" resultType="com.ruoyi.cms.domain.Job">
|
||||
SELECT ja.create_time AS applyTime, j.*
|
||||
SELECT ja.create_time AS applyTime, ja.is_view, j.*
|
||||
FROM job j
|
||||
INNER JOIN job_apply ja ON j.job_id = ja.job_id
|
||||
WHERE j.del_flag = '0'
|
||||
@@ -151,7 +151,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectJobApplyListJob" parameterType="JobApply" resultType="com.ruoyi.cms.domain.Job">
|
||||
select b.*,a.create_time as shareTime from job_apply a inner join job b on a.job_id=b.job_id and b.del_flag='0'
|
||||
select b.*,a.create_time as shareTime, a.is_view from job_apply a inner join job b on a.job_id=b.job_id and b.del_flag='0'
|
||||
<where> a.del_flag = '0'
|
||||
<if test="jobId != null "> and a.job_id = #{jobId}</if>
|
||||
<if test="userId != null "> and a.user_id = #{userId}</if>
|
||||
@@ -162,4 +162,7 @@
|
||||
update job_apply set update_time=sysdate(),update_by=#{updateBy},hire=#{hire},hire_source=#{hireSource} where user_id=#{userId} AND job_id=#{jobId}
|
||||
</update>
|
||||
|
||||
<select id="selectByJobIdAndUserId" resultMap="JobApplyResult">
|
||||
select * from job_apply where del_flag=0 and job_id=#{jobId} and user_id=#{userId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user