183 lines
12 KiB
MySQL
183 lines
12 KiB
MySQL
|
-- 网商贷用信申请临时表
|
||
|
select case when count(*)=1 then 'true' else 'false' end from wsd_pay_credit_app;
|
||
|
|
||
|
--
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='PRDCODE_TYPE';
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from sys_option a where a.id in('20606886698030211072');
|
||
|
|
||
|
-- 组件
|
||
|
SELECT case when count(*)=7 then 'true' else 'false' end from `rec_loan`.`biz_tran_config` where tran_code in('TRANWSD007','ONLINEWSD010','ONLINEWSD011','TRANWSD008','ONLINEWSD0006','TRANWSD006','TRANWSD005');
|
||
|
|
||
|
-- 字典网商贷产品版本
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_PRO_VERSION_TYPE';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20629620871161446400';
|
||
|
|
||
|
|
||
|
-- 字典 网商贷利率类型
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_RATE_TYPE';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20629693738360242176';
|
||
|
|
||
|
|
||
|
-- 字典 网商贷还款方式
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_REPAY_MODE';
|
||
|
SELECT case when count(*)=6 then 'true' else 'false' end from sys_option a where a.select_id='20629694522795753472';
|
||
|
|
||
|
-- 字典 网商贷出资模式
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_LOAN_MODE';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20629695786078175232';
|
||
|
|
||
|
-- 字典 网商贷资金用途
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_LOAN_USE';
|
||
|
SELECT case when count(*)=11 then 'true' else 'false' end from sys_option a where a.select_id='20629696766186356736';
|
||
|
|
||
|
-- 字典网商贷核身方式
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_CUST_VERIFY_TYPE';
|
||
|
SELECT case when count(*)=8 then 'true' else 'false' end from sys_option a where a.select_id='20629704733367468032';
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from `rec_loan`.`prd_declaration_parameters` where id ='629707564409421824';
|
||
|
SELECT case when count(*)=25 then 'true' else 'false' end from prd_tree p where p.pid='629680216939167744';
|
||
|
SELECT case when count(*)=4 then 'true' else 'false' end from prd_tree p where p.pid='629687537895473152';
|
||
|
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.id in ('20629720134583320576','20629720047627010048');
|
||
|
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from `rec_loan`.`prd_tran_config` where id in ('631866950766559232','630338285058654208') ;
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from `rec_loan`.`sys_option` a where a.id='20635513477993070592';
|
||
|
|
||
|
-- 字典 是否受托支付
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_ISDIRECT';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20635519908511219712';
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from `rec_loan`.`sys_config` where id='493364170624860163' ;
|
||
|
|
||
|
-- 字典 业务模式
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD2_BUSINESS_MODEL';
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from sys_option a where a.select_id='20636147928146116608';
|
||
|
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from `rec_loan`.`prd_declaration_parameters` where id ='632883358304567296';
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from sys_option a where a.id='20629683619559899136';
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from sys_option a where a.id='20598118581279916032';
|
||
|
|
||
|
select case when depart = 'PHDKCPSYB' then 'true' else 'false' end from prd_base_info where prd_code='10110002';
|
||
|
|
||
|
select case when is_empty='0' and key_value = 'BUSINESS_MODEL' then 'true' else 'false' end from prd_tree where id='596716345882574848';
|
||
|
select case when is_empty='0' and key_value = 'BUSINESS_MODEL' then 'true' else 'false' end from prd_tree where id='596720610277588992';
|
||
|
|
||
|
-- 客群区分标识
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='632988041568321536';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='PUSH_REASON';
|
||
|
SELECT case when count(*)=6 then 'true' else 'false' end from sys_option a where a.select_id='20633015993672663040';
|
||
|
|
||
|
|
||
|
-- 是否存有效⼯商信息
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633014808861474816';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='TRUE_FALSE_FLAG';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20633017648409477120';
|
||
|
|
||
|
|
||
|
-- 经营状态
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633015128345804800';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='COMPANY_INFO_STATUS_ID';
|
||
|
SELECT case when count(*)=9 then 'true' else 'false' end from sys_option a where a.select_id='20633029497733513216';
|
||
|
|
||
|
-- 公司类型
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633628635932131328';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='COMPANY_INFO_COMPANY_TYPE';
|
||
|
SELECT case when count(*)=161 then 'true' else 'false' end from sys_option a where a.select_id='20633609080459493376';
|
||
|
|
||
|
|
||
|
-- 币种
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633691179073929216';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='COMPANY_INFO_FUND_CURRENCY';
|
||
|
SELECT case when count(*)=3 then 'true' else 'false' end from sys_option a where a.select_id='20633690619016904704';
|
||
|
|
||
|
|
||
|
-- 核身方式
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633704602474119168';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_CUST_VERIFY_TYPE';
|
||
|
SELECT case when count(*)=8 then 'true' else 'false' end from sys_option a where a.select_id='20629704733367468032';
|
||
|
|
||
|
|
||
|
-- 核身结果
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id='633715806793891840';
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='CUST_VERIFY_RESULT';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20633714998618619904';
|
||
|
|
||
|
|
||
|
SELECT case when count(*)=8 then 'true' else 'false' end from prd_tree p where p.id in ('633735440716926976','633735440721121280','633736066855211008','633736603294109696','633736603348635648','633743828632866816','633798822421729282','633798822421729283');
|
||
|
|
||
|
SELECT case when count(*)=5 then 'true' else 'false' end from prd_tree p where p.id in ('596715801818431488','597478229808250880','596720026816348160','601359488800260096','596719595755143168');
|
||
|
|
||
|
|
||
|
SELECT case when count(*)=26 then 'true' else 'false' end from prd_tree p where p.id in ('633797720959750144','633797720959750145','633797720959750146','633797720959750147','633797720959750148','633797720959750149',
|
||
|
'633797720959750150','633797720959750151','633797720959750152','633797720959750153','633797720959750154','633797720963944448',
|
||
|
'633797720963944449','633797720963944450','633797720963944451','633797720963944452','633797720963944453','633797720963944454',
|
||
|
'633797720963944455','633797720963944456','633798822409146368','633798822417534976','633798822417534977','633798822417534978',
|
||
|
'633798822417534979','633798822421729281');
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_01_02';
|
||
|
SELECT case when count(*)=2 then 'true' else 'false' end from sys_option a where a.select_id='20633784410520420352';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_01_05';
|
||
|
SELECT case when count(*)=5 then 'true' else 'false' end from sys_option a where a.select_id='20633784771780018176';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_01_10';
|
||
|
SELECT case when count(*)=10 then 'true' else 'false' end from sys_option a where a.select_id='20633783736822923264';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_01_04';
|
||
|
SELECT case when count(*)=4 then 'true' else 'false' end from sys_option a where a.select_id='20633785258734518272';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_01_08';
|
||
|
SELECT case when count(*)=8 then 'true' else 'false' end from sys_option a where a.select_id='20633785772327043072';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_1_6';
|
||
|
SELECT case when count(*)=6 then 'true' else 'false' end from sys_option a where a.select_id='20633786210237546496';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_SEG_A_D';
|
||
|
SELECT case when count(*)=4 then 'true' else 'false' end from sys_option a where a.select_id='20633783342961000448';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_CUST_SEG_SMF_FINAL';
|
||
|
SELECT case when count(*)=6 then 'true' else 'false' end from sys_option a where a.select_id='20633786703563194368';
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='SMF_REPAYMENT_SEG';
|
||
|
SELECT case when count(*)=15 then 'true' else 'false' end from sys_option a where a.select_id='20633787173031641088';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='RISK_SMF_FINAL';
|
||
|
SELECT case when count(*)=5 then 'true' else 'false' end from sys_option a where a.select_id='20633788251974402048';
|
||
|
|
||
|
|
||
|
select case when count(*)=1 then 'true' else 'false' end from sys_select s where s.select_key='WSD_GRADE_1_5';
|
||
|
SELECT case when count(*)=5 then 'true' else 'false' end from sys_option a where a.select_id='20633788731446263808';
|
||
|
|
||
|
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from prd_tree p where p.id in ('639430988610539520');
|
||
|
|
||
|
SELECT case when count(*)=0 then 'true' else 'false' end from sys_app p where p.id in ('20595343766814982144','20595343877783683072','20595343961636208640');
|
||
|
|
||
|
-- 网商2.0生产影像地址
|
||
|
SELECT case when count(*)=7 then 'true' else 'false' end from sys_option p where p.id in ('639911642993532931','639911642993532932','639911642993532929','639911642993532928','635559706206666752','639911642993532930','639911642989338624');
|
||
|
|
||
|
-- 产品交易场景
|
||
|
SELECT case when count(*)=4 then 'true' else 'false' end from sys_option p where p.id in ('20630344063047958528','20630344168698281984','20637682203358134272','20637683092928069632');
|
||
|
|
||
|
-- 新增影像件批量
|
||
|
SELECT case when count(*)=7 then 'true' else 'false' end from `rec_job`.`xxl_job_info` p where p.id in ('179','183','184','185','186','187','188');
|
||
|
SELECT case when count(*)=1 then 'true' else 'false' end from `rec_job`.`xxl_job_info` p where p.id = '92' and `child_jobid` = '186';
|
||
|
|
||
|
|
||
|
|
||
|
|