Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
傅伟强-富德
/
test
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 ba755aaa
authored
May 16, 2019
by
傅伟强-富德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test.txt
1 parent
74893ff4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
test.txt
test.txt
View file @
ba755aa
...
@@ -8,30 +8,31 @@
...
@@ -8,30 +8,31 @@
</plugin>
</plugin>
and po.duty_status='1'
and po.duty_status='1'
select
分单必须使用的字段:
rpsi.POLICY_NO policyNo,rpsi.service_no servicerNo,po.BRANCH_CODE branchCode,si.EMP_NAME empName,
保单代码:policyNo
po.CHANNEL_TYPE AS channelType,bi.BRANCH_NAME branchName,ppi.PREM_DUE_DATE premDate,ctl.DESCRIPTION AS description
保单服务人员
保单业务员
from policy po
保单部门代码
inner join rn_policy_service_info rpsi on rpsi.policy_no=po.policy_no
保单渠道:channelType
inner join branch_code_relation bcr on bcr.branch_code=po.branch_code
机构代码:branchCode
inner join policy_product pp on pp.policy_no=po.policy_no and pp.prod_seq='1'
机构级别:
inner join policy_prem_info ppi on ppi.policy_no =po.policy_no
保单责任状态:dutyStatus
inner join staff_info si on si.emp_no = rpsi.service_no
保单缴费状态:premStatus
inner join CHANNEL_TYPE_TBL CTL on CTL.CHANNEL_TYPE = PO.CHANNEL_TYPE
保费来源:premSource
inner join branch_info bi on bi.branch_code = po.branch_code
分单规则:assignRule
left join gras_assign_failed_record gfr on gfr.policy_no=rpsi.policy_no and gfr.is_valid='Y'
特殊分单机构:assign_branch_code
where
产品序号:prodSeq
bcr.relative_grade>-1
产品代码:productCode
and gfr.policy_no is null
应缴日:premDueDate
and ppi.prem_status='1'
保单联系地址
and ppi.prem_source='1'
服务人员岗位
and po.duty_status='1'
服务人员个险兼收
服务人员经代兼收
and(rpsi.assign_rule IN ('01', '02') OR rpsi.assign_rule IS NULL)
服务人员银代兼收
and pp.product_code not in('CBAN_TN1','CBAN_UN1','CBAN_VN1')
服务人员状态代码:empStatusCode
and bcr.relative_branch_code = #{branchCode,jdbcType=VARCHAR}
AND ppi.PREM_DUE_DATE >= "TO_DATE"(#{nowMonth},'yyyy-MM-dd hh24:mi:ss')
AND ppi.PREM_DUE_DATE < "TO_DATE"(#{nextMonth},'yyyy-MM-dd hh24:mi:ss')
...
...
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