优化
This commit is contained in:
@ -160,4 +160,78 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="recruitApplyList" resultType="com.ruoyi.bgt.domain.vo.BgtProjectRecruitApplyVO">
|
||||
select bpra.id,
|
||||
bpra.entry_time,
|
||||
bpra.leave_time,
|
||||
bpra.recruit_id,
|
||||
wu.user_id,
|
||||
wu.phone,
|
||||
wu.score,
|
||||
wu.avatar_name,
|
||||
wu.username,
|
||||
bpra.status,
|
||||
wu.type_of_work,
|
||||
bpr.recruit_name,
|
||||
fpt.task_name,
|
||||
bpr.task_id
|
||||
from bgt_project_recruit_apply bpra
|
||||
left join wgz_user wu on bpra.user_id = wu.user_id
|
||||
left join bgt_project_recruit bpr on bpr.id = bpra.recruit_id
|
||||
left join fbs_project_task fpt on fpt.id = bpr.task_id
|
||||
<where>
|
||||
<if test="dto.username !=null and dto.username !='' ">
|
||||
and wu.username like concat('%', #{dto.username}, '%')
|
||||
</if>
|
||||
<if test="dto.recruitId != null">
|
||||
and bpra.recruit_id = #{dto.recruitId}
|
||||
</if>
|
||||
<if test="dto.status != null and dto.status == 0">
|
||||
AND bpra.status = '0'
|
||||
</if>
|
||||
<if test="dto.status != null and dto.status == 1">
|
||||
AND bpra.status != '0'
|
||||
</if>
|
||||
</where>
|
||||
order by bpra.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="taskUserList" resultType="com.ruoyi.bgt.domain.vo.BgtProjectRecruitApplyVO">
|
||||
select bpra.id,
|
||||
bpra.entry_time,
|
||||
bpra.leave_time,
|
||||
bpra.recruit_id,
|
||||
wu.user_id,
|
||||
wu.phone,
|
||||
wu.score,
|
||||
wu.avatar_name,
|
||||
wu.username,
|
||||
bpra.status,
|
||||
wu.type_of_work,
|
||||
bpr.recruit_name,
|
||||
fpt.task_name,
|
||||
bpr.task_id
|
||||
from bgt_project_recruit_apply bpra
|
||||
left join wgz_user wu on bpra.user_id = wu.user_id
|
||||
left join bgt_project_recruit bpr on bpr.id = bpra.recruit_id
|
||||
left join fbs_project_task fpt on fpt.id = bpr.task_id
|
||||
<where>
|
||||
<if test="dto.username !=null and dto.username !='' ">
|
||||
and wu.username like concat('%', #{dto.username}, '%')
|
||||
</if>
|
||||
<if test="dto.taskId != null">
|
||||
and bpra.task_id = #{dto.taskId}
|
||||
</if>
|
||||
<if test="dto.status != null">
|
||||
AND bpra.status = #{dto.status}
|
||||
</if>
|
||||
<if test="dto.status != null">
|
||||
AND bpra.status in ('3','5','6')
|
||||
</if>
|
||||
</where>
|
||||
order by bpra.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user