Commit 4508363c by 傅伟强-富德

Update 部门对于服务人员设置

1 parent 59eee039
Showing with 43 additions and 1 deletions
参数:
参数:
......@@ -99,10 +99,51 @@ select bi.branch_code
AND si.emp_status_code = es.emp_status_code;
其中v_is_valid = 'N' 作废也当离职
01-在职 02-休眠 03-待离职 04 -离职 05-培训 06-待入职
返回值为 03,04则直接return 'N'
--DMP-3970 待入职续收人员分单规则调整
--待入职的,审批不通过的
if v_emp_status in ('06') then
select count(*)
into v_count
from renewal_staff_change_history rs
where rs.emp_no = p_emp_no
and rs.change_type = '01' --入职
and rs.change_status in ('2', '3');
if v_count = 0 then
return('N');
end if;
end if;
--判断是否下月离职的人员,下月离职人员不再分单
v_count := 0;
select count(*)
into v_count
from renewal_staff_change_history rsch
where rsch.emp_no = p_emp_no
and rsch.pk_serial = (select max(rs.pk_serial)
from renewal_staff_change_history rs
where rs.emp_no = p_emp_no
and rs.change_status = '2'
and rs.change_type = '12'
and rs.start_date > sysdate);
if v_count>0 then
return('N');
else
return('Y');
N:表示不能进行服务,Y表示可以服务
----end
2.3:判断人员类型是否可以服务这个部门
2.4:判断这个部门是否已经存在督导,如果有,作废原记录
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!