delete from pawmrpcs.data_check_rule_set where RULE_CODE in(
'LCZX.A.001.007',
'LCZX.A.002.010',
'LCZX.A.003.003',
'LCZX.A.004.003',
'LCZX.A.004.071',
'LCZX.A.025.042',
'LCZX.A.025.046',
'LCZX.A.034.003',
'LCZX.A.057.042',
'LCZX.A.057.046',
'LCZX.A.070.007',
'LCZX_BANK.A.002.010',
'LCZX_BANK.A.003.003',
'LCZX_BANK.A.004.003',
'LCZX_BANK.A.004.071',
'LCZX_BANK.A.025.042',
'LCZX_BANK.A.025.046',
'LCZX_BANK.A.057.042',
'LCZX_BANK.A.057.046',
'RH299.A.1-4.014',
'RH299.A.2-3.013',
'RH299_BANK.A.1-4.014',
'RH299_BANK.A.2-3.013'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.001.007', 't_r_lczx_prod_raise_register', '{产品登记编码}定长公募理财产品14位,私募产品定长为15位,只能由英文或数字组成', '{产品登记编码}定长公募理财产品14位,私募产品定长为15位,只能由英文或数字组成', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'PROD_REG_CODE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.PROD_REG_CODE, \r\n T2.ISSUE_TYPE\r\n FROM t_r_lczx_prod_raise_register T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T1.PROD_REG_CODE = T2.PROD_REG_ID) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (PROD_REG_CODE using GBK)) in (\'14\',\'15\') and \r\n(((length(convert (PROD_REG_CODE using GBK)) <> 14 and ISSUE_TYPE=\'公募\' )\r\nOR (length(convert (PROD_REG_CODE using GBK)) <> 15 and ISSUE_TYPE=\'私募\') ) \r\nOR PROD_REG_CODE REGEXP \'[^A-Za-z0-9]\' = 1)\r\n)\r\nor (length(convert (PROD_REG_CODE using GBK)) NOT IN (\'14\',\'15\') or PROD_REG_CODE REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.002.010', 't_r_lczx_prod_duration_register', '{产品登记编码}数据类型为:14位字符型,定长(公募理财产品)/15位字符型,定长(私募理财产品)', '{产品登记编码}数据类型为:14位字符型,定长(公募理财产品)/15位字符型,定长(私募理财产品)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\n \'@BATCH_ID\' AS BATCH_ID,\n \'@RULE_CODE\' AS RULE_CODE,\n GROUP_CONCAT( DISTINCT T.N_ID ) AS N_ID_LIST,\n \'REPFINPRODREGID\' AS COLUMN_CODE,\n 0 AS RESULT_CODE,\n \'@FILE_DATE\' AS FILE_DATE,\n T.FUND_CATEGORY AS INSTI_TYPE,\n NULL AS LEFT_CALCULATION_VALUE,\n NULL AS RIGHT_CALCULATION_VALUE,\n NULL AS DIFFERENCE \nFROM\n (\nSELECT\n T1.FILE_DATE,\n T1.N_ID,\n T1.FUND_CATEGORY,\n T1.REPFINPRODREGID,\n T2.ISSUE_TYPE \nFROM\n t_r_lczx_prod_duration_register T1\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2 ON T1.REPFINPRODREGID = T2.PROD_REG_ID \n ) T \nWHERE\n T.FILE_DATE = \'@FILE_DATE\' \n AND((length(convert (REPFINPRODREGID using GBK)) in (\'14\',\'15\') and (\r\n (\n ( LENGTH( CONVERT ( REPFINPRODREGID USING GBK ) ) <> 14 AND ISSUE_TYPE = \'公募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1 ) \n OR ( LENGTH( CONVERT ( REPFINPRODREGID USING GBK ) ) <> 15 AND ISSUE_TYPE = \'私募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1 ) \n )))\r\n or (length(convert (REPFINPRODREGID using GBK)) NOT IN (\'14\',\'15\') or REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1))\nGROUP BY\n T.FUND_CATEGORY,\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.003.003', 't_r_lczx_prod_end_info', '{产品登记编码}有数字和英文组成,公募理财产品位14位字符,私募理财产品为15位字符', '{产品登记编码}有数字和英文组成,公募理财产品位14位字符,私募理财产品为15位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'ISSUE_TYPE,PROD_REG_ID\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.PROD_REG_ID, \r\n T2.ISSUE_TYPE\r\n FROM t_r_lczx_prod_end_info T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T1.PROD_REG_ID = T2.PROD_REG_ID) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (PROD_REG_ID using GBK)) in (\'14\',\'15\') and\r\n( \r\n(ISSUE_TYPE=\'公募\' and (length(convert (PROD_REG_ID using GBK)) <> 14 OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))\r\nOR (ISSUE_TYPE=\'私募\' and (length(convert (PROD_REG_ID using GBK)) <> 15 OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))\r\n))\r\n or (length(convert (PROD_REG_ID using GBK)) NOT IN (\'14\',\'15\') or PROD_REG_ID REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.004.003', 't_r_lczx_zcxx_zcjy', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符;需通过关联产品基本信息表获取募集方式', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符;需通过关联产品基本信息表获取募集方式', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REP_FINPROD_REG_ID\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.REP_FINPROD_REG_ID, \r\n T2.ISSUE_TYPE\r\n FROM t_r_lczx_zcxx_zcjy T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T1.REP_FINPROD_REG_ID = T2.PROD_REG_ID) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (REP_FINPROD_REG_ID using GBK)) in (\'14\',\'15\') and(\r\n((length(convert (REP_FINPROD_REG_ID using GBK)) <> 14 and ISSUE_TYPE=\'公募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1)\r\nOR (length(convert (REP_FINPROD_REG_ID using GBK)) <> 15 and ISSUE_TYPE=\'私募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))))\r\nOR (length(convert (REP_FINPROD_REG_ID using GBK)) NOT IN (\'14\',\'15\') or REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.004.071', 't_r_lczx_zcxx_zcjy', '当“交易对手方类型”选择“其他”时,{备注}必填。', '当“交易对手方类型”选择“其他”时,{备注}必填。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REP_TRADE_COMPONENT_TYPE,REMARK\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCXX_ZCJY T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND REP_TRADE_COMPONENT_TYPE =\'99\' AND REMARK IS NULL\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.025.042', 't_r_lczx_zcys_18', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'IS_EXP_RTN,EXP_RTN_HIGH\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_18 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((IS_EXP_RTN =\'01\' AND EXP_RTN_HIGH IS NULL) \r\nOR (IS_EXP_RTN =\'02\' AND EXP_RTN_HIGH IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.025.046', 't_r_lczx_zcys_18', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'IS_EXP_RTN,EXP_RTN_LOW\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_18 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (IS_EXP_RTN =\'02\' AND EXP_RTN_LOW IS NOT NULL)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.034.003', 't_r_lczx_issuance_register', '{产品登记编码}由英文或数字组成,对于公募理财产品,{产品登记编码}14位字符;对于私募理财产品,{产品登记编码}15位字符;', '{产品登记编码}由英文或数字组成,对于公募理财产品,{产品登记编码}14位字符;对于私募理财产品,{产品登记编码}15位字符;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REGISTRATION_CODE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.REGISTRATION_CODE, \r\n T2.SUBSCRIPTION_TYPE\r\n FROM t_r_lczx_issuance_register T1\r\n LEFT JOIN t_r_lczx_filing_register_result T2\r\n ON T2.PRO_CODE = T1.PRODUCT_CODE) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (REGISTRATION_CODE using GBK)) in (\'14\',\'15\') and(\r\n((length(convert (REGISTRATION_CODE using GBK)) <> 14 and SUBSCRIPTION_TYPE=\'01\' OR REGISTRATION_CODE REGEXP \'[^A-Za-z0-9]\'= 1)\r\nOR (length(convert (REGISTRATION_CODE using GBK)) <> 15 and SUBSCRIPTION_TYPE=\'02\' OR REGISTRATION_CODE REGEXP \'[^A-Za-z0-9]\'= 1) ) ))\r\nor (length(convert (REGISTRATION_CODE using GBK)) NOT IN (\'14\',\'15\') or REGISTRATION_CODE REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.057.042', 't_r_lczx_zcys_all', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_HIGH_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand ((IS_EXP_RTN_18 in(\'01\') and EXP_RTN_HIGH_18 is NULL)\r\nor (IS_EXP_RTN_18 in(\'02\') and EXP_RTN_HIGH_18 is not NULL))\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.057.046', 't_r_lczx_zcys_all', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_LOW_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand (EXP_RTN_LOW_18 is not null and IS_EXP_RTN_18 =\'02\')\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.070.007', 't_r_zjjy_01', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符', 'sql', '1', NULL, NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE, \r\nGROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'PROD_REG_ID\' AS COLUMN_CODE, \r\n0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE, NULL AS INSTI_TYPE, \r\nNULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE, \r\nNULL AS DIFFERENCE \r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, \r\n T1.PROD_REG_ID, T2.ISSUE_TYPE \r\n FROM T_R_ZJJY_01 T1 \r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2 \r\n ON T1.PROD_REG_ID = T2.PROD_REG_ID) T\r\n WHERE T.FILE_DATE = \'@FILE_DATE\' \r\n \r\n AND ((length(convert (PROD_REG_ID using GBK)) in (\'14\',\'15\') and(\r\n ((length(convert (PROD_REG_ID using GBK)) <> 14 and ISSUE_TYPE=\'公募\' OR T.PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1)\r\n OR (length(convert (PROD_REG_ID using GBK)) <> 15 and ISSUE_TYPE=\'私募\' OR T.PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1) ))) \r\n or (length(convert (PROD_REG_ID using GBK)) NOT IN (\'14\',\'15\') or PROD_REG_ID REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.002.010', 't_r_lczx_prod_duration_register_bank', '{产品登记编码}数据类型为:14位字符型,定长(公募理财产品)/15位字符型,定长(私募理财产品)', '{产品登记编码}数据类型为:14位字符型,定长(公募理财产品)/15位字符型,定长(私募理财产品)', 'sql', '0', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\n \'@BATCH_ID\' AS BATCH_ID,\n \'@RULE_CODE\' AS RULE_CODE,\n GROUP_CONCAT( DISTINCT T.N_ID ) AS N_ID_LIST,\n \'REPFINPRODREGID\' AS COLUMN_CODE,\n 0 AS RESULT_CODE,\n \'@FILE_DATE\' AS FILE_DATE,\n T.FUND_CATEGORY AS INSTI_TYPE,\n NULL AS LEFT_CALCULATION_VALUE,\n NULL AS RIGHT_CALCULATION_VALUE,\n NULL AS DIFFERENCE \nFROM\n (\nSELECT\n T1.FILE_DATE,\n T1.N_ID,\n T1.FUND_CATEGORY,\n T1.REPFINPRODREGID,\n T2.ISSUE_TYPE \nFROM\n t_r_lczx_prod_duration_register_bank T1\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2 ON T1.REPFINPRODREGID = T2.PROD_REG_ID \n ) T \nWHERE\n T.FILE_DATE = \'@FILE_DATE\' \n AND((length(convert (REPFINPRODREGID using GBK)) in (\'14\',\'15\') and (\r\n (\n ( LENGTH( CONVERT ( REPFINPRODREGID USING GBK ) ) <> 14 AND ISSUE_TYPE = \'公募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1 ) \n OR ( LENGTH( CONVERT ( REPFINPRODREGID USING GBK ) ) <> 15 AND ISSUE_TYPE = \'私募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1 ) \n )))\r\n or (length(convert (REPFINPRODREGID using GBK)) NOT IN (\'14\',\'15\') or REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\' = 1))\nGROUP BY\n T.FUND_CATEGORY,\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.003.003', 't_r_lczx_prod_end_info_bank', '{产品登记编码}有数字和英文组成,公募理财产品位14位字符,私募理财产品为15位字符', '{产品登记编码}有数字和英文组成,公募理财产品位14位字符,私募理财产品为15位字符', 'sql', '0', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'ISSUE_TYPE,PROD_REG_ID\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.PROD_REG_ID, \r\n T2.ISSUE_TYPE\r\n FROM t_r_lczx_prod_end_info_bank T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T1.PROD_REG_ID = T2.PROD_REG_ID) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (PROD_REG_ID using GBK)) in (\'14\',\'15\') and\r\n( \r\n(ISSUE_TYPE=\'公募\' and (length(convert (PROD_REG_ID using GBK)) <> 14 OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))\r\nOR (ISSUE_TYPE=\'私募\' and (length(convert (PROD_REG_ID using GBK)) <> 15 OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))\r\n))\r\n or (length(convert (PROD_REG_ID using GBK)) NOT IN (\'14\',\'15\') or PROD_REG_ID REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.004.003', 't_r_lczx_zcxx_zcjy_bank', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符;需通过关联产品基本信息表获取募集方式', '{产品登记编码}公募理财产品定长14位字符,私募理财产品定长15位字符;需通过关联产品基本信息表获取募集方式', 'sql', '0', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REP_FINPROD_REG_ID\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.REP_FINPROD_REG_ID, \r\n T2.ISSUE_TYPE\r\n FROM t_r_lczx_zcxx_zcjy_bank T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T1.REP_FINPROD_REG_ID = T2.PROD_REG_ID) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((length(convert (REP_FINPROD_REG_ID using GBK)) in (\'14\',\'15\') and(\r\n((length(convert (REP_FINPROD_REG_ID using GBK)) <> 14 and ISSUE_TYPE=\'公募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1)\r\nOR (length(convert (REP_FINPROD_REG_ID using GBK)) <> 15 and ISSUE_TYPE=\'私募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))))\r\nOR (length(convert (REP_FINPROD_REG_ID using GBK)) NOT IN (\'14\',\'15\') or REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\' = 1))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.004.071', 't_r_lczx_zcxx_zcjy_bank', '当“交易对手方类型”选择“其他”时,{备注}必填。', '当“交易对手方类型”选择“其他”时,{备注}必填。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REP_TRADE_COMPONENT_TYPE,REMARK\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcxx_zcjy_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND REP_TRADE_COMPONENT_TYPE =\'99\' AND REMARK IS NULL\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.025.042', 't_r_lczx_zcys_18_bank', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'IS_EXP_RTN,EXP_RTN_HIGH\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_18_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((IS_EXP_RTN =\'01\' AND EXP_RTN_HIGH IS NULL) \r\nOR (IS_EXP_RTN =\'02\' AND EXP_RTN_HIGH IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.025.046', 't_r_lczx_zcys_18_bank', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'IS_EXP_RTN,EXP_RTN_LOW\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_18_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (IS_EXP_RTN =\'02\' AND EXP_RTN_LOW IS NOT NULL)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.057.042', 't_r_lczx_zcys_all_bank', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_HIGH_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand ((IS_EXP_RTN_18 in(\'01\') and EXP_RTN_HIGH_18 is NULL)\r\nor (IS_EXP_RTN_18 in(\'02\') and EXP_RTN_HIGH_18 is not NULL))\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.057.046', 't_r_lczx_zcys_all_bank', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_LOW_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand (EXP_RTN_LOW_18 is not null and IS_EXP_RTN_18 =\'02\')\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-4.014', 't_r_299_1_4', '规则18:表1-4,只分了一个地区(大于30亿元),请核实;', '规则18:表1-4,只分了一个地区(大于30亿元),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n COLUMN_CODE,RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (\r\nSELECT GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n COL_ORG AS COLUMN_CODE,\r\n RESULT_CODE, FILE_DATE, INSTI_TYPE,FUND_TYPE FROM (\r\nSELECT \r\nCASE\r\n WHEN \r\n SUM(IF(a.ITEM_CODE = \'400000\', V, V2)) > 3 * POWER(10, 5)\r\n and ABS(SUM(IF(a.ITEM_CODE NOT IN (\'400000\'), V, 0)) - V2) < 10000 THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, a.FDATE AS FILE_DATE,\r\n a.N_ID,\r\n a.COL_ORG,\r\n a.FUND_CATEGORY AS INSTI_TYPE,a.FUND_TYPE\r\nFROM \r\n(SELECT * FROM t_r_299_report_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\') A\r\nLEFT JOIN \r\n(select TABLE_NAME,FDATE,COL,V as V2,FUND_TYPE,FUND_CATEGORY from T_R_299_REPORT_RESULT \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\'\r\nAND ITEM_CODE = \'400000\') B\r\nON A.FDATE=B.FDATE\r\nAND A.TABLE_NAME=B.TABLE_NAME\r\nAND A.FUND_TYPE=B.FUND_TYPE\r\nAND A.FUND_CATEGORY=B.FUND_CATEGORY\r\nGROUP BY A.FDATE, A.FUND_CATEGORY, A.FUND_TYPE, A.ITEM_CODE, A.COL\r\nUNION ALL \r\nSELECT 0 AS RESULT_CODE,FDATE as FILE_DATE, N_ID,COL_ORG,FUND_CATEGORY AS INSTI_TYPE,FUND_TYPE FROM t_r_299_report_result\r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\'\r\nAND ITEM_CODE = \'400000\') C\r\nWHERE RESULT_CODE=0\r\nGROUP BY C.FILE_DATE, C.INSTI_TYPE,C.FUND_TYPE, C.RESULT_CODE\r\nHAVING COUNT(1)>1) T\r\nGROUP BY T.FILE_DATE, T.INSTI_TYPE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.2-3.013', 't_r_299_2_3', '规则31:表2-3,只分了一个地区(大于30亿元),请核实;', '规则31:表2-3,只分了一个地区(大于30亿元),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n COLUMN_CODE,RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (\r\nSELECT GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n COL_ORG AS COLUMN_CODE,\r\n RESULT_CODE, FILE_DATE, INSTI_TYPE,FUND_TYPE FROM (\r\nSELECT \r\nCASE\r\n WHEN \r\n SUM(IF(a.ITEM_CODE = \'a00000\', V, V2)) > 3 * POWER(10, 5)\r\n and ABS(SUM(IF(a.ITEM_CODE NOT IN (\'a00000\'), V, 0)) - V2) < 10000 THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, a.FDATE AS FILE_DATE,\r\n a.N_ID,\r\n a.COL_ORG,\r\n a.FUND_CATEGORY AS INSTI_TYPE,a.FUND_TYPE\r\nFROM \r\n(SELECT * FROM t_r_299_report_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\') A\r\nLEFT JOIN \r\n(select TABLE_NAME,FDATE,COL,V as V2,FUND_TYPE,FUND_CATEGORY from T_R_299_REPORT_RESULT \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\'\r\nAND ITEM_CODE = \'a00000\') B\r\nON A.FDATE=B.FDATE\r\nAND A.TABLE_NAME=B.TABLE_NAME\r\nAND A.FUND_TYPE=B.FUND_TYPE\r\nAND A.FUND_CATEGORY=B.FUND_CATEGORY\r\nGROUP BY A.FDATE, A.FUND_CATEGORY, A.FUND_TYPE, A.ITEM_CODE, A.COL\r\nUNION ALL \r\nSELECT 0 AS RESULT_CODE,FDATE as FILE_DATE, N_ID,COL_ORG,FUND_CATEGORY AS INSTI_TYPE,FUND_TYPE FROM t_r_299_report_result\r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\'\r\nAND ITEM_CODE = \'a00000\') C\r\nWHERE RESULT_CODE=0\r\nGROUP BY C.FILE_DATE, C.INSTI_TYPE,C.FUND_TYPE, C.RESULT_CODE\r\nHAVING COUNT(1)>1) T\r\nGROUP BY T.FILE_DATE, T.INSTI_TYPE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-4.014', 't_r_299_1_4_bank', '规则18:表1-4,只分了一个地区(大于30亿元),请核实;', '规则18:表1-4,只分了一个地区(大于30亿元),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n COLUMN_CODE,RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (\r\nSELECT GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n COL_ORG AS COLUMN_CODE,\r\n RESULT_CODE, FILE_DATE, INSTI_TYPE,FUND_TYPE FROM (\r\nSELECT \r\nCASE\r\n WHEN \r\n SUM(IF(a.ITEM_CODE = \'400000\', V, V2)) > 3 * POWER(10, 5)\r\n and ABS(SUM(IF(a.ITEM_CODE NOT IN (\'400000\'), V, 0)) - V2) < 10000 THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, a.FDATE AS FILE_DATE,\r\n a.N_ID,\r\n a.COL_ORG,\r\n a.FUND_CATEGORY AS INSTI_TYPE,a.FUND_TYPE\r\nFROM \r\n(SELECT * FROM t_r_299_report_bank_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\') A\r\nLEFT JOIN \r\n(select TABLE_NAME,FDATE,COL,V as V2,FUND_TYPE,FUND_CATEGORY from t_r_299_report_bank_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\'\r\nAND ITEM_CODE = \'400000\') B\r\nON A.FDATE=B.FDATE\r\nAND A.TABLE_NAME=B.TABLE_NAME\r\nAND A.FUND_TYPE=B.FUND_TYPE\r\nAND A.FUND_CATEGORY=B.FUND_CATEGORY\r\nGROUP BY A.FDATE, A.FUND_CATEGORY, A.FUND_TYPE, A.ITEM_CODE, A.COL\r\nUNION ALL \r\nSELECT 0 AS RESULT_CODE,FDATE as FILE_DATE, N_ID,COL_ORG,FUND_CATEGORY AS INSTI_TYPE,FUND_TYPE FROM t_r_299_report_bank_result\r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'1_4\')\r\nAND COL = \'G\'\r\nAND ITEM_CODE = \'400000\') C\r\nWHERE RESULT_CODE=0\r\nGROUP BY C.FILE_DATE, C.INSTI_TYPE,C.FUND_TYPE, C.RESULT_CODE\r\nHAVING COUNT(1)>1) T\r\nGROUP BY T.FILE_DATE, T.INSTI_TYPE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-3.013', 't_r_299_2_3_bank', '规则31:表2-3,只分了一个地区(大于30亿元),请核实;', '规则31:表2-3,只分了一个地区(大于30亿元),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n COLUMN_CODE,RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (\r\nSELECT GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n COL_ORG AS COLUMN_CODE,\r\n RESULT_CODE, FILE_DATE, INSTI_TYPE,FUND_TYPE FROM (\r\nSELECT \r\nCASE\r\n WHEN \r\n SUM(IF(a.ITEM_CODE = \'a00000\', V, V2)) > 3 * POWER(10, 5)\r\n and ABS(SUM(IF(a.ITEM_CODE NOT IN (\'a00000\'), V, 0)) - V2) < 10000 THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, a.FDATE AS FILE_DATE,\r\n a.N_ID,\r\n a.COL_ORG,\r\n a.FUND_CATEGORY AS INSTI_TYPE,a.FUND_TYPE\r\nFROM \r\n(SELECT * FROM t_r_299_report_bank_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\') A\r\nLEFT JOIN \r\n(select TABLE_NAME,FDATE,COL,V as V2,FUND_TYPE,FUND_CATEGORY from t_r_299_report_bank_result \r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\'\r\nAND ITEM_CODE = \'a00000\') B\r\nON A.FDATE=B.FDATE\r\nAND A.TABLE_NAME=B.TABLE_NAME\r\nAND A.FUND_TYPE=B.FUND_TYPE\r\nAND A.FUND_CATEGORY=B.FUND_CATEGORY\r\nGROUP BY A.FDATE, A.FUND_CATEGORY, A.FUND_TYPE, A.ITEM_CODE, A.COL\r\nUNION ALL \r\nSELECT 0 AS RESULT_CODE,FDATE as FILE_DATE, N_ID,COL_ORG,FUND_CATEGORY AS INSTI_TYPE,FUND_TYPE FROM t_r_299_report_bank_result\r\nWHERE FDATE = \'@FILE_DATE\'\r\nAND TABLE_NAME IN (\'2_3\')\r\nAND COL = \'A\'\r\nAND ITEM_CODE = \'a00000\') C\r\nWHERE RESULT_CODE=0\r\nGROUP BY C.FILE_DATE, C.INSTI_TYPE,C.FUND_TYPE, C.RESULT_CODE\r\nHAVING COUNT(1)>1) T\r\nGROUP BY T.FILE_DATE, T.INSTI_TYPE;');
delete from pawmrpcs.data_check_rule_set where RULE_CODE IN(
'LCZX.A.003.012',
'LCZX.A.016.031',
'LCZX.A.019.047',
'LCZX.A.022.105',
'LCZX.A.022.107',
'LCZX.A.031.052',
'LCZX.A.032.035',
'LCZX.A.062.019',
'LCZX_BANK.A.016.031',
'LCZX_BANK.A.019.047',
'LCZX_BANK.A.022.105',
'LCZX_BANK.A.022.107',
'LCZX_BANK.A.031.052',
'LCZX_BANK.A.032.035',
'LCZX_BANK.A.062.019',
'RH299.A.1-2.014',
'RH299_BANK.A.1-2.014'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.003.012', 't_r_lczx_prod_end_info', '{银行实际实现收入}={本机构管理费}', '{银行实际实现收入}={本机构管理费}', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'BANK_INCO_ACT,HOLD_FEE_S,MANAGER_FEE,SALE_FEE_S,OTHER_FEE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n GROUP_CONCAT(IFNULL(T.BANK_INCO_ACT, 0)) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(IFNULL(T.MANAGER_FEE, 0)) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(ABS(IFNULL(T.BANK_INCO_ACT, 0) - IFNULL(T.MANAGER_FEE, 0)\r\n ))AS DIFFERENCE\r\nFROM T_R_LCZX_PROD_END_INFO T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND IFNULL(T.BANK_INCO_ACT, 0) <> IFNULL(T.MANAGER_FEE, 0)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.016.031', 't_r_lczx_zcys_09', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_zcys_09 T\r\n WHERE T.FILE_DATE = \'@FILE_DATE\'\r\n AND (LENGTH(CONVERT(ABS(T.TERM) USING GBK))>5 OR (ABS(T.TERM) REGEXP \'[^0-9]\') = 1)\r\n GROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.019.047', 't_r_lczx_zcys_02', '{存款类型}如果有值必须在《存款类型表》中存在', '{存款类型}如果有值必须在《存款类型表》中存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CASH_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_02 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_DEPOSIT_TYPE\',T.CASH_TYPE) = 0\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.105', 't_r_lczx_zcys_05', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUA_NATURE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\')AND T.GUA_NATURE IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') or T.GUA_TYPE is null) AND T.GUA_NATURE IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.107', 't_r_lczx_zcys_05', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUAR_FINAN_RELATION\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\') AND T.GUAR_FINAN_RELATION IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') OR T.GUA_TYPE IS NULL) AND T.GUAR_FINAN_RELATION IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.031.052', 't_r_lczx_practitioner', '{电子邮箱}格式为 xx@xx.xx', '电子邮箱地址不合法,合法email格式如:John@163.com。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EMAIL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_practitioner T\r\nWHERE FILE_DATE=\'@FILE_DATE\'\r\nand (EMAIL not like \'%@%.%\' or EMAIL like \'@%\' or EMAIL like \'%@.%\' or EMAIL like \'%@%.\')\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.035', 't_r_lczx_underlying_assets', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (REPORT_DATE REGEXP \'[^0-9]\'=1 OR LENGTH(REPORT_DATE)<>8)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.062.019', 't_r_lczx_zcys_all', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:19:22', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_ALL T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_09\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.016.031', 't_r_lczx_zcys_09_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_zcys_09_bank T\r\n WHERE T.FILE_DATE = \'@FILE_DATE\'\r\n AND (LENGTH(CONVERT(ABS(T.TERM) USING GBK))>5 OR (ABS(T.TERM) REGEXP \'[^0-9]\') = 1)\r\n GROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.019.047', 't_r_lczx_zcys_02_bank', '{存款类型}如果有值必须在《存款类型表》中存在', '{存款类型}如果有值必须在《存款类型表》中存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CASH_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_02_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_DEPOSIT_TYPE\',T.CASH_TYPE) = 0\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.105', 't_r_lczx_zcys_05_bank', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUA_NATURE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\')AND T.GUA_NATURE IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') or T.GUA_TYPE is null) AND T.GUA_NATURE IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.107', 't_r_lczx_zcys_05_bank', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUAR_FINAN_RELATION\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\') AND T.GUAR_FINAN_RELATION IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') OR T.GUA_TYPE IS NULL) AND T.GUAR_FINAN_RELATION IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.031.052', 't_r_lczx_practitioner_bank', '{电子邮箱}格式为 xx@xx.xx', '电子邮箱地址不合法,合法email格式如:John@163.com。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EMAIL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_practitioner_bank T\r\nWHERE FILE_DATE=\'@FILE_DATE\'\r\nand (EMAIL not like \'%@%.%\' or EMAIL like \'@%\' or EMAIL like \'%@.%\' or EMAIL like \'%@%.\')\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.035', 't_r_lczx_underlying_assets_bank', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (REPORT_DATE REGEXP \'[^0-9]\'=1 OR LENGTH(REPORT_DATE)<>8)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.062.019', 't_r_lczx_zcys_all_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:37:04', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_09\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-2.014', 't_r_299_1_2', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) = \r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) ) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\',T.V,0)))=0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 ) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,ITEM_CODE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\',\'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-2.014', 't_r_299_1_2_bank', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) = \r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) ) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\',T.V,0)))=0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 ) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,ITEM_CODE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\',\'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
delete from pawmrpcs.data_check_rule_set where RULE_CODE IN(
'LCZX.A.003.012',
'LCZX.A.016.031',
'LCZX.A.019.047',
'LCZX.A.022.105',
'LCZX.A.022.107',
'LCZX.A.031.052',
'LCZX.A.032.035',
'LCZX.A.062.019',
'LCZX_BANK.A.016.031',
'LCZX_BANK.A.019.047',
'LCZX_BANK.A.022.105',
'LCZX_BANK.A.022.107',
'LCZX_BANK.A.031.052',
'LCZX_BANK.A.032.035',
'LCZX_BANK.A.062.019',
'RH299.A.1-2.014',
'RH299_BANK.A.1-2.014'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.003.012', 't_r_lczx_prod_end_info', '{银行实际实现收入}={本机构管理费}', '{银行实际实现收入}={本机构管理费}', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'BANK_INCO_ACT,HOLD_FEE_S,MANAGER_FEE,SALE_FEE_S,OTHER_FEE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n GROUP_CONCAT(IFNULL(T.BANK_INCO_ACT, 0)) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(IFNULL(T.MANAGER_FEE, 0)) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(ABS(IFNULL(T.BANK_INCO_ACT, 0) - IFNULL(T.MANAGER_FEE, 0)\r\n ))AS DIFFERENCE\r\nFROM T_R_LCZX_PROD_END_INFO T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND IFNULL(T.BANK_INCO_ACT, 0) <> IFNULL(T.MANAGER_FEE, 0)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.016.031', 't_r_lczx_zcys_09', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_zcys_09 T\r\n WHERE T.FILE_DATE = \'@FILE_DATE\'\r\n AND (LENGTH(CONVERT(ABS(T.TERM) USING GBK))>5 OR (ABS(T.TERM) REGEXP \'[^0-9]\') = 1)\r\n GROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.019.047', 't_r_lczx_zcys_02', '{存款类型}如果有值必须在《存款类型表》中存在', '{存款类型}如果有值必须在《存款类型表》中存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CASH_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_02 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_DEPOSIT_TYPE\',T.CASH_TYPE) = 0\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.105', 't_r_lczx_zcys_05', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUA_NATURE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\')AND T.GUA_NATURE IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') or T.GUA_TYPE is null) AND T.GUA_NATURE IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.107', 't_r_lczx_zcys_05', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUAR_FINAN_RELATION\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\') AND T.GUAR_FINAN_RELATION IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') OR T.GUA_TYPE IS NULL) AND T.GUAR_FINAN_RELATION IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.031.052', 't_r_lczx_practitioner', '{电子邮箱}格式为 xx@xx.xx', '电子邮箱地址不合法,合法email格式如:John@163.com。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EMAIL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_practitioner T\r\nWHERE FILE_DATE=\'@FILE_DATE\'\r\nand (EMAIL not like \'%@%.%\' or EMAIL like \'@%\' or EMAIL like \'%@.%\' or EMAIL like \'%@%.\')\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.035', 't_r_lczx_underlying_assets', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (REPORT_DATE REGEXP \'[^0-9]\'=1 OR LENGTH(REPORT_DATE)<>8)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.062.019', 't_r_lczx_zcys_all', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:19:22', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_ALL T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_09\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.016.031', 't_r_lczx_zcys_09_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_zcys_09_bank T\r\n WHERE T.FILE_DATE = \'@FILE_DATE\'\r\n AND (LENGTH(CONVERT(ABS(T.TERM) USING GBK))>5 OR (ABS(T.TERM) REGEXP \'[^0-9]\') = 1)\r\n GROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.019.047', 't_r_lczx_zcys_02_bank', '{存款类型}如果有值必须在《存款类型表》中存在', '{存款类型}如果有值必须在《存款类型表》中存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CASH_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_02_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_DEPOSIT_TYPE\',T.CASH_TYPE) = 0\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.105', 't_r_lczx_zcys_05_bank', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保性质}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUA_NATURE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\')AND T.GUA_NATURE IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') or T.GUA_TYPE is null) AND T.GUA_NATURE IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.107', 't_r_lczx_zcys_05_bank', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', '当{担保方式}选择(“信用担保“,“第三方保证“)时,{担保人与融资人关系}为必填项;为空或其他担保方式时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'GUA_TYPE,GUAR_FINAN_RELATION\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND ((T.GUA_TYPE IN (\'01\',\'02\') AND T.GUAR_FINAN_RELATION IS NULL)\r\nOR ((T.GUA_TYPE NOT IN (\'01\',\'02\') OR T.GUA_TYPE IS NULL) AND T.GUAR_FINAN_RELATION IS NOT NULL))\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.031.052', 't_r_lczx_practitioner_bank', '{电子邮箱}格式为 xx@xx.xx', '电子邮箱地址不合法,合法email格式如:John@163.com。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EMAIL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_practitioner_bank T\r\nWHERE FILE_DATE=\'@FILE_DATE\'\r\nand (EMAIL not like \'%@%.%\' or EMAIL like \'@%\' or EMAIL like \'%@.%\' or EMAIL like \'%@%.\')\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.035', 't_r_lczx_underlying_assets_bank', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (REPORT_DATE REGEXP \'[^0-9]\'=1 OR LENGTH(REPORT_DATE)<>8)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.062.019', 't_r_lczx_zcys_all_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:37:04', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_09\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-2.014', 't_r_299_1_2', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) = \r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) ) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\',T.V,0)))=0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 ) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,ITEM_CODE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\',\'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-2.014', 't_r_299_1_2_bank', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) = \r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) ) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\',T.V,0)))=0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\',T.V,0)))=0\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 ) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,ITEM_CODE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\',\'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
delete from pawmrpcs.data_check_rule_set where RULE_CODE IN(
'LCZX.A.003.012',
'LCZX.A.030.019',
'LCZX.A.032.035',
'LCZX.A.034.008',
'LCZX.A.034.011',
'LCZX.A.057.042',
'LCZX.A.057.046',
'LCZX.A.062.019',
'LCZX_BANK.A.030.019',
'LCZX_BANK.A.032.035',
'LCZX_BANK.A.057.042',
'LCZX_BANK.A.057.046',
'LCZX_BANK.A.062.019',
'RH299.A.1-2.014',
'RH299.A.1-2.036',
'RH299.A.3-1.001',
'RH299_BANK.A.1-2.014',
'RH299_BANK.A.1-2.036',
'RH299_BANK.A.3-1.001'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.003.012', 't_r_lczx_prod_end_info', '{银行实际实现收入}={本机构管理费}', '{银行实际实现收入}={本机构管理费}', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'BANK_INCO_ACT,MANAGER_FEE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n GROUP_CONCAT(IFNULL(T.BANK_INCO_ACT, 0)) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(IFNULL(T.MANAGER_FEE, 0)) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(ABS(IFNULL(T.BANK_INCO_ACT, 0) - IFNULL(T.MANAGER_FEE, 0)\r\n ))AS DIFFERENCE\r\nFROM T_R_LCZX_PROD_END_INFO T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND IFNULL(T.BANK_INCO_ACT, 0) <> IFNULL(T.MANAGER_FEE, 0)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.030.019', 't_r_lczx_zcys_13', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_13 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (LENGTH(ABS(TERM))>5 OR (T.TERM REGEXP \'[^0-9]\') = 1)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.035', 't_r_lczx_underlying_assets', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (IS_DATE_TYPE(REPORT_DATE, 1)=0)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.034.008', 't_r_lczx_issuance_register', '同一机构内{理财产品代码}具有唯一性', '同一机构内{理财产品代码}具有唯一性', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT( DISTINCT N_ID ) AS N_ID_LIST,\r\n \'PRODUCT_CODE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n A.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE \r\nFROM\r\n (\r\nSELECT\r\n PRODUCT_CODE,\r\n FILE_DATE,\r\n GROUP_CONCAT( DISTINCT N_ID ) AS N_ID,\r\n FUND_CATEGORY \r\nFROM\r\n (\r\nSELECT\r\n PRODUCT_CODE,\r\n FILE_DATE,\r\n N_ID,\r\n FUND_CATEGORY \r\nFROM\r\n T_R_LCZX_ISSUANCE_REGISTER \r\nWHERE\r\n FILE_DATE = \'@FILE_DATE\' \r\n UNION ALL\r\nSELECT \r\n PRODUCT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n NULL AS N_ID,\r\n \'Z70033\' AS FUND_CATEGORY \r\nFROM\r\n T_R_LCZX_ISSUANCE_REGISTER_RESULT \r\n ) T \r\n GROUP BY PRODUCT_CODE\r\nHAVING COUNT(1)>1\r\n ) A\r\n where N_ID IS NOT NULL\r\n group by a.FUND_CATEGORY,\r\n a.FILE_DATE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.034.011', 't_r_lczx_issuance_register', '{募集起始日期}必须落在{申报登记}填报的{募集起始日 (从)}和{募集起始日(到)}的区间内', '{募集起始日期}必须落在{申报登记}填报的{募集起始日 (从)}和{募集起始日(到)}的区间内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'SUBSCRIPTION_START_DATE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,\r\n T1.SUBSCRIPTION_START_DATE, \r\n T3.SUBSCRIPTION_START_DATE_START,T3.SUBSCRIPTION_START_DATE_END\r\n FROM t_r_lczx_issuance_register T1\r\n LEFT JOIN pawm_fact_pd_prod_base_info_fd T2\r\n ON T2.PROD_REG_ID = T1.REGISTRATION_CODE\r\n LEFT JOIN t_r_lczx_filing_register_result T3\r\n ON T3.PRO_CODE = T2.FINPROD_MARKET_ID ) T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (SUBSCRIPTION_START_DATE < SUBSCRIPTION_START_DATE_START \r\nor SUBSCRIPTION_START_DATE >SUBSCRIPTION_START_DATE_END)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE ');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.057.042', 't_r_lczx_zcys_all', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_HIGH_18,IS_EXP_RTN_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand ((IS_EXP_RTN_18 in(\'01\') and EXP_RTN_HIGH_18 is NULL)\r\nor (IS_EXP_RTN_18 in(\'02\') and EXP_RTN_HIGH_18 is not NULL))\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.057.046', 't_r_lczx_zcys_all', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_LOW_18,IS_EXP_RTN_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand (EXP_RTN_LOW_18 is not null and IS_EXP_RTN_18 =\'02\')\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.062.019', 't_r_lczx_zcys_all', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:19:22', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_ALL T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_13\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.030.019', 't_r_lczx_zcys_13_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_13_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (LENGTH(ABS(TERM))>5 OR (T.TERM REGEXP \'[^0-9]\') = 1)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.035', 't_r_lczx_underlying_assets_bank', '{持仓日期}值为周末或者月末的最后一个自然日', '{持仓日期}值为周末或者月末的最后一个自然日', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REPORT_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n FROM t_r_lczx_underlying_assets_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (REPORT_DATE <> DATE_FORMAT(last_day(REPORT_DATE),\'%Y%m%d\')\r\nAND DAYOFWEEK(REPORT_DATE) <> 1 AND DAYOFWEEK(REPORT_DATE) <> 7)\r\nOR (IS_DATE_TYPE(REPORT_DATE, 1)=0)\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.057.042', 't_r_lczx_zcys_all_bank', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', '{预期最高收益率%}选择性必填,当{是否有预期收益率}选择“是”时,必填;当{是否有预期收益率}选择“否”时,不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_HIGH_18,IS_EXP_RTN_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand ((IS_EXP_RTN_18 in(\'01\') and EXP_RTN_HIGH_18 is NULL)\r\nor (IS_EXP_RTN_18 in(\'02\') and EXP_RTN_HIGH_18 is not NULL))\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.057.046', 't_r_lczx_zcys_all_bank', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', '当{是否有预期收益率}选择“否”时,{预期最低收益率%}不可填', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'EXP_RTN_LOW_18,IS_EXP_RTN_18\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_18\')\r\nand (EXP_RTN_LOW_18 is not null and IS_EXP_RTN_18 =\'02\')\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.062.019', 't_r_lczx_zcys_all_bank', '{期限}最长5位整数型', '{期限}最长5位整数型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2022-03-11 18:37:04', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'TERM_13\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND (LENGTH(CONVERT(ABS(T.TERM_13) USING GBK))>5 OR (ABS(T.TERM_13) REGEXP \'[^0-9]\') = 1)\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_13\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-2.014', 't_r_299_1_2', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) =\r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\', T.V, 0))) = 0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) <> 0)\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\', \'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-2.036', 't_r_299_1_2', '上期募集余额+本期募集-本期兑付-本期余额>10亿', '上期募集余额+本期募集-本期兑付-本期余额>10亿', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(FDATE = \'@FILE_DATE\'\r\n AND ITEM_CODE LIKE \'1%\'\r\n AND COL = \'G\', V, 0)) > 0\r\n AND (SUM(IF(FDATE <> \'@FILE_DATE\' AND ITEM_CODE LIKE \'1%\' AND\r\n COL = \'G\', V, 0)) +\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'2%\' AND\r\n COL = \'G\', V, 0)) -\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'2%\' AND\r\n COL = \'N\', V, 0))-\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'1%\' AND\r\n COL = \'G\', V, 0))) > POWER(10, 5) THEN\r\n \r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_2\')\r\n AND FDATE = \'@FILE_DATE\' THEN\r\n T.N_ID\r\n END) AS N_ID, \r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_2\') THEN\r\n T.COL_ORG\r\n END) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME IN (\'1_1\', \'1_2\')\r\n AND COL IN (\'G\', \'N\')\r\n GROUP BY T.FUND_CATEGORY, T.FUND_TYPE, SUBSTR(T.ITEM_CODE, 2)) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.3-1.001', 't_r_299_3_1', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT( DISTINCT N_ID ) AS N_ID_LIST,\r\n GROUP_CONCAT( DISTINCT COL_ORG ) AS COLUMN_CODE,\r\n MAX( RESULT_CODE ) AS RESULT_CODE,\r\n FILE_DATE,\r\n INSTI_TYPE,\r\n \'\' AS LEFT_CALCULATION_VALUE,\r\n \'\' AS RIGHT_CALCULATION_VALUE,\r\n \'\' AS DIFFERENCE \r\nFROM\r\n (\r\nSELECT\r\n \'0\' AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FDATE AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE \r\nFROM\r\n T_R_299_REPORT_RESULT T \r\nWHERE\r\n T.FDATE = \'@FILE_DATE\' \r\n AND T.TABLE_NAME = \'3_1\' \r\n AND T.ITEM_CODE IN (\'e20000\',\'e21000\',\'e22000\',\'e23000\',\'e24000\',\'e25000\',\'e26000\',\'e27000\',\'e28000\', \'e40000\', \'e41000\', \'e42000\', \'e43000\', \'e44000\', \'e45000\', \'e46000\', \'e47000\',\'e48000\') \r\n AND IFNULL( T.V, 0 ) <> 0 \r\n AND T.FUND_TYPE = \'08\' \r\n GROUP BY T.FDATE,T.FUND_CATEGORY, T.FUND_TYPE,T.ITEM_CODE,T.COL\r\n ) T1 \r\nGROUP BY\r\n T1.FILE_DATE,\r\n T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-2.014', 't_r_299_1_2_bank', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', '3.募集方式仅为公开募集,管理模式应只为集合管理;公开募集有数,集合管理必定有数;若该产品为“08-公募基金”,则非公开募集不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ((SIGN(SUM(IF(ITEM_CODE = \'231000\', T.V, 0))) =\r\n SIGN(SUM(IF(ITEM_CODE = \'241000\', T.V, 0))) AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0 AND\r\n SIGN(SUM(IF(ITEM_CODE = \'242000\', T.V, 0))) = 0) OR\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) <> 0)\r\n AND ((FUND_TYPE = \'08\' AND\r\n SIGN(SUM(IF(ITEM_CODE = \'232000\', T.V, 0))) = 0) OR\r\n FUND_TYPE <> \'08\') THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'1_2\'\r\n AND ITEM_CODE IN (\'231000\', \'241000\', \'232000\', \'242000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-2.036', 't_r_299_1_2_bank', '上期募集余额+本期募集-本期兑付-本期余额>10亿', '上期募集余额+本期募集-本期兑付-本期余额>10亿', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(FDATE = \'@FILE_DATE\'\r\n AND ITEM_CODE LIKE \'1%\'\r\n AND COL = \'G\', V, 0)) > 0\r\n AND (SUM(IF(FDATE <> \'@FILE_DATE\' AND ITEM_CODE LIKE \'1%\' AND\r\n COL = \'G\', V, 0)) +\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'2%\' AND\r\n COL = \'G\', V, 0)) -\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'2%\' AND\r\n COL = \'N\', V, 0))-\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE LIKE \'1%\' AND\r\n COL = \'G\', V, 0))) > POWER(10, 5) THEN\r\n \r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_2\')\r\n AND FDATE = \'@FILE_DATE\' THEN\r\n T.N_ID\r\n END) AS N_ID, \r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_2\') THEN\r\n T.COL_ORG\r\n END) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME IN (\'1_1\', \'1_2\')\r\n AND COL IN (\'G\', \'N\')\r\n GROUP BY T.FUND_CATEGORY, T.FUND_TYPE, SUBSTR(T.ITEM_CODE, 2)) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-1.001', 't_r_299_3_1_bank', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT( DISTINCT N_ID ) AS N_ID_LIST,\r\n GROUP_CONCAT( DISTINCT COL_ORG ) AS COLUMN_CODE,\r\n MAX( RESULT_CODE ) AS RESULT_CODE,\r\n FILE_DATE,\r\n INSTI_TYPE,\r\n \'\' AS LEFT_CALCULATION_VALUE,\r\n \'\' AS RIGHT_CALCULATION_VALUE,\r\n \'\' AS DIFFERENCE \r\nFROM\r\n (\r\nSELECT\r\n \'0\' AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FDATE AS FILE_DATE,\r\n T.FUND_CATEGORY AS INSTI_TYPE \r\nFROM\r\n t_r_299_report_bank_result T \r\nWHERE\r\n T.FDATE = \'@FILE_DATE\' \r\n AND T.TABLE_NAME = \'3_1\' \r\n AND T.ITEM_CODE IN (\'e20000\',\'e21000\',\'e22000\',\'e23000\',\'e24000\',\'e25000\',\'e26000\',\'e27000\',\'e28000\', \'e40000\', \'e41000\', \'e42000\', \'e43000\', \'e44000\', \'e45000\', \'e46000\', \'e47000\',\'e48000\') \r\n AND IFNULL( T.V, 0 ) <> 0 \r\n AND T.FUND_TYPE = \'08\' \r\n GROUP BY T.FDATE,T.FUND_CATEGORY, T.FUND_TYPE,T.ITEM_CODE,T.COL\r\n ) T1 \r\nGROUP BY\r\n T1.FILE_DATE,\r\n T1.INSTI_TYPE');
DELETE FROM pawmrpcs.data_check_rule_set WHERE RULE_CODE IN
(
'LCZX.A.054.096',
'LCZX.BANK.A.013.038',
'LCZX_BANK.A.013.038',
'LCZX_BANK.A.023.032',
'LCZX_BANK.A.051.053',
'LCZX_BANK.A.056.015',
'LCZX_BANK.A.058.031',
'RH299_BANK.A.1-1.018',
'RH299_BANK.A.1-1.050',
'RH299_BANK.A.1-1.061',
'RH299_BANK.A.1-1.063',
'RH299_BANK.A.1-1.071',
'RH299_BANK.A.1-3.025',
'RH299_BANK.A.2-1.001',
'RH299_BANK.A.2-1.018',
'RH299_BANK.A.2-1.081',
'RH299_BANK.A.2-1.086',
'RH299_BANK.A.2-1.087',
'RH299_BANK.A.2-4.002',
'RH299_BANK.A.3-1.007',
'RH299_BANK.A.3-1.011',
'RH299_BANK.A.3-1.017',
'RH299_BANK.A.3-2.001',
'RH299_BANK.A.3-2.006'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.054.096', 't_r_lczx_zcys_all', '{重点监控行业和领域类别说明}最长256位字符', '{重点监控行业和领域类别说明}最长256位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'MON_TYPE_COMM_05\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n null AS LEFT_CALCULATION_VALUE,\r\n null AS RIGHT_CALCULATION_VALUE,\r\n null AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_05\')\r\nAND LENGTH(CONVERT(MON_TYPE_COMM_05 USING GBK)) > 256\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.013.038', 't_r_lczx_zcys_06_bank', '{最短剩余期限(天)}<={加权剩余期限(天)}', '{最短剩余期限(天)}<={加权剩余期限(天)}', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'WT_TERM,TERM_SHORT\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_06_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND T.TERM_SHORT>T.WT_TERM\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.023.032', 't_r_lczx_zcys_15_bank', '{备注}最长256字符', '{备注}最长256字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_15_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND length(CONVERT(REMARK using GBK)) >256\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.051.053', 't_r_lczx_zcys_all_bank', '{结构性存款挂钩标的}最长256个字符', '结构性存款挂钩标的过长', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_TARGET_02\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\' AND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nAND LENGTH(CONVERT(REP_TARGET_02 USING GBK)) > 256\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP =\'T_R_LCZX_ZCYS_02\') GROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.056.015', 't_r_lczx_zcys_all_bank', '{基金代码}最长20位字符型', '{基金代码}最长20位字符型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_FINPROD_ID_16\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE,\r\n NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL_BANK T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (DEPT_NO=\'\' or DEPT_NO=\'@DEPT_NO\')\r\nAND T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_16\'\r\n)\r\nAND LENGTH(CONVERT(REP_FINPROD_ID_16 USING GBK)) >20\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.058.031', 't_r_lczx_zcys_all_bank', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_ASSET_TYPE,REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_19_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND REP_ASSET_TYPE<>\'2000\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.018', 't_r_299_1_1_bank', '3.若合计(G)<>0,则期末存续,合计(C)<>0。(表1-1与表1-3相应单元格应同时有数)', '3.若合计(G)<>0,则期末存续,合计(C)<>0。(表1-1与表1-3相应单元格应同时有数)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SIGN(SUM(IF(ITEM_CODE LIKE \'1%\'\r\n AND COL = \'G\', T.V, 0))) =\r\n SIGN(SUM(IF(ITEM_CODE LIKE \'3%\'\r\n AND COL = \'C\', T.V, 0))) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND ((TABLE_NAME IN (\'1_1\')\r\n AND COL IN (\'G\')\r\n AND ITEM_CODE NOT IN (\'110000\', \'111000\', \'112000\', \'113000\', \'114000\',\r\n \'115000\', \'116000\'))\r\n or (TABLE_NAME IN (\'1_3\') and COL IN (\'C\')))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE, SUBSTR(T.ITEM_CODE, 2)) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.050', 't_r_299_1_1_bank', '规则4:部分表单,跨期变动比例较大(变动绝对值R(100亿<R<=500亿), 跨期变动超过300%,或者环比变动减少50%以上),请核实;', '规则4:部分表单,跨期变动比例较大(变动绝对值R(100亿<R<=500亿), 跨期变动超过300%,或者环比变动减少50%以上),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ABS(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) -\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0))) > POWER(10, 6)\r\n AND ABS(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) -\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0))) <=\r\n 5 * POWER(10, 6)\r\n AND SIGN(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0))) =\r\n SIGN(SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)))\r\n AND (SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) /\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)) > 4\r\n OR SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) /\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)) < 0.5) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN FDATE = \'@FILE_DATE\' THEN\r\n N_ID\r\n END) AS N_ID,\r\n GROUP_CONCAT(DISTINCT T.COL_ORG) AS COL_ORG,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME = \'1_1\'\r\n GROUP BY T.FUND_CATEGORY, T.COL, T.FUND_TYPE, T.ITEM_CODE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.061', 't_r_299_1_1_bank', '规则39:表1-1,产品募集余额总计大于表2-1资产合计,但未分配利润无数,请核实', '规则39:表1-1,产品募集余额总计大于表2-1资产合计,但未分配利润无数,请核实', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'111000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821110\', \'821210\'), T.V, 0)), 1) * 100 ) BETWEEN ( IF(FUND_TYPE = \'01\', 50, 90) ) AND (IF(FUND_TYPE = \'01\', 110, 200) )THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'111000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821110\', \'821210\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'112000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821120\', \'821220\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'112000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821120\', \'821220\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'113000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821130\', \'821230\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'113000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821130\', \'821230\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE \r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'114000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN\r\n (\'821140\', \'821150\', \'821160\', \'821240\',\r\n \'821250\', \'821260\'), T.V, 0)), 1) * 100 ) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND\r\n (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'114000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN\r\n (\'821140\', \'821150\', \'821160\', \'821240\', \'821250\', \'821260\') AND\r\n COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'115000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821170\', \'821270\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200) )THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'115000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821170\', \'821270\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'116000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821180\', \'821280\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND ( IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'116000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821180\', \'821280\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nAND T1.N_ID IS NOT NULL\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.063', 't_r_299_1_1_bank', '规则44:表1-1、表2-1,分客户类型募余额与实收本金份额差异较大,请核实;', '规则44:表1-1、表2-1,分客户类型募余额与实收本金份额差异较大,请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'111000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821110\', \'821210\'), T.V, 0)), 1) * 100 ) BETWEEN ( IF(FUND_TYPE = \'01\', 50, 90) ) AND (IF(FUND_TYPE = \'01\', 110, 200) )THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'111000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821110\', \'821210\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'112000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821120\', \'821220\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'112000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821120\', \'821220\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'113000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821130\', \'821230\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'113000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821130\', \'821230\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE \r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'114000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN\r\n (\'821140\', \'821150\', \'821160\', \'821240\',\r\n \'821250\', \'821260\'), T.V, 0)), 1) * 100 ) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND\r\n (IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'114000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN\r\n (\'821140\', \'821150\', \'821160\', \'821240\', \'821250\', \'821260\') AND\r\n COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n (IFNULL(SUM(IF(ITEM_CODE = \'115000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821170\', \'821270\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND (IF(FUND_TYPE = \'01\', 110, 200) )THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'115000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821170\', \'821270\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN \r\n ( IFNULL(SUM(IF(ITEM_CODE = \'116000\', T.V, 0)) /\r\n SUM(IF(ITEM_CODE IN (\'821180\', \'821280\'), T.V, 0)), 1) * 100) BETWEEN (IF(FUND_TYPE = \'01\', 50, 90)) AND ( IF(FUND_TYPE = \'01\', 110, 200)) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE = \'116000\' AND COL = \'G\') OR\r\n (ITEM_CODE IN (\'821180\', \'821280\') AND COL = \'N\'))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nAND T1.N_ID IS NOT NULL\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.071', 't_r_299_1_1_bank', '规则49:在无兑付和展期时,表1-1非净值型产品募集余额当期值减去上期值应等于1-2非净值产品当期募集发生额;', '规则49:在无兑付和展期时,表1-1非净值型产品募集余额当期值减去上期值应等于1-2非净值产品当期募集发生额;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN (SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'222000\' AND\r\n COL = \'N\', T.V, 0)) = 0 AND\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'122000\' AND\r\n COL = \'G\', T.V, 0)) <>\r\n SUM(IF(FDATE <> \'@FILE_DATE\' AND ITEM_CODE = \'122000\' AND\r\n COL = \'G\', T.V, 0)) +\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'222000\' AND\r\n COL = \'G\', T.V, 0))) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\'\r\n AND FDATE = \'@FILE_DATE\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME IN (\'1_1\', \'1_2\')\r\n AND ((ITEM_CODE IN (\'222000\') AND COL IN (\'N\', \'G\')) OR\r\n (ITEM_CODE IN (\'122000\') AND COL = \'G\'))\r\n GROUP BY T.FUND_CATEGORY, T.FUND_TYPE\r\n UNION ALL\r\n SELECT CASE\r\n WHEN (SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'224000\' AND\r\n COL = \'N\', T.V, 0)) = 0 AND\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'124000\' AND\r\n COL = \'G\', T.V, 0)) <>\r\n SUM(IF(FDATE <> \'@FILE_DATE\' AND ITEM_CODE = \'124000\' AND\r\n COL = \'G\', T.V, 0)) +\r\n SUM(IF(FDATE = \'@FILE_DATE\' AND ITEM_CODE = \'224000\' AND\r\n COL = \'G\', T.V, 0))) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_1\'\r\n AND FDATE = \'@FILE_DATE\' THEN\r\n T.N_ID\r\n END) AS N_ID, \'TOTAL\' AS COL_ORG,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME IN (\'1_1\', \'1_2\')\r\n AND ((ITEM_CODE IN (\'224000\') AND COL IN (\'N\', \'G\')) OR\r\n (ITEM_CODE IN (\'124000\') AND COL = \'G\'))\r\n GROUP BY T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-3.025', 't_r_299_1_3_bank', '1.当期终止,合计(I)≥提前兑付,只数(A)+延期兑付,只数(E)', '1.当期终止,合计(I)≥提前兑付,只数(A)+延期兑付,只数(E)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE LIKE \'3%\'\r\n AND COL = \'I\', T.V, 0)) >=\r\n SUM(IF(ITEM_CODE LIKE \'5%\'\r\n AND COL IN (\'A\', \'E\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME = \'1_3\' THEN\r\n N_ID\r\n END) AS N_ID, MAX(T.COL_ORG) AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_3\', \'1_5\')\r\n AND COL IN (\'I\', \'A\', \'E\')\r\n AND ITEM_CODE NOT LIKE \'51%\'\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE, SUBSTR(T.ITEM_CODE, 2)) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-1.001', 't_r_299_2_1_bank', '1.资产合计(700000)=负债及权益合计(800000)', '1.资产合计(700000)=负债及权益合计(800000)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'700000\'\r\n , T.V, 0)) =\r\n SUM(IF(ITEM_CODE = \'800000\'\r\n , T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(COL_NAME), \':\', SUM(IF(ITEM_CODE = \'700000\'\r\n , T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n SUM(IF(ITEM_CODE = \'800000\'\r\n , T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n ABS(SUM(IF(ITEM_CODE = \'700000\'\r\n , T.V, 0)) -\r\n SUM(IF(ITEM_CODE = \'800000\'\r\n , T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'2_1\'\r\n AND COL IN(\'A\',\'B\',\'H\',\'I\',\'G\',\'N\')\r\n AND ((ITEM_CODE = \'700000\' )\r\n OR (ITEM_CODE = \'800000\' ))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-1.018', 't_r_299_2_1_bank', '18.权益合计(820000)=实收本金(821000)+未分配利润(823000)+其他综合收益(824000)', '18.权益合计(820000)=实收本金(821000)+未分配利润(823000)+其他综合收益(824000)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'820000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE IN (\'821000\', \'823000\',\'824000\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(COL_NAME), \':\', SUM(IF(ITEM_CODE = \'820000\', T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n SUM(IF(ITEM_CODE IN (\'821000\', \'823000\',\'824000\'), T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n ABS(SUM(IF(ITEM_CODE = \'820000\', T.V, 0)) -\r\n SUM(IF(ITEM_CODE IN (\'821000\', \'823000\',\'824000\'), T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'2_1\'\r\n AND ITEM_CODE IN (\'820000\', \'821000\', \'823000\',\'824000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-1.081', 't_r_299_2_1_bank', '规则62:表2-1,广义政府较上期增加,需要核实。', '规则62:表2-1,广义政府较上期增加,需要核实。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) >\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0))\r\n \r\n THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN FDATE = \'@FILE_DATE\' THEN\r\n N_ID\r\n END) AS N_ID, MAX(COL_ORG) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME IN (\'2_1\')\r\n AND ITEM_CODE IN (\'752200\')\r\n AND COL = \'G\'\r\n GROUP BY T.FUND_CATEGORY, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-1.086', 't_r_299_2_1_bank', '3.境内存款,人民币(721000,A)=活期存款,人民币(721100,A)+定期和其他存款,人民币(721200,A)', '3.境内存款,人民币(721000,A)=活期存款,人民币(721100,A)+定期和其他存款,人民币(721200,A)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'721000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE IN (\'721100\', \'721200\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(COL_NAME), \':\', SUM(IF(ITEM_CODE = \'721000\', T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n SUM(IF(ITEM_CODE IN (\'721100\', \'721200\'), T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n ABS(SUM(IF(ITEM_CODE = \'721000\', T.V, 0)) -\r\n SUM(IF(ITEM_CODE IN (\'721100\', \'721200\'), T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'2_1\'\r\n AND COL IN (\'A\',\'B\',\'G\')\r\n AND ITEM_CODE IN ( \'721000\', \'721100\', \'721200\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-1.087', 't_r_299_2_1_bank', '4.境外存款,人民币(722000,A)=活期存款,人民币(722100,A)+定期和其他存款,人民币(722200,A)', '4.境外存款,人民币(722000,A)=活期存款,人民币(722100,A)+定期和其他存款,人民币(722200,A)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'722000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE IN (\'722100\', \'722200\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(COL_NAME), \':\', SUM(IF(ITEM_CODE = \'722000\', T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n SUM(IF(ITEM_CODE IN (\'722100\', \'722200\'), T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n ABS(SUM(IF(ITEM_CODE = \'722000\', T.V, 0)) -\r\n SUM(IF(ITEM_CODE IN (\'722100\', \'722200\'), T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'2_1\'\r\n AND COL IN (\'A\',\'B\',\'G\')\r\n AND ITEM_CODE IN (\'722000\',\'722100\', \'722200\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.2-4.002', 't_r_299_2_4_bank', '2.贷款收益权(A)+债务证券收益权(B)+应收账款收益权(C)+其他债权收益权(D)+股票收益权(E)+其他股权收益权(F)+物权资产收益权(G)=总计(H)', '2.贷款收益权(A)+债务证券收益权(B)+应收账款收益权(C)+其他债权收益权(D)+股票收益权(E)+其他股权收益权(F)+物权资产收益权(G)=总计(H)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE ,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(COL = \'H\', T.V, 0)) =\r\n SUM(IF(COL IN (\'A\', \'B\', \'C\', \'D\', \'E\', \'F\', \'G\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE, MAX(T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(ITEM_NAME), \':\', SUM(IF(COL IN (\'A\', \'B\', \'C\', \'D\', \'E\', \'F\', \'G\'), T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(ITEM_NAME), \':\',\r\n SUM(IF(COL = \'H\', T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(ITEM_NAME), \':\',\r\n ABS(SUM(IF(COL IN (\'A\', \'B\', \'C\', \'D\', \'E\', \'F\', \'G\'), T.V, 0)) -\r\n SUM(IF(COL = \'H\', T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'2_4\'\r\n AND COL IN (\'A\', \'B\', \'C\', \'D\', \'E\', \'F\', \'G\', \'H\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE, T.ITEM_CODE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-1.007', 't_r_299_3_1_bank', '6.人民币(A)+外币折人民币(B)=合计(C)', '6.人民币(A)+外币折人民币(B)=合计(C)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, MAX(COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(COL IN (\'A\', \'B\'), T.V, 0)) =\r\n SUM(IF(COL = \'C\', T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE, MAX(T.N_ID) AS N_ID,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(ITEM_NAME), \':\', SUM(IF(COL IN (\'A\', \'B\'), T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(ITEM_NAME), \':\',\r\n SUM(IF(COL = \'C\', T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(ITEM_NAME), \':\',\r\n ABS(SUM(IF(COL IN (\'A\', \'B\'), T.V, 0)) -\r\n SUM(IF(COL = \'C\', T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'3_1\'\r\n AND COL IN (\'A\', \'B\', \'C\')\r\n AND ITEM_CODE NOT IN(\'e11000\',\'e12000\',\'e13000\',\'e14000\',\'e15000\',\'e16000\',\'e17000\',\'e21000\',\'e22000\', \'e23000\',\'e24000\',\'e25000\',\'e26000\',\'e2000\',\'e21000\',\'e21000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE, T.ITEM_CODE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-1.011', 't_r_299_3_1_bank', '规则4:部分表单,跨期变动比例较大(变动绝对值R(100亿<R<=500亿), 跨期变动超过300%,或者环比变动减少50%以上),请核实;', '规则4:部分表单,跨期变动比例较大(变动绝对值R(100亿<R<=500亿), 跨期变动超过300%,或者环比变动减少50%以上),请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN ABS(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) -\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0))) > POWER(10, 6)\r\n AND ABS(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) -\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0))) <=\r\n 5 * POWER(10, 6)\r\n AND SIGN(SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0))) =\r\n SIGN(SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)))\r\n AND (SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) /\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)) > 4\r\n OR SUM(IF(FDATE = \'@FILE_DATE\', T.V, 0)) /\r\n SUM(IF(FDATE <> \'@FILE_DATE\', T.V, 0)) < 0.5 )THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN FDATE = \'@FILE_DATE\' THEN\r\n N_ID\r\n END) AS N_ID,\r\n GROUP_CONCAT(DISTINCT T.COL_ORG) AS COL_ORG,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE IN\r\n (\'@FILE_DATE\',\r\n DATE_FORMAT(LAST_DAY(DATE_SUB(\'@FILE_DATE\', INTERVAL 1 MONTH)),\r\n \'%Y%m%d\'))\r\n AND TABLE_NAME = \'3_1\'\r\n GROUP BY T.FUND_CATEGORY, T.COL, T.FUND_TYPE, T.ITEM_CODE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-1.017', 't_r_299_3_1_bank', '46:表3-1,产品品种为“02”,封闭式(非)净值型产品1个月(含)以下、1-3个月(含)有数,请核实;', '46:表3-1,产品品种为“02”,封闭式(非)净值型产品1个月(含)以下、1-3个月(含)有数,请核实;', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '警告', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SIGN(SUM(IF(ITEM_CODE IN (\'e41000\',\'e42000\',\'e31000\',\'e32000\') AND COL IN (\'A\',\'B\',\'C\'),T.V,0))) <>0 THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE,\r\n T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID, GROUP_CONCAT(DISTINCT COL_ORG ) AS COL_ORG,\r\n FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'3_1\')\r\n AND ITEM_CODE IN (\'e41000\',\'e42000\',\'e31000\',\'e32000\') AND COL IN (\'A\',\'B\',\'C\')\r\n AND FUND_TYPE = \'02\'\r\n GROUP BY T.FDATE, T.FUND_CATEGORY,T.ITEM_CODE,T.col,T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-2.001', 't_r_299_3_2_bank', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', '1.产品品种为“08-公募基金”,则运行方式中“开放式非净值型”“封闭式非净值型”不应有数。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n \'\' AS LEFT_CALCULATION_VALUE,\r\n \'\' AS RIGHT_CALCULATION_VALUE,\r\n \'\' AS DIFFERENCE\r\nFROM (SELECT \'0\' AS RESULT_CODE, T.N_ID AS N_ID, COL_ORG AS COL_ORG,\r\n T.FDATE AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE T.FDATE = \'@FILE_DATE\'\r\n AND T.TABLE_NAME = \'3_2\'\r\n AND (T.ITEM_CODE like \'f2%\' or T.ITEM_CODE like \'f4%\')\r\n AND ITEM_CODE NOT IN(\'f21000\',\'f22000\',\'f23000\',\'f24000\',\'f25000\',\'f26000\',\'f27000\',\'f48000\')\r\n AND IFNULL(T.V, 0) <> 0\r\n AND T.FUND_TYPE = \'08\') T1\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.3-2.006', 't_r_299_3_2_bank', '5.封闭式非净值型总计(f40000)=1个月(含)以下(f41000)+1-3个月(含)(f42000)+3-6个月(含)(f43000)+6-12个月(含)(f44000)+1-2年(含)(f45000)+2-3年(含)(f46000)+3年以上(f47000)', '5.封闭式非净值型总计(f40000)=1个月(含)以下(f41000)+1-3个月(含)(f42000)+3-6个月(含)(f43000)+6-12个月(含)(f44000)+1-2年(含)(f45000)+2-3年(含)(f46000)+3年以上(f47000)', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST,\r\n GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE,\r\n GROUP_CONCAT(VALUE1) AS LEFT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE2) AS RIGHT_CALCULATION_VALUE,\r\n GROUP_CONCAT(VALUE3) AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'f40000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE IN (\'f41000\', \'f42000\', \'f43000\', \'f44000\',\'f45000\',\'f46000\',\'f47000\'), T.V, 0)) THEN\r\n 1\r\n ELSE\r\n 0\r\n END AS RESULT_CODE, GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID,\r\n MAX(COL_ORG) AS COL_ORG, T.FDATE AS FILE_DATE,\r\n FUND_CATEGORY AS INSTI_TYPE,\r\n CONCAT(MAX(COL_NAME), \':\', SUM(IF(ITEM_CODE = \'f40000\', T.V, 0))) AS VALUE1,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n SUM(IF(ITEM_CODE IN (\'f41000\', \'f42000\', \'f43000\', \'f44000\',\'f45000\',\'f46000\',\'f47000\'), T.V, 0))) AS VALUE2,\r\n CONCAT(MAX(COL_NAME), \':\',\r\n ABS(SUM(IF(ITEM_CODE = \'f40000\', T.V, 0)) -\r\n SUM(IF(ITEM_CODE IN (\'f41000\', \'f42000\', \'f43000\', \'f44000\',\'f45000\',\'f46000\',\'f47000\'), T.V, 0)))) AS VALUE3\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME = \'3_2\'\r\n AND ITEM_CODE IN (\'f40000\', \'f41000\', \'f42000\', \'f43000\', \'f44000\',\'f45000\',\'f46000\',\'f47000\')\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.COL, T.FUND_TYPE) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
DELETE FROM pawmrpcs.data_check_rule_set WHERE RULE_CODE IN
(
'LCZX.A.022.153',
'LCZX.A.022.154',
'LCZX.A.032.036',
'LCZX.A.032.037',
'LCZX.A.045.999',
'LCZX.A.054.153',
'LCZX.A.054.154',
'LCZX.A.058.031',
'LCZX_BANK.A.022.153',
'LCZX_BANK.A.022.154',
'LCZX_BANK.A.032.036',
'LCZX_BANK.A.032.037',
'LCZX_BANK.A.045.999',
'LCZX_BANK.A.054.153',
'LCZX_BANK.A.054.154',
'LCZX_BANK.A.058.017',
'LCZX_BANK.A.058.031',
'RH299.A.1-1.028',
'RH299_BANK.A.1-1.028'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.153', 't_r_lczx_zcys_05', '增信机构代码由数字和大写字母组成', '增信机构代码由数字和大写字母组成', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.CREDIT_ENHANCE_CORPID REGEXP \'[^A-Z0-9]\') = 1\r\nand CREDIT_ENHANCE_CORPID<>\'无\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.022.154', 't_r_lczx_zcys_05', '增信机构代码定长9位或者18位字符', '增信机构代码定长9位或者18位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM T_R_LCZX_ZCYS_05 T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND LENGTH(convert (CREDIT_ENHANCE_CORPID using GBK)) NOT IN (9,18)\r\nAND CREDIT_ENHANCE_CORPID <>\'无\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.036', 't_r_lczx_underlying_assets', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'UNDERLYING_ASSET_LIABILITY_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, 0 AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n from t_r_lczx_underlying_assets t\r\n where UNDERLYING_ASSET_LIABILITY_CODE NOT IN \r\n (select REP_FINPROD_ID FROM t_r_lczx_zcys_all_result) and T.FILE_DATE = \'@FILE_DATE\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.037', 't_r_lczx_underlying_assets', '{对应资管及委外资产行内资产/负债编码}应能匹配数据库中已有的记录', '对应资管及委外资产行内资产/负债编码不存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'ASSET_LIABILITY_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (\r\nselect a.N_ID,a.FILE_DATE,a.FUND_CATEGORY,a.ASSET_LIABILITY_CODE from t_r_lczx_underlying_assets a\r\nleft join t_r_lczx_zcys_all_result b\r\non a.ASSET_LIABILITY_CODE=b.REP_FINPROD_ID\r\nwhere a.FILE_DATE = \'@FILE_DATE\'\r\nand b.REP_FINPROD_ID is null\r\n ) T\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.045.999', 't_r_lczx_zcys_all', '{资产/负债类别}值必须在值域内', '{资产/负债类别}值必须在值域内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_ASSET_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_ASSET_TYPE\',T.REP_ASSET_TYPE)=0 \r\nAND REP_ASSET_TYPE IS NOT NULL\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.054.153', 't_r_lczx_zcys_all', '增信机构代码由数字和大写字母组成', '增信机构代码由数字和大写字母组成', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID_05\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n null AS LEFT_CALCULATION_VALUE,\r\n null AS RIGHT_CALCULATION_VALUE,\r\n null AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_05\')\r\nand T.CREDIT_ENHANCE_CORPID_05 REGEXP \'[^A-Z0-9]\' = 1 \r\nand CREDIT_ENHANCE_CORPID_05<>\'无\'\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.054.154', 't_r_lczx_zcys_all', '增信机构代码定长9位或者18位字符', '增信机构代码定长9位或者18位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID_05\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'Z70033\' AS INSTI_TYPE,\r\n null AS LEFT_CALCULATION_VALUE,\r\n null AS RIGHT_CALCULATION_VALUE,\r\n null AS DIFFERENCE\r\nFROM\r\n T_R_LCZX_ZCYS_ALL T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_05\')\r\nand char_LENGTH(convert (CREDIT_ENHANCE_CORPID_05 using GBK) ) NOT IN (9,18)\r\nand CREDIT_ENHANCE_CORPID_05<>\'无\'\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.058.031', 't_r_lczx_zcys_all', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_ASSET_TYPE,REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_19\')\r\nAND REP_ASSET_TYPE<>\'2000\'\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.153', 't_r_lczx_zcys_05_bank', '增信机构代码由数字和大写字母组成', '增信机构代码由数字和大写字母组成', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.CREDIT_ENHANCE_CORPID REGEXP \'[^A-Z0-9]\') = 1\r\nand CREDIT_ENHANCE_CORPID<>\'无\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.022.154', 't_r_lczx_zcys_05_bank', '增信机构代码定长9位或者18位字符', '增信机构代码定长9位或者18位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_05_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND LENGTH(convert (CREDIT_ENHANCE_CORPID using GBK)) NOT IN (9,18)\r\nAND CREDIT_ENHANCE_CORPID <>\'无\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.036', 't_r_lczx_underlying_assets_bank', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'UNDERLYING_ASSET_LIABILITY_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, 0 AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n from t_r_lczx_underlying_assets_bank t\r\n where UNDERLYING_ASSET_LIABILITY_CODE NOT IN \r\n (select REP_FINPROD_ID FROM t_r_lczx_zcys_all_bank_result) and T.FILE_DATE = \'@FILE_DATE\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.037', 't_r_lczx_underlying_assets_bank', '{对应资管及委外资产行内资产/负债编码}应能匹配数据库中已有的记录', '对应资管及委外资产行内资产/负债编码不存在', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'ASSET_LIABILITY_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM (\r\nselect a.N_ID,a.FILE_DATE,a.FUND_CATEGORY,a.ASSET_LIABILITY_CODE from t_r_lczx_underlying_assets_bank a\r\nleft join t_r_lczx_zcys_all_bank_result b\r\non a.ASSET_LIABILITY_CODE=b.REP_FINPROD_ID\r\nwhere a.FILE_DATE = \'@FILE_DATE\'\r\nand b.REP_FINPROD_ID is null\r\n ) T\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.045.999', 't_r_lczx_zcys_all_bank', '{资产/负债类别}值必须在值域内', '{资产/负债类别}值必须在值域内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_ASSET_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND GET_DICT(\'LCZX_ASSET_TYPE\',T.REP_ASSET_TYPE)=0 \r\nAND REP_ASSET_TYPE IS NOT NULL\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.054.153', 't_r_lczx_zcys_all_bank', '增信机构代码由数字和大写字母组成', '增信机构代码由数字和大写字母组成', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID_05\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n null AS LEFT_CALCULATION_VALUE,\r\n null AS RIGHT_CALCULATION_VALUE,\r\n null AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_05\')\r\nand T.CREDIT_ENHANCE_CORPID_05 REGEXP \'[^A-Z0-9]\' = 1 \r\nand CREDIT_ENHANCE_CORPID_05<>\'无\'\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.054.154', 't_r_lczx_zcys_all_bank', '增信机构代码定长9位或者18位字符', '增信机构代码定长9位或者18位字符', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT\r\n \'@BATCH_ID\' AS BATCH_ID,\r\n \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'CREDIT_ENHANCE_CORPID_05\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n \'C10307\' AS INSTI_TYPE,\r\n null AS LEFT_CALCULATION_VALUE,\r\n null AS RIGHT_CALCULATION_VALUE,\r\n null AS DIFFERENCE\r\nFROM\r\n t_r_lczx_zcys_all_bank T\r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\'\r\nAND (T.DEPT_NO=\'@DEPT_NO\' OR \'@DEPT_NO\'=\'\')\r\nand T.REP_ASSET_TYPE IN (\r\n SELECT\r\n ITEM_KEY\r\n FROM\r\n T_P_LCZX_ZCYS_REPORT\r\n WHERE\r\n ITEM_GROUP = \'T_R_LCZX_ZCYS_05\')\r\nand char_LENGTH( CONVERT (CREDIT_ENHANCE_CORPID_05 USING GBK)) NOT IN (9,18)\r\nAND CREDIT_ENHANCE_CORPID_05<>\'无\'\r\nGROUP BY\r\n T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.058.017', 't_r_lczx_zcys_all_bank', '{名称}最长200位字符型', '{名称}最长200位字符型', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'LIAB_NAME_19\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'Z70033\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND length(CONVERT( LIAB_NAME_19 using GBK)) > 200\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_19\')\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.058.031', 't_r_lczx_zcys_all_bank', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', '资产大类为‘其他(负债)类资产’时,{资产/负债类别}值必须在值域内', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'REP_ASSET_TYPE,REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, \'C10307\' AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\nFROM t_r_lczx_zcys_all_bank T\r\nWHERE T.FILE_DATE = \'@FILE_DATE\'\r\nAND CASE WHEN \'@DEPT_NO\'=\'\' THEN 1=1 ELSE T.DEPT_NO=\'@DEPT_NO\' END\r\nAND T.REP_ASSET_TYPE IN (SELECT ITEM_KEY FROM T_P_LCZX_ZCYS_REPORT WHERE ITEM_GROUP=\'T_R_LCZX_ZCYS_19\')\r\nAND REP_ASSET_TYPE<>\'2000\'\r\nGROUP BY T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-1.028', 't_r_299_1_1', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'821000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE = \'100000\', T.V, 0))\r\n AND (SIGN(SUM(IF(ITEM_CODE = \'121000\', T.V, 0))) <> 0 OR\r\n SIGN(SUM(IF(ITEM_CODE = \'123000\', T.V, 0))) <> 0) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_1\') THEN\r\n N_ID\r\n END) AS N_ID, GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE IN (\'100000\', \'121000\', \'123000\') AND COL IN(\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\')) OR\r\n (ITEM_CODE = \'821000\' AND COL IN(\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\')))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE,T.COL) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.028', 't_r_299_1_1_bank', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'821000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE = \'100000\', T.V, 0))\r\n AND (SIGN(SUM(IF(ITEM_CODE = \'121000\', T.V, 0))) <> 0 OR\r\n SIGN(SUM(IF(ITEM_CODE = \'123000\', T.V, 0))) <> 0) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_1\') THEN\r\n N_ID\r\n END) AS N_ID, GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE IN (\'100000\', \'121000\', \'123000\') AND COL IN(\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\')) OR\r\n (ITEM_CODE = \'821000\' AND COL IN(\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\')))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE,T.COL) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
DELETE FROM pawmrpcs.data_check_rule_set WHERE RULE_CODE IN
(
'LCZX.A.032.036',
'LCZX_BANK.A.032.036',
'RH299.A.1-1.028',
'RH299_BANK.A.1-1.028'
);
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX.A.032.036', 't_r_lczx_underlying_assets', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'UNDERLYING_ASSET_LIABILITY_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n from t_r_lczx_underlying_assets t\r\n where UNDERLYING_ASSET_LIABILITY_CODE NOT IN \r\n (select REP_FINPROD_ID FROM t_r_lczx_zcys_all_result) and T.FILE_DATE = \'@FILE_DATE\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('LCZX_BANK.A.032.036', 't_r_lczx_underlying_assets_bank', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', '{底层资产行内资产/负债编码}对应资产必须已经完成资产要素登记', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n \'UNDERLYING_ASSET_LIABILITY_CODE\' AS COLUMN_CODE,0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\r\n NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n NULL AS DIFFERENCE\r\n from t_r_lczx_underlying_assets_bank t\r\n where UNDERLYING_ASSET_LIABILITY_CODE NOT IN \r\n (select REP_FINPROD_ID FROM t_r_lczx_zcys_all_bank_result) and T.FILE_DATE = \'@FILE_DATE\'\r\nGROUP BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299.A.1-1.028', 't_r_299_1_1', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'821000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE = \'100000\', T.V, 0))\r\n AND (SIGN(SUM(IF(ITEM_CODE = \'121000\', T.V, 0))) <> 0 OR\r\n SIGN(SUM(IF(ITEM_CODE = \'123000\', T.V, 0))) <> 0) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_1\') THEN\r\n N_ID\r\n END) AS N_ID, GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM T_R_299_REPORT_RESULT T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE IN (\'100000\', \'121000\', \'123000\') AND COL IN(\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\')) OR\r\n (ITEM_CODE = \'821000\' AND COL IN(\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\')))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE,T.COL_ORG) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
INSERT INTO pawmrpcs.data_check_rule_set(`RULE_CODE`, `REPORT_CODE`, `RULE_NAME`, `RULE_DESC`, `RULE_TYPE`, `STATUS`, `COL_CODE`, `EXP_TYPE`, `EXP_DEFINE`, `EXP_PARAM`, `UNION_TYPE`, `RULE_FORMULA`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `RULE_LEVEL`, `RULE_CODE_CREATE_TYPE`, `RULE_SQL`) VALUES ('RH299_BANK.A.1-1.028', 't_r_299_1_1_bank', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', '5.对于净值型产品,表1-1募集余额填报资管产品期末份额乘以期末净值的余额,此募集余额与实收本金通常不应相等。故,若表1-1中净值型产品(开放式净值产品、封闭式净值型产品)有数,且表2-1中实收本金和表1-1募集资金余额相等,须核实。 ', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'admin', '2021-09-22 14:40:03', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n GROUP_CONCAT(DISTINCT N_ID) AS N_ID_LIST, GROUP_CONCAT(DISTINCT COL_ORG) AS COLUMN_CODE,\r\n MAX(RESULT_CODE) AS RESULT_CODE, FILE_DATE, INSTI_TYPE, \'\' AS LEFT_CALCULATION_VALUE, \'\' AS RIGHT_CALCULATION_VALUE,\'\' AS DIFFERENCE\r\nFROM (SELECT CASE\r\n WHEN SUM(IF(ITEM_CODE = \'821000\', T.V, 0)) =\r\n SUM(IF(ITEM_CODE = \'100000\', T.V, 0))\r\n AND (SIGN(SUM(IF(ITEM_CODE = \'121000\', T.V, 0))) <> 0 OR\r\n SIGN(SUM(IF(ITEM_CODE = \'123000\', T.V, 0))) <> 0) THEN\r\n 0\r\n ELSE\r\n 1\r\n END AS RESULT_CODE, T.FDATE AS FILE_DATE,\r\n GROUP_CONCAT(DISTINCT CASE\r\n WHEN TABLE_NAME IN (\'1_1\') THEN\r\n N_ID\r\n END) AS N_ID, GROUP_CONCAT(DISTINCT COL_ORG) AS COL_ORG,\r\n T.FUND_CATEGORY AS INSTI_TYPE\r\n FROM t_r_299_report_bank_result T\r\n WHERE FDATE = \'@FILE_DATE\'\r\n AND TABLE_NAME IN (\'1_1\', \'2_1\')\r\n AND ((ITEM_CODE IN (\'100000\', \'121000\', \'123000\') AND COL IN(\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\')) OR\r\n (ITEM_CODE = \'821000\' AND COL IN(\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\')))\r\n GROUP BY T.FDATE, T.FUND_CATEGORY, T.FUND_TYPE,T.COL_ORG) T1\r\nWHERE T1.RESULT_CODE = \'0\'\r\nGROUP BY T1.FILE_DATE, T1.INSTI_TYPE');
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='当从业人员类型为理财登记人时,登记人员类别要素不可为空;当从业人员类型为产品设计人时,登记人员类别要素必须为空。' where RULE_CODE IN ('LCZX.A.031.043','LCZX_BANK.A.031.043');
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.025';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.042';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.044';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.045.047';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.046.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.046.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.046.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.046.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.047.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.047.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.049.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.049.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.049.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.049.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.059.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.036';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.059';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.065';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.068';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.071';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.062.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.062.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.062.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.055.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.055.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.055.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.055.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.055.055';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.037';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.056.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.040';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.050';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.054';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.058';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.066';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.025';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.042';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.044';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.045.047';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.046.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.046.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.046.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.046.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.047.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.047.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.049.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.049.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.049.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.049.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.059.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.036';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.059';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.065';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.068';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.071';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.062.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.062.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.062.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.055.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.055.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.055.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.055.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.055.055';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.037';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.056.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.040';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.050';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.054';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.058';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.066';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.047.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.047.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.059.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.059.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.059.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.059.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.047.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.047.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.059.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.059.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.059.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.059.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.025';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.042';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.044';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.013.047';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.014.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.014.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.014.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.014.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.015.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.015.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.015.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.015.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.017.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.017.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.017.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.017.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.027.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.027.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.027.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.027.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.027.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.036';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.059';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.065';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.068';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.029.071';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.030.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.030.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.030.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.023.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.023.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.023.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.023.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.023.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.037';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.024.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.040';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.050';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.054';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.058';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.025.066';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.025';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.042';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.044';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.013.047';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.014.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.014.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.014.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.014.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.015.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.015.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.015.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.015.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.017.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.017.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.017.021';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.017.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.027.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.027.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.027.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.027.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.027.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.036';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.059';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.065';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.068';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.029.071';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.030.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.030.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.030.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.023.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.023.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.023.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.023.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.023.023';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.037';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.039';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.041';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.024.043';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.014';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.016';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.018';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.020';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.022';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.024';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.027';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.029';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.031';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.033';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.035';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.040';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.050';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.054';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.058';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.062';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.025.066';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='必须满足:最短剩余期限(天)≤加权剩余期限(天)≤最长剩余期限(天)' where RULE_CODE = 'LCZX.A.013.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='必须满足:最短剩余期限(天)≤加权剩余期限(天)≤最长剩余期限(天)' where RULE_CODE = 'LCZX.A.045.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='必须满足:最短剩余期限(天)≤加权剩余期限(天)≤最长剩余期限(天)' where RULE_CODE = 'LCZX_BANK.A.013.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='必须满足:最短剩余期限(天)≤加权剩余期限(天)≤最长剩余期限(天)' where RULE_CODE = 'LCZX_BANK.A.045.038';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.028.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.060.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.028.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.060.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.028.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.060.028';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.028.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.060.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.061.080';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.057.075';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.061.080';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.057.075';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.013.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.014.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.015.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.016.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.017.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.018.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.019.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.020.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.021.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.022.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.023.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.024.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.025.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.026.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.027.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.028.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.029.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.030.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX.A.045.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='{产品登记编码}不能和历史报送的值重复' where RULE_CODE ='LCZX.A.034.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.013.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.014.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.015.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.016.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.017.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.018.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.019.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.020.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.021.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.022.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.023.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.024.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.025.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.026.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.027.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.028.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.029.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.030.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码报文内不可重复;该行内资产编码已经存在!' where RULE_CODE ='LCZX_BANK.A.045.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.013.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.014.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.015.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.016.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.017.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.018.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.019.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.020.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.021.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.022.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.023.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.024.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.025.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.026.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.027.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.028.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.029.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.030.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX.A.045.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.013.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.014.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.015.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.016.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.017.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.018.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.019.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.020.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.021.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.022.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.023.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.024.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.025.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.026.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.027.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.028.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.029.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.030.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种要素不可为空'where RULE_CODE ='LCZX_BANK.A.045.010';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.013.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.014.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.015.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.016.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.017.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.018.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.019.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.020.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.021.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.022.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.023.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.024.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.025.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.026.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.027.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.028.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.029.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.030.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX.A.045.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.013.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.014.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.015.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.016.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.017.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.018.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.019.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.020.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.021.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.022.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.023.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.024.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.025.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.026.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.027.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.028.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.029.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.030.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素不可为空'where RULE_CODE ='LCZX_BANK.A.045.005';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.013.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.014.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.015.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.016.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.017.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.018.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.019.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.020.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.021.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.022.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.023.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.024.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.025.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.026.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.027.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.028.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.029.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.030.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX.A.045.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.013.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.014.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.015.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.016.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.017.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.018.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.019.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.020.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.021.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.022.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.023.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.024.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.025.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.026.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.027.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.028.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.029.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.030.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码要素格式不对正确的格式:6位英文或数字'where RULE_CODE ='LCZX_BANK.A.045.006';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.013.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.014.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.015.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.016.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.017.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.018.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.019.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.020.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.021.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.022.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.023.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.024.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.025.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.026.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.027.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.028.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.029.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.030.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX.A.045.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.013.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.014.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.015.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.016.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.017.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.018.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.019.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.020.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.021.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.022.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.023.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.024.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.025.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.026.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.027.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.028.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.029.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.030.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所不在值域范围内'where RULE_CODE ='LCZX_BANK.A.045.013';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.013.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.014.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.015.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.016.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.017.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.018.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.019.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.020.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.021.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.022.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.023.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.024.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.025.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.026.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.027.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.028.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.029.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.030.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX.A.045.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.013.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.014.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.015.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.016.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.017.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.018.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.019.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.020.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.021.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.022.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.023.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.024.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.025.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.026.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.027.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.028.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.029.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.030.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='交易流通场所要素不可为空'where RULE_CODE ='LCZX_BANK.A.045.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.013.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.014.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.015.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.016.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.017.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.018.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.019.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.020.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.021.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.022.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.023.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.024.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.025.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.026.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.027.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.028.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.029.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.030.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX.A.045.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.013.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.014.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.015.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.016.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.017.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.018.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.019.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.020.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.021.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.022.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.023.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.024.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.025.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.026.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.027.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.028.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.029.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.030.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码过长'where RULE_CODE ='LCZX_BANK.A.045.004';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.013.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.014.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.015.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.016.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.017.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.018.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.019.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.020.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.021.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.022.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.023.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.024.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.025.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.026.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.027.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.028.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.029.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.030.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX.A.045.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.013.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.014.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.015.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.016.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.017.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.018.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.019.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.020.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.021.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.022.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.023.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.024.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.025.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.026.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.027.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.028.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.029.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.030.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码只能含有白名单内的阿拉伯数字,英文字母,半角符号,全角符号'where RULE_CODE ='LCZX_BANK.A.045.002';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.013.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.014.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.015.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.016.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.017.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.018.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.019.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.020.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.021.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.022.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.023.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.024.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.025.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.026.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.027.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.028.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.029.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.030.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX.A.045.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.013.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.014.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.015.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.016.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.017.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.018.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.019.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.020.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.021.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.022.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.023.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.024.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.025.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.026.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.027.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.028.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.029.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.030.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='发行机构代码必须与银行代码相同'where RULE_CODE ='LCZX_BANK.A.045.007';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.013.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.014.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.015.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.016.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.017.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.018.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.019.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.020.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.021.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.022.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.023.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.024.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.025.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.026.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.027.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.028.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.029.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.030.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX.A.045.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.013.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.014.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.015.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.016.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.017.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.018.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.019.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.020.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.021.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.022.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.023.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.024.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.025.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.026.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.027.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.028.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.029.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.030.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='行内资产/负债编码要素不可为空'where RULE_CODE ='LCZX_BANK.A.045.001';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.013.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.014.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.015.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.016.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.017.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.018.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.019.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.020.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.021.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.022.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.023.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.024.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.025.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.026.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.027.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.028.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.029.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.030.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX.A.045.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.013.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.014.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.015.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.016.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.017.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.018.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.019.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.020.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.021.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.022.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.023.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.024.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.025.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.026.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.027.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.028.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.029.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.030.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别不在值域范围内'where RULE_CODE ='LCZX_BANK.A.045.999';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.013.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.014.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.015.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.016.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.017.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.018.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.019.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.020.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.021.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.022.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.023.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.024.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.025.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.026.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.027.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.028.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.029.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.030.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX.A.045.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.013.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.014.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.015.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.016.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.017.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.018.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.019.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.020.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.021.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.022.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.023.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.024.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.025.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.026.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.027.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.028.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.029.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.030.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='资产/负债类别要素不可为空'where RULE_CODE ='LCZX_BANK.A.045.008';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.013.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.014.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.015.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.016.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.017.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.018.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.019.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.020.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.021.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.022.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.023.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.024.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.025.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.026.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.027.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.028.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.029.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.030.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX.A.045.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.013.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.014.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.015.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.016.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.017.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.018.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.019.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.020.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.021.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.022.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.023.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.024.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.025.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.026.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.027.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.028.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.029.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.030.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='币种不在值域范围内'where RULE_CODE ='LCZX_BANK.A.045.011';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX.A.022.094';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX.A.022.095';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX.A.054.094';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX.A.054.095';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX_BANK.A.022.094';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX_BANK.A.022.095';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX_BANK.A.054.094';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE='LCZX_BANK.A.054.095';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = '银行实际实现收入≠本机构管理费+本机构托管费+本机构销售手续费+本机构其他产品费用,请检查这五个元素的值,重新填写。' WHERE RULE_CODE='LCZX.A.003.012';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.014.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.014.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.046.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.046.026';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX.A.004.019';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC = RULE_NAME WHERE RULE_CODE = 'LCZX_BANK.A.004.019';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='当开放模式为有规律开放、规律开放周期为其他规律开放周期时,其他规律开放周期(天)要素不可为空;当开放模式为无规律开放时,其他规律开放周期(天)要素必须为空;当开放模式为有规律开放、规律开放周期为每天开放时,其他规律开放周期(天)要素必须为空。 ' where RULE_CODE='LCZX.A.034.037';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='首次重定价日期必须为日期格式(YYYY-MM-DD);首次重定价日期必须为正确日期 ' where RULE_CODE='LCZX.A.022.136';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='首次重定价日期必须为日期格式(YYYY-MM-DD);首次重定价日期必须为正确日期 ' where RULE_CODE='LCZX_BANK.A.022.136';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='首次重定价日期必须为日期格式(YYYY-MM-DD);首次重定价日期必须为正确日期 ' where RULE_CODE='LCZX.A.054.136';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='首次重定价日期必须为日期格式(YYYY-MM-DD);首次重定价日期必须为正确日期 ' where RULE_CODE='LCZX_BANK.A.054.136';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='产品登记编码要素格式不对。正确的格式:14或15位英文或数字。 ' where RULE_CODE='LCZX.A.003.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='产品登记编码要素格式不对。正确的格式:14或15位英文或数字。 ' where RULE_CODE='LCZX_BANK.A.003.003';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='重点监控行业和领域类别说明过长 ' where RULE_CODE='LCZX.A.022.096';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='重点监控行业和领域类别说明过长 ' where RULE_CODE='LCZX_BANK.A.022.096';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='重点监控行业和领域类别说明过长 ' where RULE_CODE='LCZX.A.054.096';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='重点监控行业和领域类别说明过长 ' where RULE_CODE='LCZX_BANK.A.054.096';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='备注过长 ' where RULE_CODE='LCZX.A.023.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='备注过长 ' where RULE_CODE='LCZX_BANK.A.023.032';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='备注过长 ' where RULE_CODE='LCZX.A.045.995';
UPDATE pawmrpcs.data_check_rule_set SET RULE_DESC ='备注过长 ' where RULE_CODE='LCZX_BANK.A.045.995';