招聘管理-resume去除status字段

1 parent b15f7997
......@@ -50,15 +50,25 @@
</sql>
<select id="statRecruitmentDemand" resultType="cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO">
select count(if((a.status in (2, 3) and a.confirm_flag = 'N') or (a.status = 1 and a.min_dclrr_status = 0), a.id,
select count(if((a.status in (2, 3) and a.confirm_flag = 'N')
or (a.status = 1 and (a.min_dclrr_status = 0 or trial_wait_confirm_count > 0 or onboarding_wait_confirm_count > 0)),
a.id,
null)) as waitProcessCount,
count(*) as totalCount
from (select dclrd.id,
dclrd.status,
dclrd.confirm_flag,
min(dclrr.status) as min_dclrr_status
dclrd.status,
dclrd.confirm_flag,
min(ifnull(dclrr.process_result, 0)) as min_dclrr_status,
(select count(*) from dj_car_life_recruitment_trial dclrt
where dclrt.demand_id = dclrd.id and dclrt.deleted_flag = 'N'
and dclrt.confirm_flag = 'N'
) as trial_wait_confirm_count,
(select count(*) from dj_car_life_recruitment_onboarding_plan dclrop
where dclrop.demand_id = dclrd.id
and dclrop.deleted_flag = 'N' and dclrop.confirm_flag = 'N'
) as onboarding_wait_confirm_count,
from dj_car_life_recruitment_demand dclrd
left join dj_car_life_recruitment_resume dclrr on dclrd.id = dclrr.demand_id and dclrr.deleted_flag = 'N'
left join dj_car_life_recruitment_resume dclrr on dclrd.id = dclrr.demand_id and dclrr.deleted_flag = 'N'
<where>
dclrd.deleted_flag = 'N'
<if test="regionOperationId != null and regionOperationId != ''">
......@@ -66,7 +76,7 @@
</if>
</where>
group by dclrd.id) a;
</select>
(select count(*) from dj_car_life_recruitment_trial dclrt where dclrt.demand_id = dclrd.id)</select>
<select id="listRecruitmentDemand" resultMap="DTOResultMap">
select dclrd.id, dclrd.merchant_name, dclrd.merchant_id, dclrd.region_operation_id, dclrd.region_operation_name,
......@@ -77,7 +87,7 @@
from dj_car_life_recruitment_resume dclrr2
where dclrr2.demand_id = dclrd.id
and dclrr2.deleted_flag = 'N'
and dclrr2.status = 0), 0) as wait_process_resume_count
and dclrr2.process_result is null), 0) as wait_process_resume_count
from dj_car_life_recruitment_demand dclrd
<where>
dclrd.deleted_flag = 'N'
......@@ -96,7 +106,7 @@
from dj_car_life_recruitment_resume dclrr
where dclrr.demand_id = dclrd.id
and dclrr.deleted_flag = 'N'
and dclrr.status = 0)))
and dclrr.process_result is null)))
</if>
</where>
<if test="onlyWaiting != null and onlyWaiting">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!