Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-staff
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e40123ca
authored
Jan 13, 2026
by
DESKTOP-3F024UL\tianming
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
招聘管理小程序 h5联调问题修复
1 parent
e508b859
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
33 deletions
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/recruitment/RecruitmentDemandDTO.java
rpc-dj-staff/src/main/resources/META-INF/orm/RecruitmentDemandMapper.xml
rpc-dj-staff-api/src/main/java/cn/com/glsx/dj/staff/dto/recruitment/RecruitmentDemandDTO.java
View file @
e40123c
...
...
@@ -21,8 +21,11 @@ public class RecruitmentDemandDTO extends RecruitmentDemand {
@ApiModelProperty
(
notes
=
"待处理数量"
)
private
Integer
waitProcessCount
;
@ApiModelProperty
(
notes
=
"待审核数量"
)
private
Integer
waitCheckCount
;
@ApiModelProperty
(
notes
=
"待技术督导处理数量"
)
private
Integer
waitTSProcessCount
;
@ApiModelProperty
(
notes
=
"待技术督导审核数量"
)
private
Integer
waitTSCheckCount
;
@ApiModelProperty
(
notes
=
"全部数量"
)
private
Integer
totalCount
;
...
...
rpc-dj-staff/src/main/resources/META-INF/orm/RecruitmentDemandMapper.xml
View file @
e40123c
...
...
@@ -52,38 +52,49 @@
</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 or trial_wait_confirm_count > 0 or onboarding_wait_confirm_count > 0)),
a.id,
null)) as waitProcessCount,
select
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,
null)) as waitProcessCount,
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 waitTSCheckCount,
count(*) as totalCount
from (
select dclrd.id,
dclrd.status,
dclrd.confirm_flag,
(select count(*)
from dj_car_life_recruitment_resume dclrr
where dclrr.demand_id = dclrd.id and dclrr.deleted_flag = 'N'
and dclrr.process_result is null
or (dclrr.process_result = 2 and dclrr.interview_result is null)) as resume_wait_confirm_count,
(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
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'
<where>
dclrd.deleted_flag = 'N'
<if
test=
"regionOperationId != null and regionOperationId != ''"
>
and dclrd.region_operation_id = #{regionOperationId}
</if>
<if
test=
"technicalSupervisorPhone != null and technicalSupervisorPhone != ''"
>
count(if(a.status = 4, a.id, null)) as waitCheckCount,
and dclrd.technical_supervisor_phone = #{technicalSupervisorPhone}
</if>
count(*) as totalCount
from (select dclrd.id,
dclrd.status,
dclrd.confirm_flag,
min(ifnull(dclrr.process_result, 0)) as min_dclrr_status,
(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
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'
<where>
dclrd.deleted_flag = 'N'
<if
test=
"regionOperationId != null and regionOperationId != ''"
>
and dclrd.region_operation_id = #{regionOperationId}
</if>
<if
test=
"technicalSupervisorPhone != null and technicalSupervisorPhone != ''"
>
and dclrd.technical_supervisor_phone = #{technicalSupervisorPhone}
</if>
</where>
group by dclrd.id) a
</where>
) a
</select>
<select
id=
"listRecruitmentDemand"
resultMap=
"DTOResultMap"
>
...
...
@@ -153,7 +164,7 @@
from dj_car_life_recruitment_resume dclrr
where dclrr.demand_id = dclrd.id
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>
</where>
<if
test=
"onlyWaiting != null and onlyWaiting"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment