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
Commit 59eee039
authored
Jun 13, 2018
by
傅伟强-富德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 部门对于服务人员设置
1 parent
81be241d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
1 deletions
部门对于服务人员设置
部门对于服务人员设置
View file @
59eee03
参数:
参数:
...
...
@@ -27,3 +27,82 @@ select bi.branch_code
and bcr.relative_grade < 1;
2.2:判断人员类型是否可以进行服务
2.2.1:判断是否为续收人员--查询staff_info表是否存在记录----->查询人员类型,判断是否为续收人员
查询staff_info表信息和department_info表信息
获取成功,当v_department_info.channel_type = '07' 人员为续收人员 -返回 05
如果获取失败:
SELECT COUNT(DISTINCT si.emp_no)
FROM staff_info si
WHERE si.emp_no = p_emp_no
AND si.emp_no LIKE 'H%';
查询表是否存在该人员,存在则返回05
返回值如果不等于05,则return
2.2.2:查询人员是否为离职或待离职
获取人员状态sql:
SELECT decode(TRIM(es.emp_status_code),
'0501',
'01',
'0701',
'01',
'0301',
'01',
'0601',
'01',
'0801',
'01',
'0401',
'01',
'0201',
'01',
'0101',
'01',
'1101',
'01',
'0400',
'02',
'0102',
'02',
'0103',
'03',
'0403',
'04',
'0503',
'04',
'0203',
'04',
'0303',
'04',
'0104',
'04',
'0703',
'04',
'1103',
'04',
'0105',
'05',
'0404',
'06',
''),
si.is_valid
INTO v_emp_status,
v_is_valid
FROM staff_info si,
emp_status es
WHERE si.emp_no = p_emp_no
AND si.emp_status_code = es.emp_status_code;
其中v_is_valid = 'N' 作废也当离职
2.3:判断人员类型是否可以服务这个部门
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