Commit edf29f1d by 谢海旭

Merge remote-tracking branch 'origin/v5.8.3' into v5.8.3

2 parents f92e26f8 2d795bd3
...@@ -258,6 +258,28 @@ ...@@ -258,6 +258,28 @@
and t.process_result is null and t.process_result is null
) )
</if> </if>
<if test="approvalStatus != null and approvalStatus == 0">
and exists (
select 1 from dj_car_life_recruitment_trial_onboarding t
where t.demand_id = dj_car_life_recruitment_demand.id
and t.deleted_flag = 'N'
and t.approval_result is null
)
</if>
<if test="approvalStatus != null and approvalStatus == 1">
and exists (
select 1 from dj_car_life_recruitment_trial_onboarding t
where t.demand_id = dj_car_life_recruitment_demand.id
and t.deleted_flag = 'N'
)
and not exists (
select 1 from dj_car_life_recruitment_trial_onboarding t
where t.demand_id = dj_car_life_recruitment_demand.id
and t.deleted_flag = 'N'
and t.approval_result is null
)
</if>
order by FIELD(status, 0,4,1,2,3) asc, created_date desc order by FIELD(status, 0,4,1,2,3) asc, created_date desc
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!