更新大额交易口径与本地流水分析配置
This commit is contained in:
@@ -176,39 +176,34 @@ and (
|
||||
)
|
||||
;
|
||||
",大额存现金额,流水明细,一般
|
||||
,,短时间多次存现,短时间多次存现,次数超过设置限额,单日存现总次数,FREQUENT_CASH_DEPOSIT,员工本人,员工及其亲属账户中,按日统计现金存入次数超阈值,"sql<br>--员工及其亲属 大额现金存入次数
|
||||
select id_card,count(1)
|
||||
from
|
||||
(
|
||||
,,短时间多次存现,短时间多次存现,次数超过设置限额,单日存现总次数,FREQUENT_CASH_DEPOSIT,员工本人,员工及其亲属账户中,按日统计现金存入次数超阈值,"sql<br>--员工单日大额存现次数
|
||||
select t1.id_card
|
||||
,amount_cr
|
||||
,left(t2.trx_time,10) as cash_trans_date
|
||||
,count(1) as cash_count
|
||||
from
|
||||
ccdi_base_staff t1
|
||||
inner join
|
||||
ccdi_bank_statement t2
|
||||
on t1.id_card = t2.cret_no
|
||||
where project_id = PROJECT_ID
|
||||
and amount_cr> $$$$$$
|
||||
and amount_cr>$$$$ ---大额存现阈值参数
|
||||
and (
|
||||
(((user_memo like '%现金%' and user_memo not like '%金管理%' and user_memo not like '%金添利%' and user_memo not like '%现金利%' and user_memo not like '%现金宝%' and user_memo not like '%金分析%' ) or user_memo like '%存现%' or user_memo like '%现存%' or cash_type like '%现金%' or cash_type like '%存现%' or cash_type like '%现存%' or cash_type like '%金存入%' or user_memo like '%金存入%' or (user_memo like '%ATM%' and (user_memo like '%存款%' or user_memo like '%转入%')) or (cash_type like '%ATM%' and (cash_type like '%存款%' or cash_type like '%转入%'))) and (customer_account_name = '' or customer_account_name = '无' or customer_account_name like '%存现%') or user_memo like '%DEPOSIT%') or
|
||||
((customer_account_name = '库存现金' or ((user_memo like '%现金存款%' or user_memo like '%自助存款%' or user_memo like '%CRS存款%' or cash_type like '%现金存款%' or cash_type like '%自助存款%' or cash_type like '%本行CRS存款%' or cash_type like '%柜面%' or user_memo like '%柜面%') and customer_account_name = '' )) or (customer_account_name = '现金' and user_memo not like '%借款%') or user_memo like '%本行ATM%')
|
||||
)
|
||||
union all
|
||||
select t1.person_id
|
||||
,amount_cr
|
||||
from
|
||||
ccdi_staff_fmy_relation t1
|
||||
inner join
|
||||
ccdi_bank_statement t2
|
||||
on t1.relation_cert_no = t2.cret_no
|
||||
where t1.status = 1
|
||||
and t2.project_id = PROJECT_ID
|
||||
and amount_cr> $$$$$$$
|
||||
and (
|
||||
(((user_memo like '%现金%' and user_memo not like '%金管理%' and user_memo not like '%金添利%' and user_memo not like '%现金利%' and user_memo not like '%现金宝%' and user_memo not like '%金分析%' ) or user_memo like '%存现%' or user_memo like '%现存%' or cash_type like '%现金%' or cash_type like '%存现%' or cash_type like '%现存%' or cash_type like '%金存入%' or user_memo like '%金存入%' or (user_memo like '%ATM%' and (user_memo like '%存款%' or user_memo like '%转入%')) or (cash_type like '%ATM%' and (cash_type like '%存款%' or cash_type like '%转入%'))) and (customer_account_name = '' or customer_account_name = '无' or customer_account_name like '%存现%') or user_memo like '%DEPOSIT%') or
|
||||
((customer_account_name = '库存现金' or ((user_memo like '%现金存款%' or user_memo like '%自助存款%' or user_memo like '%CRS存款%' or cash_type like '%现金存款%' or cash_type like '%自助存款%' or cash_type like '%本行CRS存款%' or cash_type like '%柜面%' or user_memo like '%柜面%') and customer_account_name = '' )) or (customer_account_name = '现金' and user_memo not like '%借款%') or user_memo like '%本行ATM%')
|
||||
)
|
||||
)group by id_card
|
||||
group by t1.id_card,left(t2.trx_time,10)
|
||||
;
|
||||
",单日存现总次数,个人、日期、次数,一般
|
||||
1.6,,大额转账交易,大额转账单笔超过设置限额,大额转账金额(单笔),large_tfr_cnt,员工本人,员工及其亲属账户中,筛选单笔 amount_dr 超金额阈值的数据,,大额转账金额,流水明细,一般
|
||||
1.6,,大额转账交易,大额转账单笔超过设置限额,大额转账金额(单笔),large_tfr_cnt,员工本人,员工及其亲属账户中,筛选单笔 amount_dr 超金额阈值的数据,"--员工大额转账(排除同名转账)转出超阈值 流水id
|
||||
select t2.bank_statement_id
|
||||
from
|
||||
ccdi_base_staff t1
|
||||
inner join
|
||||
ccdi_bank_statement t2
|
||||
on t1.id_card = t2.cret_no
|
||||
where project_id = PROJECT_ID
|
||||
and amount_dr> $$$$$$ --大额转账阈值
|
||||
and (customer_account_name rlike '转账' or user_memo rlike '转帐|转账|汇入|转存|红包|汇款|网转|转入' or cash_type rlike '转帐|转账|汇入|转存|红包|汇款|网转|转入')
|
||||
and user_memo not like '%款%'
|
||||
and t2.le_account_name <> t2.customer_account_name --排除同名交易
|
||||
;",大额转账金额,流水明细,一般
|
||||
|
||||
|
Reference in New Issue
Block a user