Commit eda9b551 by 傅伟强-富德

Update test.txt

1 parent cfa81397
Showing with 13 additions and 10 deletions
...@@ -13,19 +13,22 @@ ...@@ -13,19 +13,22 @@
select select
rpsi.POLICY_NO policyNo,rpsi.SERVICER_NO servicerNo,po.BRANCH_CODE branchCode,si.EMP_NAME empName, rpsi.POLICY_NO policyNo,rpsi.service_no servicerNo,po.BRANCH_CODE branchCode,si.EMP_NAME empName,
po.CHANNEL_TYPE AS channelType,bi.BRANCH_NAME branchName,ppi.PREM_DUE_DATE premDate,ctl.DESCRIPTION AS description po.CHANNEL_TYPE AS channelType,bi.BRANCH_NAME branchName,ppi.PREM_DUE_DATE premDate,ctl.DESCRIPTION AS description
from rn_policy_service_info rpsi,policy po,branch_code_relation bcr,policy_prem_info ppi from rn_policy_service_info rpsi,policy po,branch_code_relation bcr,
where rpsi.policy_no=po.policy_no policy_prem_info ppi,staff_info si,CHANNEL_TYPE_TBL CTL,branch_info bi
where
si.emp_no = rpsi.service_no
and bi.branch_code = po.branch_code
and CTL.CHANNEL_TYPE = PO.CHANNEL_TYPE
and rpsi.policy_no=po.policy_no
and rpsi.policy_no=ppi.policy_no and rpsi.policy_no=ppi.policy_no
and bcr.branch_code=po.branch_code and bcr.branch_code=po.branch_code
and bcr.relative_grade>-1 and bcr.relative_grade>-1
and staff_info si on si.emp_no = rpsi.servicer_no and bcr.relative_branch_code = '864200'
and branch_info bi on bi.branch_code = po.branch_code AND ppi.PREM_DUE_DATE >= "TO_DATE"('2018-01-01 00:00:00','yyyy-MM-dd hh24:mi:ss')
and CHANNEL_TYPE_TBL CTL ON CTL.CHANNEL_TYPE = PO.CHANNEL_TYPE AND ppi.PREM_DUE_DATE <= "TO_DATE"('2018-01-30 00:00:00','yyyy-MM-dd hh24:mi:ss')
and bcr.relative_branch_code = #{branchCode,jdbcType=VARCHAR} and po.CHANNEL_TYPE in('01','02','03','04','05','07','09')
AND ppi.PREM_DUE_DATE >= "TO_DATE"(#{nowMonth},'yyyy-MM-dd hh24:mi:ss')
AND ppi.PREM_DUE_DATE &lt; "TO_DATE"(#{nextMonth},'yyyy-MM-dd hh24:mi:ss')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!