招聘管理小程序 h5联调问题修复

1 parent e508b859
...@@ -21,8 +21,11 @@ public class RecruitmentDemandDTO extends RecruitmentDemand { ...@@ -21,8 +21,11 @@ public class RecruitmentDemandDTO extends RecruitmentDemand {
@ApiModelProperty(notes = "待处理数量") @ApiModelProperty(notes = "待处理数量")
private Integer waitProcessCount; private Integer waitProcessCount;
@ApiModelProperty(notes = "待审核数量") @ApiModelProperty(notes = "待技术督导处理数量")
private Integer waitCheckCount; private Integer waitTSProcessCount;
@ApiModelProperty(notes = "待技术督导审核数量")
private Integer waitTSCheckCount;
@ApiModelProperty(notes = "全部数量") @ApiModelProperty(notes = "全部数量")
private Integer totalCount; private Integer totalCount;
......
...@@ -52,28 +52,38 @@ ...@@ -52,28 +52,38 @@
</sql> </sql>
<select id="statRecruitmentDemand" resultType="cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO"> <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') select
or (a.status = 1 and (a.min_dclrr_status = 0 or trial_wait_confirm_count > 0 or onboarding_wait_confirm_count > 0)), count(if((a.status in (2, 3) and a.confirm_flag = 'N')
or (a.status = 1 and
(a.resume_wait_confirm_count > 0 or trial_wait_confirm_count > 0 or
onboarding_wait_confirm_count > 0)),
a.id, a.id,
null)) as waitProcessCount, null)) as waitProcessCount,
<if test="technicalSupervisorPhone != null and technicalSupervisorPhone != ''"> count(if(a.status = 1 and a.resume_wait_confirm_count > 0, a.id, null)) as waitTSProcessCount,
count(if(a.status = 4, a.id, null)) as waitCheckCount, count(if(a.status = 4, a.id, null)) as waitTSCheckCount,
</if>
count(*) as totalCount count(*) as totalCount
from (select dclrd.id, from (
select dclrd.id,
dclrd.status, dclrd.status,
dclrd.confirm_flag, dclrd.confirm_flag,
min(ifnull(dclrr.process_result, 0)) as min_dclrr_status, (select count(*)
(select count(*) from dj_car_life_recruitment_trial_onboarding dclrt from dj_car_life_recruitment_resume dclrr
where dclrt.demand_id = dclrd.id and dclrt.deleted_flag = 'N' where dclrr.demand_id = dclrd.id and dclrr.deleted_flag = 'N'
and dclrt.confirm_flag = 'N' and dclrr.process_result is null
) as trial_wait_confirm_count, or (dclrr.process_result = 2 and dclrr.interview_result is null)) as resume_wait_confirm_count,
(select count(*) from dj_car_life_recruitment_onboarding_plan dclrop (select count(*)
from dj_car_life_recruitment_trial_onboarding 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 where dclrop.demand_id = dclrd.id
and dclrop.deleted_flag = 'N' and dclrop.confirm_flag = 'N' and dclrop.deleted_flag = 'N'
) as onboarding_wait_confirm_count and dclrop.confirm_flag = 'N') as onboarding_wait_confirm_count
from dj_car_life_recruitment_demand dclrd 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> <where>
dclrd.deleted_flag = 'N' dclrd.deleted_flag = 'N'
<if test="regionOperationId != null and regionOperationId != ''"> <if test="regionOperationId != null and regionOperationId != ''">
...@@ -83,7 +93,8 @@ ...@@ -83,7 +93,8 @@
and dclrd.technical_supervisor_phone = #{technicalSupervisorPhone} and dclrd.technical_supervisor_phone = #{technicalSupervisorPhone}
</if> </if>
</where> </where>
group by dclrd.id) a ) a
</select> </select>
<select id="listRecruitmentDemand" resultMap="DTOResultMap"> <select id="listRecruitmentDemand" resultMap="DTOResultMap">
...@@ -153,7 +164,7 @@ ...@@ -153,7 +164,7 @@
from dj_car_life_recruitment_resume dclrr from dj_car_life_recruitment_resume dclrr
where dclrr.demand_id = dclrd.id where dclrr.demand_id = dclrd.id
and dclrr.deleted_flag = 'N' and dclrr.deleted_flag = 'N'
and dclrr.process_result is null) and (dclrr.process_result is null or (dclrr.process_result = 2 and dclrr.interview_result is null)))
</if> </if>
</where> </where>
<if test="onlyWaiting != null and onlyWaiting"> <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!