Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
傅伟强-富德
/
test1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
You need to sign in or sign up before continuing.
Commit 4508363c
authored
Jun 13, 2018
by
傅伟强-富德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 部门对于服务人员设置
1 parent
59eee039
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
3 deletions
部门对于服务人员设置
部门对于服务人员设置
View file @
4508363
参数:
参数:
...
@@ -99,10 +99,51 @@ select bi.branch_code
...
@@ -99,10 +99,51 @@ select bi.branch_code
AND si.emp_status_code = es.emp_status_code;
AND si.emp_status_code = es.emp_status_code;
其中v_is_valid = 'N' 作废也当离职
其中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.3:判断人员类型是否可以服务这个部门
2.4:判断这个部门是否已经存在督导,如果有,作废原记录
2.4:判断这个部门是否已经存在督导,如果有,作废原记录
\ No newline at end of file
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