gouji开发sql92

INSERT INTO ``(`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.009', 't_r_lczx_prod_duration_register_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	\'REPFINPRODREGID\' AS COLUMN_CODE,\r\n	0 AS RESULT_CODE,\r\n	\'@FILE_DATE\' AS FILE_DATE,\r\n	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	t_r_lczx_prod_duration_register_bank T \r\nWHERE\r\n	T.FILE_DATE = \'@FILE_DATE\' \r\n	AND LEFT ( REPFINPRODREGID, 6 ) <> \'C10307\'\r\nGROUP BY\r\n	T.FUND_CATEGORY,\r\n	T.FILE_DATE');
INSERT INTO ``(`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', '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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REPFINPRODREGID\' AS COLUMN_CODE,        0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,        T.FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE,        NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   (SELECT T1.FILE_DATE, T1.N_ID, T1.FUND_CATEGORY,                 T1.REPFINPRODREGID,                   T2.ISSUE_TYPE          FROM   t_r_lczx_prod_duration_register_bank T1          LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2          ON     T1.REPFINPRODREGID = T2.PROD_REG_ID) T WHERE  T.FILE_DATE = \'@FILE_DATE\' AND   ((LENGTH(CONVERT(T.REPFINPRODREGID USING GBK)) <> 14 and ISSUE_TYPE=\'公募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\'= 1)\r\nOR (LENGTH(CONVERT(T.REPFINPRODREGID USING GBK)) <> 15 and ISSUE_TYPE=\'私募\' OR REPFINPRODREGID REGEXP \'[^A-Za-z0-9]\'= 1) )   GROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.011', 't_r_lczx_prod_duration_register_bank', '{产品登记编码}和{业务结束日}这2个要素不可同时重复', '{产品登记编码}和{业务结束日}这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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'REPFINPRODREGID,REPBUSMDATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM (   SELECT GROUP_CONCAT(N_ID) AS N_ID,FUND_CATEGORY,FILE_DATE FROM t_r_lczx_prod_duration_register_bank T WHERE  T.FILE_DATE = \'@FILE_DATE\' GROUP BY T.REPFINPRODREGID,T.REPBUSMDATE,FUND_CATEGORY,FILE_DATE  HAVING COUNT(1) > 1)T GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.012', 't_r_lczx_prod_duration_register_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	\'REPFINPRODREGID\' AS COLUMN_CODE,\r\n	RESULT_CODE,\r\n	FILE_DATE,\r\n	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\n	from (\r\n	select \r\n	CASE WHEN PROD_REG_CODE IS NULL THEN 0 ELSE 1 END AS RESULT_CODE,\r\n  A.N_ID,\r\n	A.FUND_CATEGORY,\r\n	A.FILE_DATE\r\nfrom \r\n	(select REPFINPRODREGID,N_ID,FILE_DATE,FUND_CATEGORY from t_r_lczx_prod_duration_register_bank\r\n	WHERE FILE_DATE = \'@FILE_DATE\' ) a\r\n	left join \r\n	(select PROD_REG_CODE,N_ID,FILE_DATE,FUND_CATEGORY from t_r_lczx_prod_raise_register_result) b\r\n	on a.REPFINPRODREGID=b.PROD_REG_CODE\r\n	AND a.FUND_CATEGORY=b.FUND_CATEGORY) T\r\n	WHERE T.RESULT_CODE=0\r\n	GROUP BY T.FUND_CATEGORY,\r\n	T.FILE_DATE;');
INSERT INTO ``(`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.014', 't_r_lczx_prod_duration_register_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       \'REPFINPRODREGID,REPBUSVDATE\' 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 GROUP_CONCAT(N_ID) AS N_ID,FUND_CATEGORY,FILE_DATE\r\nFROM t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nGROUP BY T.REPFINPRODREGID,T.REPBUSVDATE,FUND_CATEGORY,FILE_DATE \r\nHAVING COUNT(1) > 1)T\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.016', 't_r_lczx_prod_duration_register_bank', '{初始净值}大于等于0', '{初始净值}大于等于0', '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       \'REPINITNETVAL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPINITNETVAL IS NOT NULL\r\nAND    T.REPINITNETVAL < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.017', 't_r_lczx_prod_duration_register_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, \'REPINITNETVAL\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPINITNETVAL,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPINITNETVAL IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.018', 't_r_lczx_prod_duration_register_bank', '关联产品基本信息表,判断净值型产品,校验{初始净值}= 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 T.N_ID) AS N_ID_LIST, \'REPINITNETVAL\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPINITNETVAL,\r\n								T2.OPER_TYPE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.OPER_TYPE LIKE \'%净值%\' AND T.REPINITNETVAL <> 1\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.019', 't_r_lczx_prod_duration_register_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 A.N_ID ) AS N_ID_LIST,\r\n	\'REPFINPRODREGID,REPINITNETVAL\' AS COLUMN_CODE,\r\n	0 AS RESULT_CODE,\r\n	A.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(SELECT REPFINPRODREGID,REPINITNETVAL,N_ID,FILE_DATE,FUND_CATEGORY from t_r_lczx_prod_duration_register_bank) A\r\nLEFT JOIN t_r_lczx_prod_duration_register_result B\r\nON  A.REPFINPRODREGID=B.REPFINPRODREGID\r\nAND A.REPINITNETVAL=B.REPINITNETVAL\r\nWHERE A.FILE_DATE=\'@FILE_DATE\'\r\nAND (B.REPINITNETVAL IS NULL  and   B.REPFINPRODREGID IS   NULL)\r\nand A.REPFINPRODREGID in (select REPFINPRODREGID from t_r_lczx_prod_duration_register_result )\r\nGROUP BY A.FUND_CATEGORY,\r\n	A.FILE_DATE;');
INSERT INTO ``(`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.021', 't_r_lczx_prod_duration_register_bank', '{产品净值}非空时,数值须大于0', '{产品净值}非空时,数值须大于0', '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       \'REPPRODNETVAL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPPRODNETVAL IS NOT NULL\r\nAND    T.REPPRODNETVAL <= 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.022', 't_r_lczx_prod_duration_register_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, \'REPPRODNETVAL\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPPRODNETVAL,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPPRODNETVAL IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.024', 't_r_lczx_prod_duration_register_bank', '{累计净值}非空时,数值须大于0', '{累计净值}非空时,数值须大于0', '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, \'REPSUMNETVAL\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMNETVAL IS NOT NULL\r\nAND    T.REPSUMNETVAL <= 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.025', 't_r_lczx_prod_duration_register_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, \'REPSUMNETVAL\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPSUMNETVAL,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPSUMNETVAL IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.028', 't_r_lczx_prod_duration_register_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, \'REPNETVALCCY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPNETVALCCY IS NOT NULL\r\nAND    GET_CURRENCY_MAPPING(T.REPNETVALCCY) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.031', 't_r_lczx_prod_duration_register_bank', '{净值币种}填写币种对应的三位代码(如 CNY)', '{净值币种}填写币种对应的三位代码(如 CNY)', '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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'REPNETVALCCY\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   T_R_LCZX_PROD_DURATION_REGISTER_BANK  T WHERE  T.FILE_DATE = \'@FILE_DATE\'  AND    (T.REPNETVALCCY REGEXP  \'[^A-Z]\'=1 OR LENGTH (T.REPNETVALCCY)<>3 OR GET_DICT(\'LCZX_CURRENCY\',REPNETVALCCY ) = 0) GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.032', 't_r_lczx_prod_duration_register_bank', '{折算人民币初始净值}大于等于0', '{折算人民币初始净值}大于等于0', '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       \'REPINITNETVALCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    IFNULL(T.REPINITNETVALCNY,0) < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.033', 't_r_lczx_prod_duration_register_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, \'REPINITNETVALCNY\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPINITNETVALCNY,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPINITNETVALCNY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.034', 't_r_lczx_prod_duration_register_bank', '{币种}=“CNY“时,{初始净值}={折算人民币初始净值}', '{币种}=“CNY“时,{初始净值}={折算人民币初始净值}', '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       \'REPNETVALCCY,REPINITNETVAL,REPINITNETVALCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(REPSUMNETVAL) AS LEFT_CALCULATION_VALUE, GROUP_CONCAT(REPSUMNETVALCNY) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(REPSUMNETVAL-REPSUMNETVALCNY)) AS DIFFERENCE\r\nFROM   T_R_LCZX_PROD_DURATION_REGISTER_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REPNETVALCCY=\'CNY\'\r\nAND    REPINITNETVAL<>REPINITNETVALCNY\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.035', 't_r_lczx_prod_duration_register_bank', '{折算人民币初始净值}在整个存续登记期间应固定不变', '{折算人民币初始净值}在整个存续登记期间应固定不变', '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 A.N_ID ) AS N_ID_LIST,\n	\'REPFINPRODREGID,REPINITNETVALCNY\' AS COLUMN_CODE,\n	0 AS RESULT_CODE,\n	A.FILE_DATE,\n	A.FUND_CATEGORY AS INSTI_TYPE,\n	NULL AS LEFT_CALCULATION_VALUE,\n	NULL AS RIGHT_CALCULATION_VALUE,\n	NULL AS DIFFERENCE \nFROM \n(SELECT REPFINPRODREGID,REPINITNETVALCNY,N_ID,FILE_DATE,FUND_CATEGORY from t_r_lczx_prod_duration_register_bank) A\nLEFT JOIN t_r_lczx_prod_duration_register_result B\nON  A.REPFINPRODREGID=B.REPFINPRODREGID\nAND A.REPINITNETVALCNY=B.REPINITNETVALCNY\nWHERE A.FILE_DATE=\'@FILE_DATE\'\nAND (B.REPINITNETVALCNY IS NULL  and   B.REPFINPRODREGID IS   NULL)\nand A.REPFINPRODREGID in (select REPFINPRODREGID from t_r_lczx_prod_duration_register_result )\nGROUP BY A.FUND_CATEGORY,\n	A.FILE_DATE;');
INSERT INTO ``(`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.037', 't_r_lczx_prod_duration_register_bank', '{折算人民币净值}非空时,数值须大于0', '{折算人民币净值}非空时,数值须大于0', '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, \'REPNETVALCNY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPNETVALCNY <= 0\r\nAND    T.REPNETVALCNY IS NOT NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.038', 't_r_lczx_prod_duration_register_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, \'REPNETVALCNY\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPNETVALCNY,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPNETVALCNY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.039', 't_r_lczx_prod_duration_register_bank', '{币种}=“CNY“时,{产品净值}={折算人民币净值}', '{币种}=“CNY“时,{产品净值}={折算人民币净值}', '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       \'REPPRODNETVAL,REPNETVALCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(REPSUMNETVAL) AS LEFT_CALCULATION_VALUE, GROUP_CONCAT(REPSUMNETVALCNY) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(REPSUMNETVAL-REPSUMNETVALCNY)) AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REPNETVALCCY=\'CNY\'\r\nAND    REPPRODNETVAL<>REPNETVALCNY\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.041', 't_r_lczx_prod_duration_register_bank', '{折算人民币累计净值}非空时,数值须大于0', '{折算人民币累计净值}非空时,数值须大于0', '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       \'REPSUMNETVALCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_PROD_DURATION_REGISTER_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMNETVALCNY <= 0\r\nand    T.REPSUMNETVALCNY is not null\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.042', 't_r_lczx_prod_duration_register_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, \'REPSUMNETVALCNY\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPSUMNETVALCNY,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPSUMNETVALCNY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.043', 't_r_lczx_prod_duration_register_bank', '{币种}=“CNY“时,{累计净值}={折算人民币累计净值}', '{币种}=“CNY“时,{累计净值}={折算人民币累计净值}', '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       \'REPSUMNETVAL,REPSUMNETVALCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(REPSUMNETVAL) AS LEFT_CALCULATION_VALUE, GROUP_CONCAT(REPSUMNETVALCNY) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(REPSUMNETVAL-REPSUMNETVALCNY)) AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REPNETVALCCY=\'CNY\'\r\nAND    REPSUMNETVAL<>REPSUMNETVALCNY\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.045', 't_r_lczx_prod_duration_register_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, \'VAL_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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.VAL_DATE,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND VAL_DATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.046', 't_r_lczx_prod_duration_register_bank', '{净值日期}日期型,八位长字符,格式为 yyyymmdd', '{净值日期}日期型,八位长字符,格式为 yyyymmdd', '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	\'VAL_DATE\' AS COLUMN_CODE,\r\n	0 AS RESULT_CODE,\r\n	\'@FILE_DATE\' AS FILE_DATE,\r\n	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	t_r_lczx_prod_duration_register_bank T \r\nWHERE\r\n	T.FILE_DATE = \'@FILE_DATE\' \r\n	AND VAL_DATE IS NOT NULL\r\n	AND is_date_type(VAL_DATE,1)=0\r\nGROUP BY\r\n	T.FUND_CATEGORY,\r\n	T.FILE_DATE');
INSERT INTO ``(`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.047', 't_r_lczx_prod_duration_register_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, \'REPACHIYIELD\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPACHIYIELD,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPACHIYIELD IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.054', 't_r_lczx_prod_duration_register_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       \'REPACHIPROFITCNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPACHIPROFITCNY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.058', 't_r_lczx_prod_duration_register_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, \'REPBUSVDATE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPBUSVDATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.059', 't_r_lczx_prod_duration_register_bank', '{业务起始日}日期型,八位长字符,格式为 yyyymmdd', '{业务起始日}日期型,八位长字符,格式为 yyyymmdd', '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 \'REPBUSVDATE\' AS COLUMN_CODE,\r\n 0 AS RESULT_CODE,\r\n \'@FILE_DATE\' AS FILE_DATE,\r\n 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 t_r_lczx_prod_duration_register_bank T \r\nWHERE\r\n T.FILE_DATE = \'@FILE_DATE\' \r\n AND IS_DATE_TYPE(REPBUSVDATE,1)=0\r\nGROUP BY\r\n T.FUND_CATEGORY,\r\n T.FILE_DATE');
INSERT INTO ``(`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.060', 't_r_lczx_prod_duration_register_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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'REPBUSMDATE,REPBUSVDATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_prod_duration_register_bank  T WHERE  T.FILE_DATE = \'@FILE_DATE\'  AND    T.REPBUSMDATE < T.REPBUSVDATE GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.061', 't_r_lczx_prod_duration_register_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, \'REPBUSMDATE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPBUSMDATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.062', 't_r_lczx_prod_duration_register_bank', '{业务结束日}日期型,八位长字符,格式为 yyyymmdd', '{业务结束日}日期型,八位长字符,格式为 yyyymmdd', '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	\'REPBUSMDATE\' AS COLUMN_CODE,\n	0 AS RESULT_CODE,\n	\'@FILE_DATE\' AS FILE_DATE,\n	FUND_CATEGORY AS INSTI_TYPE,\n	NULL AS LEFT_CALCULATION_VALUE,\n	NULL AS RIGHT_CALCULATION_VALUE,\n	NULL AS DIFFERENCE \nFROM\n	t_r_lczx_prod_duration_register_bank T \nWHERE\n	T.FILE_DATE = \'@FILE_DATE\' \n	AND is_date_type(REPBUSMDATE,1)=0\nGROUP BY\n	T.FUND_CATEGORY,\n	T.FILE_DATE');
INSERT INTO ``(`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.063', 't_r_lczx_prod_duration_register_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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'REPBUSMDATE,REPBUSVDATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_prod_duration_register_bank  T WHERE  T.FILE_DATE = \'@FILE_DATE\'  AND    T.REPBUSMDATE < T.REPBUSVDATE GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.064', 't_r_lczx_prod_duration_register_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 T1.N_ID) AS N_ID_LIST,\r\n       \'REPFINPRODREGID,REPBUSMDATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T1.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT REPFINPRODREGID, REPBUSMDATE, GROUP_CONCAT(N_ID) AS N_ID,\r\n                FUND_CATEGORY, FILE_DATE\r\n         FROM   t_r_lczx_prod_duration_register_bank T\r\n         WHERE  FILE_DATE = \'@FILE_DATE\'\r\n         GROUP  BY T.REPFINPRODREGID, T.REPBUSMDATE, T.FILE_DATE\r\n         HAVING COUNT(1) > 1) T1\r\nGROUP  BY T1.FILE_DATE, T1.FUND_CATEGORY');
INSERT INTO ``(`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.065', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SUBSCRIPTIONHONOR IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.067', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_PROD_DURATION_REGISTER_BANK T\r\nWHERE  T.file_date=\'@FILE_DATE\'\r\nAND    (T.SUBSCRIPTIONHONOR IS NOT NULL\r\nAND T.N_ID IN\r\n(SELECT T2.N_ID FROM \r\n(select n_id,file_date,SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(A.SUBSCRIPTIONHONOR, \';\', B.HELP_TOPIC_ID + 1),\';\',-1),\',\',1) as SUBSCRIPTIONHONOR\r\nfrom T_R_LCZX_PROD_DURATION_REGISTER_BANK a\r\nJOIN pawmrpcs.help_topic b\r\non help_topic_id<(length(a.SUBSCRIPTIONHONOR)-length(replace(a.SUBSCRIPTIONHONOR,\';\',\'\'))+1)\r\nwhere file_date=\'@FILE_DATE\') T2\r\nWHERE GET_DICT(\'LCZX_CURRENCY\',T2.SUBSCRIPTIONHONOR) = 0))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.068', 't_r_lczx_prod_duration_register_bank', '{币种}填写币种对应的三位代码 (如 CNY)', '{币种}填写币种对应的三位代码 (如 CNY)', '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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_prod_duration_register_bank  T WHERE  T.FILE_DATE = \'@FILE_DATE\'  AND    left(SUBSCRIPTIONHONOR,3) REGEXP  \'[^A-Z]\'=1  GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.071', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', 2), \',\',\r\n                                 -1) AS BZLJSGJE, REPISSUEPARTYID, N_ID, FILE_DATE,\r\n                FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BZLJSGJE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.072', 't_r_lczx_prod_duration_register_bank', '{该币种累计申购金额}大于等于0', '{该币种累计申购金额}大于等于0', '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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', 2), \',\',\r\n                                 -1) AS BZLJSGJE, REPISSUEPARTYID, N_ID, FILE_DATE,\r\n                FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BZLJSGJE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.074', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', 3), \',\',\r\n                                 -1) AS BZDFJE, REPISSUEPARTYID, N_ID, FILE_DATE,\r\n                FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BZDFJE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.075', 't_r_lczx_prod_duration_register_bank', '{该币种累计兑付金额}大于等于0', '{该币种累计兑付金额}大于等于0', '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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', 3), \',\',\r\n                                 -1) AS BZDFJE, REPISSUEPARTYID, N_ID, FILE_DATE,\r\n                FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BZDFJE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.077', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', -1) AS DFSYJE,\r\n                REPISSUEPARTYID, N_ID, FILE_DATE, FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.DFSYJE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.078', 't_r_lczx_prod_duration_register_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       \'SUBSCRIPTIONHONOR\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(T.BZDFJE) AS LEFT_CALCULATION_VALUE, GROUP_CONCAT(T.BZSYJE) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(T.BZDFJE - T.BZSYJE) ) AS DIFFERENCE\r\nFROM   (SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', 3), \',\',\r\n                                 -1) AS DECIMAL(38,6)) AS BZDFJE,\r\n                CAST(SUBSTRING_INDEX(SUBSCRIPTIONHONOR, \',\', -1) AS DECIMAL(38,6)) AS BZSYJE,\r\n                REPISSUEPARTYID, N_ID, FILE_DATE, FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_duration_register_bank A) T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BZDFJE < T.BZSYJE\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.080', 't_r_lczx_prod_duration_register_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       \'REPSUMAPPLYSHARE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMAPPLYSHARE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.081', 't_r_lczx_prod_duration_register_bank', '{累计申购份额}大于等于0', '{累计申购份额}大于等于0', '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       \'REPSUMAPPLYSHARE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMAPPLYSHARE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.084', 't_r_lczx_prod_duration_register_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       \'REPSUMCASHSHARE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMCASHSHARE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.085', 't_r_lczx_prod_duration_register_bank', '{累计赎回份额}大于等于0', '{累计赎回份额}大于等于0', '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       \'REPSUMCASHSHARE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPSUMCASHSHARE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.088', 't_r_lczx_prod_duration_register_bank', '{每万份份额分红}大于等于0', '{每万份份额分红}大于等于0', '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, \'SHARE_FH\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SHARE_FH < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.090', 't_r_lczx_prod_duration_register_bank', '{每万份现金分红}大于等于0', '{每万份现金分红}大于等于0', '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       \'UNIT_BONUS_VLU\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.UNIT_BONUS_VLU < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.092', 't_r_lczx_prod_duration_register_bank', '{产品余额}大于等于0', '{产品余额}大于等于0', '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       \'REPPRODBALANCE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPPRODBALANCE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.095', 't_r_lczx_prod_duration_register_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, \'REPPRODBALANCE\' 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.FUND_CATEGORY,\r\n								T1.REPFINPRODREGID,T1.N_ID,T1.REPPRODBALANCE,\r\n								T3.OPERATION_MODE\r\n         FROM   t_r_lczx_prod_duration_register_bank T1\r\n				 LEFT   JOIN pawm_fact_pd_prod_base_info_fd T2\r\n         ON     T2.PROD_REG_ID = T1.REPFINPRODREGID\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 OPERATION_MODE IN(\'03\',\'01\') AND REPPRODBALANCE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.097', 't_r_lczx_prod_duration_register_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, \'REPPRODSHARE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPPRODSHARE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.098', 't_r_lczx_prod_duration_register_bank', '{产品份额}大于等于0', '{产品份额}大于等于0', '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, \'REPPRODSHARE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_duration_register_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REPPRODSHARE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.101', 't_r_lczx_prod_duration_register_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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,        \'REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,        \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_prod_duration_register_bank  T WHERE  T.FILE_DATE = \'@FILE_DATE\'  AND    LENGTH(CONVERT(T.REMARK USING GBK))>256 GROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.103', 't_r_lczx_prod_duration_register_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\nGROUP_CONCAT( DISTINCT T.N_ID ) AS N_ID_LIST,\r\n\'REPFINPRODREGID,REPBUSMDATE\' AS COLUMN_CODE,\r\n0 AS RESULT_CODE,\r\n\'@FILE_DATE\' AS FILE_DATE,\r\nFUND_CATEGORY AS INSTI_TYPE,\r\nNULL AS LEFT_CALCULATION_VALUE,\r\nNULL AS RIGHT_CALCULATION_VALUE,\r\nNULL AS DIFFERENCE \r\nFROM(\r\n	select GROUP_CONCAT( DISTINCT N_ID ) AS N_ID,FUND_CATEGORY,FILE_DATE,REPFINPRODREGID,REPBUSMDATE from t_r_lczx_prod_duration_register_bank\r\n	where FILE_DATE = \'@FILE_DATE\'\r\n	group by REPFINPRODREGID,REPBUSMDATE\r\n	having count(1)>1) T\r\n	GROUP BY\r\n	T.FUND_CATEGORY,\r\n	T.FILE_DATE;');
INSERT INTO ``(`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.001', 't_r_lczx_prod_end_info_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, \'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, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.PROD_REG_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.002', 't_r_lczx_prod_end_info_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, \'PROD_REG_ID,ISSUER\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LEFT(T.PROD_REG_ID,6) <> ISSUER\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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', '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_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 ((ISSUE_TYPE=\'公募\' and (LENGTH(PROD_REG_ID) <> 14  OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1))\r\nOR (ISSUE_TYPE=\'私募\' and (LENGTH(PROD_REG_ID) <> 15 OR PROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1)))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.004', 't_r_lczx_prod_end_info_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,\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\n       \'PROD_REG_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\n       \'@FILE_DATE\' AS FILE_DATE, 0 AS INSTI_TYPE,\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\n       NULL AS DIFFERENCE\n    from t_r_lczx_prod_end_info_bank t\n    where  T.FILE_DATE = \'@FILE_DATE\'\n       AND PROD_REG_ID  NOT IN \n    (select  PROD_REG_CODE FROM t_r_lczx_prod_raise_register_result)\n    or PROD_REG_ID  in \n    (select PROD_REG_ID from t_r_lczx_prod_end_info_result)\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.005', 't_r_lczx_prod_end_info_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 N_ID) AS N_ID_LIST, \'PROD_REG_ID\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T1.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   (SELECT PROD_REG_ID, FILE_DATE, GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n                T.FUND_CATEGORY\r\n         FROM   t_r_lczx_prod_end_info_bank T\r\n         WHERE  T.FILE_DATE = \'@FILE_DATE\'\r\n         GROUP  BY PROD_REG_ID, FILE_DATE\r\n         HAVING COUNT(1) > 1) T1\r\nGROUP  BY T1.FUND_CATEGORY, T1.FILE_DATE');
INSERT INTO ``(`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.006', 't_r_lczx_prod_end_info_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, \'ISSUER\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.ISSUER IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.007', 't_r_lczx_prod_end_info_bank', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '发行机构代码必须与银行代码相同;发行机构代码要素格式不对。正确的格式:6位英文或数字。', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'TIANXIAOKANG001208', '2022-02-14 14:31:29', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'ISSUER\' AS COLUMN_CODE,\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\n       NULL AS DIFFERENCE\nFROM   t_r_lczx_prod_end_info_bank T\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\nAND    T.ISSUER <> \'C10307\'\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.008', 't_r_lczx_prod_end_info_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, \'END_DATE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.END_DATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.010', 't_r_lczx_prod_end_info_bank', '{理财产品实际终止日期}日期型,八位长字符,格式为 yyyymmdd', '理财产品实际终止日期必须为日期格式(YYYY-MM-DD);理财产品实际终止日期必须为正确日期。', '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, \'END_DATE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   T_R_LCZX_PROD_END_INFO_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    END_DATE IS NOT NULL\r\nAND    IS_DATE_TYPE(END_DATE, 1)=0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.011', 't_r_lczx_prod_end_info_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       \'BANK_INCO_ACT\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.BANK_INCO_ACT IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.012', 't_r_lczx_prod_end_info_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       \'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.HOLD_FEE_S, 0) + IFNULL(T.MANAGER_FEE, 0) +\r\n        IFNULL(T.SALE_FEE_S, 0) + IFNULL(T.OTHER_FEE, 0)) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(IFNULL(T.BANK_INCO_ACT, 0) -\r\n            (IFNULL(T.HOLD_FEE_S, 0) + IFNULL(T.MANAGER_FEE, 0) +\r\n             IFNULL(T.SALE_FEE_S, 0) + IFNULL(T.OTHER_FEE, 0)))) AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    IFNULL(T.BANK_INCO_ACT, 0) <>\r\n       IFNULL(T.HOLD_FEE_S, 0) + IFNULL(T.MANAGER_FEE, 0) +\r\n       IFNULL(T.SALE_FEE_S, 0) + IFNULL(T.OTHER_FEE, 0)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014', 't_r_lczx_prod_end_info_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, \'CUST_REVENUE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.CUST_REVENUE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.016', 't_r_lczx_prod_end_info_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       \'CUST_REVENUE,CUST_YIELD_RATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    (T.CUST_YIELD_RATE < 0 AND T.CUST_REVENUE >= 0)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.017', 't_r_lczx_prod_end_info_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, \'TDYRED_MONEY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.TDYRED_MONEY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.019', 't_r_lczx_prod_end_info_bank', '{兑付客户总金额}不小于0', '{兑付客户总金额}不小于0', '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, \'TDYRED_MONEY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.TDYRED_MONEY <= 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.020', 't_r_lczx_prod_end_info_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, \'TDYRED_QTY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.TDYRED_QTY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.021', 't_r_lczx_prod_end_info_bank', '{兑付总份额}大于0', '{兑付总份额}大于0', '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, \'TDYRED_QTY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.TDYRED_QTY <= 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.024', 't_r_lczx_prod_end_info_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, \'HOLD_FEE_S\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.HOLD_FEE_S IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.025', 't_r_lczx_prod_end_info_bank', '{本机构托管费}不能小于0', '{本机构托管费}不能小于0', '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, \'HOLD_FEE_S\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.HOLD_FEE_S < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.028', 't_r_lczx_prod_end_info_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, \'MANAGER_FEE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.MANAGER_FEE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.029', 't_r_lczx_prod_end_info_bank', '{本机构管理费}大于等于0', '{本机构管理费}大于等于0', '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, \'MANAGER_FEE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.MANAGER_FEE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.032', 't_r_lczx_prod_end_info_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, \'SALE_FEE_S\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SALE_FEE_S IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.033', 't_r_lczx_prod_end_info_bank', '{本机构销售手续费}不小于0', '{本机构销售手续费}不小于0', '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, \'SALE_FEE_S\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SALE_FEE_S < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.036', 't_r_lczx_prod_end_info_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, \'OTHER_FEE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.OTHER_FEE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.038', 't_r_lczx_prod_end_info_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       \'HOLD_FEE_S_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.HOLD_FEE_S_OTHER IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.039', 't_r_lczx_prod_end_info_bank', '{其他机构托管费}不小于0', '{其他机构托管费}不小于0', '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       \'HOLD_FEE_S_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.HOLD_FEE_S_OTHER < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.042', 't_r_lczx_prod_end_info_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       \'MANAGER_FEE_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.MANAGER_FEE_OTHER IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.043', 't_r_lczx_prod_end_info_bank', '{其他机构管理费}不小于0', '{其他机构管理费}不小于0', '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       \'MANAGER_FEE_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.MANAGER_FEE_OTHER < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.046', 't_r_lczx_prod_end_info_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       \'SALE_FEE_S_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SALE_FEE_S_OTHER IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.047', 't_r_lczx_prod_end_info_bank', '{其他机构销售手续费}不小于0', '{其他机构销售手续费}不小于0', '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       \'SALE_FEE_S_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.SALE_FEE_S_OTHER < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.050', 't_r_lczx_prod_end_info_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, \'CONSULT_FEE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.CONSULT_FEE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.051', 't_r_lczx_prod_end_info_bank', '{投资顾问费用}不小于0', '{投资顾问费用}不小于0', '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, \'CONSULT_FEE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.CONSULT_FEE < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.054', 't_r_lczx_prod_end_info_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       \'OTHER_FEE_OTHER\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.OTHER_FEE_OTHER IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.056', 't_r_lczx_prod_end_info_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       \'CUST_YIELD_RATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.CUST_YIELD_RATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.060', 't_r_lczx_prod_end_info_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       \'PROD_YIELD_RATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_prod_end_info_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.PROD_YIELD_RATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.001', '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,\r\n       \'REP_FINPROD_REG_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_FINPROD_REG_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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', '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_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 	\r\n((LENGTH(REP_FINPROD_REG_ID) <> 14 and ISSUE_TYPE=\'公募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1)\r\nOR (LENGTH(REP_FINPROD_REG_ID) <> 15 and ISSUE_TYPE=\'私募\' OR REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1) )  \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.004', '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,\r\n       \'REP_FINPROD_REG_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_FINPROD_REG_ID REGEXP \'[^A-Za-z0-9]\'= 1\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.005', '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,\r\n       \'REP_FINPROD_REG_ID\' 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_zcxx_zcjy_bank t\r\n    where  T.FILE_DATE = \'@FILE_DATE\'\r\n    AND REP_FINPROD_REG_ID  NOT IN \r\n    (select  PROD_REG_CODE FROM t_r_lczx_prod_raise_register_result)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.006', '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,\r\n       \'REP_ISSUE_PARTY_ID\' 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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ISSUE_PARTY_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.007', 't_r_lczx_zcxx_zcjy_bank', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', 'sql', '1', '', NULL, NULL, NULL, '0', NULL, 'admin', '2021-09-22 11:30:33', 'TIANXIAOKANG001208', '2022-02-14 14:32:22', '严重', 'A', 'SELECT \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\n       \'REP_ISSUE_PARTY_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\n       \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\n       NULL AS DIFFERENCE\nFROM   t_r_lczx_zcxx_zcjy_bank T\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\nAND    T.REP_ISSUE_PARTY_ID <>\'C10307\'\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.008', 't_r_lczx_zcxx_zcjy_bank', '{发行机构代码}定长6位字符', '{发行机构代码}定长6位字符', '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_ISSUE_PARTY_ID\' 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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(T.REP_ISSUE_PARTY_ID) <> 6\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.009', '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,\r\n       \'REP_ISSUE_PARTY_ID\' 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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ISSUE_PARTY_ID REGEXP \'[^A-Za-z0-9]\'= 1\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.010', '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,\r\n       \'REP_BANK_TRADE_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_BANK_TRADE_CODE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.011', 't_r_lczx_zcxx_zcjy_bank', '{行内交易编码}长度不能超过24位', '{行内交易编码}长度不能超过24位', '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_BANK_TRADE_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(CONVERT(T.REP_BANK_TRADE_CODE USING GBK)) > 24\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.012', 't_r_lczx_zcxx_zcjy_bank', '当{资金流动类型}在01-10时,{行内交易编码}、{行内资产/负债编码}、{资金流动类型}唯一', '当{资金流动类型}在01-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 T1.N_ID) AS N_ID_LIST,\r\n       \'REP_BANK_TRADE_CODE,REP_BANK_ASSET_CODE,REP_MONEY_FLOW_TYPE\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T1.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE FROM\r\n(SELECT  GROUP_CONCAT(N_ID) AS N_ID,FUND_CATEGORY,FILE_DATE  FROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    NUM_CHAR_EXTRACT(T.REP_MONEY_FLOW_TYPE, 2) IN\r\n       (\'01\', \'02\', \'03\', \'04\', \'05\', \'06\', \'07\', \'08\', \'09\', \'10\')\r\nGROUP  BY T.FILE_DATE, T.REP_BANK_TRADE_CODE, T.REP_BANK_ASSET_CODE,\r\n          REP_MONEY_FLOW_TYPE, FUND_CATEGORY\r\nHAVING COUNT(1) > 1) T1\r\nGROUP BY T1.FUND_CATEGORY,T1.FILE_DATE');
INSERT INTO ``(`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.013', 't_r_lczx_zcxx_zcjy_bank', '当{资金流动类型}在11-12时,{行内交易编码}、{资金流动类型}唯一', '当{资金流动类型}在11-12时,{行内交易编码}、{资金流动类型}唯一', '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 T1.N_ID) AS N_ID_LIST,\r\n       \'REP_BANK_TRADE_CODE,REP_MONEY_FLOW_TYPE\'AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T1.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE FROM\r\n(SELECT  GROUP_CONCAT(N_ID) AS N_ID,FUND_CATEGORY,FILE_DATE  FROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    NUM_CHAR_EXTRACT(T.REP_MONEY_FLOW_TYPE, 2) IN\r\n       (\'11\', \'12\')\r\nGROUP  BY T.FILE_DATE, T.REP_BANK_TRADE_CODE,\r\n          REP_MONEY_FLOW_TYPE, FUND_CATEGORY\r\nHAVING COUNT(1) > 1) T1\r\nGROUP BY T1.FUND_CATEGORY,T1.FILE_DATE');
INSERT INTO ``(`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.014', '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,\r\n       \'REP_BANK_TRADE_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(T.REP_BANK_TRADE_CODE) <> CHAR_LENGTH(T.REP_BANK_TRADE_CODE)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.015', 't_r_lczx_zcxx_zcjy_bank', '{行内资产/负债编码}长度不建议超过18位', '{行内资产/负债编码}长度不建议超过18位', '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,\r\n       \'REP_ISSUE_PARTY_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    CHAR_LENGTH(T.REP_BANK_ASSET_CODE) > 18\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.016', 't_r_lczx_zcxx_zcjy_bank', '当{资金流动类型}在01-10时,{行内资产/负债编码}为必填项', '当{资金流动类型}在01-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 T.N_ID) AS N_ID_LIST,\r\n       \'REP_MONEY_FLOW_TYPE,REP_ISSUE_PARTY_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    NUM_CHAR_EXTRACT(T.REP_MONEY_FLOW_TYPE, 2) IN\r\n       (\'01\', \'02\', \'03\', \'04\', \'05\', \'06\', \'07\', \'08\', \'09\', \'10\')\r\nAND    T.REP_BANK_ASSET_CODE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.017', '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,\r\n       \'REP_BANK_ASSET_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(T.REP_BANK_ASSET_CODE) <> CHAR_LENGTH(T.REP_BANK_ASSET_CODE)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.018', '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_CCY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_CCY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.019', '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_CCY\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    GET_DICT(\'LCZX_CURRENCY\',REP_CCY) =  0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.020', '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,\r\n       \'REP_OCCUR_MONEY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_OCCUR_MONEY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.021', 't_r_lczx_zcxx_zcjy_bank', '{发生金额}不得小于0', '{发生金额}不得小于0', '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_OCCUR_MONEY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_OCCUR_MONEY < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.023', '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,\r\n       \'REP_MONEY_CNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_MONEY_CNY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.024', 't_r_lczx_zcxx_zcjy_bank', '{折算人民币金额(元)}不得小于0', '{折算人民币金额(元)}不得小于0', '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_MONEY_CNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_MONEY_CNY < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.026', 't_r_lczx_zcxx_zcjy_bank', '当{币种}为“CNY”时,{折算人民币金额(元)}={发生金额}', '当{币种}为“CNY”时,{折算人民币金额(元)}={发生金额}', '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_MONEY_CNY\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(REP_MONEY_CNY) AS LEFT_CALCULATION_VALUE, GROUP_CONCAT(REP_OCCUR_MONEY) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(REP_MONEY_CNY-REP_OCCUR_MONEY)) AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_CCY =\'CNY\'\r\nAND    IFNULL(REP_OCCUR_MONEY,0) <> IFNULL(REP_MONEY_CNY,0)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.029', '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_COUNT\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_COUNT IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.030', 't_r_lczx_zcxx_zcjy_bank', '{数量}不得小于0', '{数量}不得小于0', '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_COUNT\' AS COLUMN_CODE,\r\n       0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,\r\n       T.FUND_CATEGORY AS INSTI_TYPE, NULL AS LEFT_CALCULATION_VALUE,\r\n       NULL AS RIGHT_CALCULATION_VALUE, NULL AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_COUNT < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.032', 't_r_lczx_zcxx_zcjy_bank', '当{资金流动类型}为(03、04、05、06、07、08)时,{数量}={折算人民币金额(元)}', '当{资金流动类型}为(03、04、05、06、07、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 T.N_ID) AS N_ID_LIST, \'REP_COUNT,REP_MONEY_CNY\' 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.REP_COUNT, 0)) AS LEFT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(IFNULL(T.REP_MONEY_CNY, 0)) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(ABS(IFNULL(T.REP_COUNT, 0) - IFNULL(T.REP_MONEY_CNY, 0))) AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    NUM_CHAR_EXTRACT(T.REP_MONEY_FLOW_TYPE, 2) IN\r\n       (\'03\', \'04\', \'05\', \'06\', \'07\', \'08\')\r\nAND    IFNULL(T.REP_COUNT, 0) <> IFNULL(T.REP_MONEY_CNY, 0)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.033', '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_CAL_TYPE\' 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	   T.REP_CAL_TYPE IS NOT NULL\r\nAND    GET_DICT(\'LCZX__ASSET_MEASURE_METHOD\',T.REP_CAL_TYPE) = 0 \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;\r\n\r\n');
INSERT INTO ``(`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.034', 't_r_lczx_zcxx_zcjy_bank', '当{资金流动类型}在01-08时,{资产计量方式}为必填项', '当{资金流动类型}在01-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 T.N_ID) AS N_ID_LIST, \'REP_CAL_TYPE\' 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	T.REP_CAL_TYPE IS NULL  AND T.REP_MONEY_FLOW_TYPE  IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\',\'07\',\'08\')\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.035', '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,\r\n       \'REP_MONEY_FLOW_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    GET_DICT(\'LCZX__CASHFLOW_TYPE\',T.REP_MONEY_FLOW_TYPE) = 0 \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.036', '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,\r\n       \'REP_MONEY_FLOW_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    (T.REP_MONEY_FLOW_TYPE IS NULL OR  GET_DICT(\'LCZX__CASHFLOW_TYPE\',T.REP_MONEY_FLOW_TYPE) = 0 )\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.037', '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,\r\n       \'REP_MONEY_FLOW_TYPE_EXP\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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    T.REP_MONEY_FLOW_TYPE_EXP IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.038', 't_r_lczx_zcxx_zcjy_bank', '{资金流动类型说明}最长60个字符', '{资金流动类型说明}最长60个字符', '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_MONEY_FLOW_TYPE_EXP\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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 LENGTH(CONVERT(T.REP_MONEY_FLOW_TYPE_EXP USING GBK)) >60\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.039', '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,\r\n       \'REP_TRADE_DATE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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    T.REP_TRADE_DATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.041', '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,\r\n       \'REP_TRADE_COMPONENT\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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    T.REP_TRADE_COMPONENT IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.042', 't_r_lczx_zcxx_zcjy_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       \'REP_TRADE_COMPONENT\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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 LENGTH(CONVERT(T.REP_TRADE_COMPONENT USING GBK)) >200\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.044', 't_r_lczx_zcxx_zcjy_bank', '对于资产到期的情况:{资金流动类型}在([02 资产卖出或到期],[04 银行存款到期],[07 拆放同业和买入返售到期],[08 同业拆入和卖出回购到期]),“备注”中注明“资产到期”;', '对于资产到期的情况:{资金流动类型}在([02 资产卖出或到期],[04 银行存款到期],[07 拆放同业和买入返售到期],[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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'REP_MONEY_FLOW_TYPE,REMARK\' AS COLUMN_CODE,        0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,        T.FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE,        NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_zcxx_zcjy_bank T WHERE  T.FILE_DATE = \'@FILE_DATE\' AND    REP_MONEY_FLOW_TYPE IN (\'02\',\'04\',\'07\',\'08\') AND   (REMARK IS NULL OR REMARK NOT LIKE \'%资产到期%\') GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.045', '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,\r\n       \'REP_TRADE_COMPONENT_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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    T.REP_TRADE_COMPONENT_TYPE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.046', '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,\r\n       \'REP_TRADE_COMPONENT_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, 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    T.REP_TRADE_COMPONENT_TYPE IS NOT NULL\r\nAND    GET_DICT(\'LCZX_COUNTERPARTY_TYPE\', T.REP_TRADE_COMPONENT_TYPE)=0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.047', '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,\r\n       \'REP_TRADE_COMPONENT_TYPE,REMARK\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_TRADE_COMPONENT_TYPE = \'99\'\r\nAND    T.REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.048', 't_r_lczx_zcxx_zcjy_bank', '{资金流动类型}为(01、02)时,{单位成交价格(全价)}为必填项', '{资金流动类型}为(01、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       \'REP_UNIT_PRICE_FULL\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_MONEY_FLOW_TYPE IN (\'01\', \'02\')\r\nAND    T.REP_UNIT_PRICE_FULL IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.050', '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,\r\n       \'REP_UNIT_PRICE_FULL,REP_UNIT_PRICE_NET\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.FUND_CATEGORY AS INSTI_TYPE,\r\n       GROUP_CONCAT(REP_UNIT_PRICE_FULL) AS LEFT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(REP_UNIT_PRICE_NET) AS RIGHT_CALCULATION_VALUE,\r\n       GROUP_CONCAT(REP_UNIT_PRICE_FULL - REP_UNIT_PRICE_NET) AS DIFFERENCE\r\nFROM   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_UNIT_PRICE_FULL < REP_UNIT_PRICE_NET\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.051', 't_r_lczx_zcxx_zcjy_bank', '{资金流动类型}为(01、02)时,{单位成交价格(净价)}为必填项', '{资金流动类型}为(01、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       \'REP_UNIT_PRICE_NET\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_MONEY_FLOW_TYPE IN (\'01\', \'02\')\r\nAND    T.REP_UNIT_PRICE_NET IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.055', '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_DEL_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   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_DEL_CODE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.056', 't_r_lczx_zcxx_zcjy_bank', '{成交编号/合同号}最长100位字符', '{成交编号/合同号}最长100位字符', '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_DEL_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   T_R_LCZX_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND LENGTH(CONVERT(T.REP_DEL_CODE USING GBK)) >100\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.059', 't_r_lczx_zcxx_zcjy_bank', '当资金流动类型选择01-06时,{交易审批人身份证号}必填', '当资金流动类型选择01-06时,{交易审批人身份证号}必填', '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_MONEY_FLOW_TYPE,INV_MANAGER_ID_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   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_MONEY_FLOW_TYPE IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\')\r\nAND 	 INV_MANAGER_ID_CODE IS  NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.060', 't_r_lczx_zcxx_zcjy_bank', '{交易审批人身份证号}最长30位字符', '{交易审批人身份证号}最长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 T.N_ID) AS N_ID_LIST, \'INV_MANAGER_ID_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   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(CONVERT(T.INV_MANAGER_ID_CODE USING GBK)) > 30\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.061', '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, \'INV_MANAGER_ID_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   T_R_LCZX_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    RIGHT(INV_MANAGER_ID_CODE,6) <>\'******\' AND INV_MANAGER_ID_CODE <>\'000000\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.062', 't_r_lczx_zcxx_zcjy_bank', '如该笔交易{交易审批人姓名}=‘无’,{交易审批人身份证号}=“000000”', '如该笔交易{交易审批人姓名}=‘无’,{交易审批人身份证号}=“000000”', '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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'INV_MANAGER_NAME,INV_MANAGER_ID_CODE\' AS COLUMN_CODE,        0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,        T.FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE,        NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   T_R_LCZX_ZCXX_ZCJY_BANK T WHERE  T.FILE_DATE = \'@FILE_DATE\' AND    INV_MANAGER_NAME =\'无\' AND    INV_MANAGER_ID_CODE<>\'000000\' GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.063', 't_r_lczx_zcxx_zcjy_bank', '当资金流动类型选择01-06时,{交易审批人姓名}必填', '当资金流动类型选择01-06时,{交易审批人姓名}必填', '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_MONEY_FLOW_TYPE,INV_MANAGER_NAME\' 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_MONEY_FLOW_TYPE IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\')\r\nAND 	 INV_MANAGER_NAME IS  NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.064', 't_r_lczx_zcxx_zcjy_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, \'INV_MANAGER_NAME\' 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 LENGTH(CONVERT(INV_MANAGER_NAME USING GBK)) >200\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.065', 't_r_lczx_zcxx_zcjy_bank', '当资金流动类型选择01-06时,{交易员身份证号}必填', '当资金流动类型选择01-06时,{交易员身份证号}必填', '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_MONEY_FLOW_TYPE,TRADER_ID_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   t_r_lczx_zcxx_zcjy_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_MONEY_FLOW_TYPE IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\')\r\nAND 	 TRADER_ID_CODE IS  NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.066', '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, \'TRADER_ID_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   T_R_LCZX_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    RIGHT(TRADER_ID_CODE,6) <>\'******\' AND TRADER_ID_CODE <>\'000000\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.067', 't_r_lczx_zcxx_zcjy_bank', '如该笔交易{交易员姓名}=‘无’,{交易员身份证号}=“000000”', '如该笔交易{交易员姓名}=‘无’,{交易员身份证号}=“000000”', '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,        GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST, \'TRADER_NAME,TRADER_ID_CODE\' AS COLUMN_CODE,        0 AS RESULT_CODE, \'@FILE_DATE\' AS FILE_DATE,        T.FUND_CATEGORY AS INSTI_TYPE,        NULL AS LEFT_CALCULATION_VALUE,        NULL AS RIGHT_CALCULATION_VALUE,        NULL AS DIFFERENCE FROM   t_r_lczx_zcxx_zcjy_bank T WHERE  T.FILE_DATE = \'@FILE_DATE\' AND    TRADER_NAME =\'无\' AND    TRADER_ID_CODE<>\'000000\' GROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.068', 't_r_lczx_zcxx_zcjy_bank', '当资金流动类型选择01-06时,{交易员姓名}必填', '当资金流动类型选择01-06时,{交易员姓名}必填', '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_MONEY_FLOW_TYPE,TRADER_NAME\' 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_MONEY_FLOW_TYPE IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\')\r\nAND 	 TRADER_NAME IS  NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.069', 't_r_lczx_zcxx_zcjy_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, \'TRADER_NAME\' 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 LENGTH(CONVERT(TRADER_NAME USING GBK)) >200\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.070', 't_r_lczx_zcxx_zcjy_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, \'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 	 LENGTH(CONVERT(T.REMARK USING GBK)) > 256\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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, \'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 =\'99\' AND REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.072', '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,\r\n       \'REP_BANK_ASSET_CODE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T.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_ZCXX_ZCJY_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_BANK_ASSET_CODE NOT  IN (SELECT REP_FINPROD_ID FROM t_r_lczx_zcys_all_bank_result)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.073', 't_r_lczx_zcxx_zcjy_bank', '{交易员身份证号}(最大长)30', '交易员身份证号过长。', '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	\'TRADER_ID_CODE\' 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	t_r_lczx_zcxx_zcjy_bank T \nWHERE\n	T.FILE_DATE = \'@FILE_DATE\' \n	AND LENGTH( CONVERT (TRADER_ID_CODE using GBK))>30\nGROUP BY\n	T.FUND_CATEGORY,\n	T.FILE_DATE');
INSERT INTO ``(`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.001', '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       \'REP_FINPROD_ID\' 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    REP_FINPROD_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.002', '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       \'REP_FINPROD_ID\' 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    LENGTH(T.REP_FINPROD_ID) <> CHAR_LENGTH(T.REP_FINPROD_ID)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.003', '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 N_ID) AS N_ID_LIST,\r\n       \'REP_FINPROD_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T1.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT REP_FINPROD_ID, FILE_DATE, GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n                T.FUND_CATEGORY\r\n         FROM   T_R_LCZX_ZCYS_06_BANK T\r\n         WHERE  T.FILE_DATE = \'@FILE_DATE\'\r\n         GROUP  BY REP_FINPROD_ID, FILE_DATE,FUND_CATEGORY\r\n         HAVING COUNT(1) > 1) T1\r\nGROUP  BY T1.FUND_CATEGORY, T1.FILE_DATE');
INSERT INTO ``(`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.004', 't_r_lczx_zcys_06_bank', '{行内资产/负债编码}最长40个字符,不建议超过18位', '{行内资产/负债编码}最长40个字符,不建议超过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       \'REP_FINPROD_ID\' 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    LENGTH(REP_FINPROD_ID) > 40\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.005', '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       \'REP_ISSUE_PARTY_ID\' 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    REP_ISSUE_PARTY_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.006', '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       \'REP_ISSUE_PARTY_ID\' 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    REP_ISSUE_PARTY_ID REGEXP \'[^A-Za-z0-9]\'= 1\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.007', 't_r_lczx_zcys_06_bank', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '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_ISSUE_PARTY_ID\' 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    REP_ISSUE_PARTY_ID <> \'C10307\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.008', '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       \'REP_ASSET_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_06_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ASSET_TYPE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.009', 't_r_lczx_zcys_06_bank', '{资产/负债类别}定长,为4位字符', '{资产/负债类别}定长,为4位字符', '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, 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    LENGTH(REP_ASSET_TYPE) <> 4\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.010', '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       \'REP_CCY\' 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    REP_CCY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.011', '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       \'REP_CCY\' 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    GET_DICT(\'LCZX_CURRENCY\',T.REP_CCY) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.012', '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       \'REP_TRADE_MARKET\' 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    REP_TRADE_MARKET IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.013', '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       \'REP_TRADE_MARKET\' 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    GET_DICT(\'LCZX_TRADE_PLACES\',T.REP_TRADE_MARKET) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014', '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       \'IS_USUFRUCT\' 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    (IS_USUFRUCT IS NULL OR IS_USUFRUCT NOT IN(\'01\',\'02\'))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.015', '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       \'IS_REPURCHASE\' 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    (IS_REPURCHASE IS NULL OR IS_REPURCHASE NOT IN(\'01\',\'02\'))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.016', '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       \'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_06_bank T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    (TYPE IS NULL OR TYPE NOT IN(\'01\',\'02\',\'03\',\'04\',\'05\'))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.017', 't_r_lczx_zcys_06_bank', '当资产/负债类别是“信用证”时,{类型}必须为(05)', '当资产/负债类别是“信用证”时,{类型}必须为(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       \'TYPE,REP_ASSET_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ASSET_TYPE=\'1210\'\r\nAND    TYPE <>\'05\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.018', 't_r_lczx_zcys_06_bank', '当资产/负债类别是“票据类”时,{类型}必须不能为(05)', '当资产/负债类别是“票据类”时,{类型}必须不能为(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       \'TYPE,REP_ASSET_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ASSET_TYPE=\'1201\'\r\nAND    TYPE =\'05\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.019', '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       \'IS_STANDAR,REP_ASSET_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    (T.REP_ASSET_TYPE=\'1201\' AND  (IS_STANDAR IS null OR IS_STANDAR NOT IN (\'01\',\'02\')) or T.REP_ASSET_TYPE<>\'1201\' AND  IS_STANDAR IS not  null)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.020', '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       \'IS_STANDAR,STOCK_CODE,REP_ASSET_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    (T.IS_STANDAR=\'01\' AND STOCK_CODE IS NULL or T.IS_STANDAR=\'02\' AND STOCK_CODE IS not NULL)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.021', 't_r_lczx_zcys_06_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 \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n       \'STOCK_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   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND     length(CONVERT(STOCK_CODE using GBK)) >20\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.022', '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       \'AMOUNT\' 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    AMOUNT IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.023', 't_r_lczx_zcys_06_bank', '{数量}值应大于等于0', '{数量}值应大于等于0', '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       \'AMOUNT\' 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    AMOUNT <0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.024', 't_r_lczx_zcys_06_bank', '{数量}最长6位整数型', '{数量}最长6位整数型', '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       \'AMOUNT\' 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    (LENGTH(CONVERT(AMOUNT USING GBK)) > 6 OR T.AMOUNT REGEXP \'[^0-9]\' = 1 ) \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.025', '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       \'BALANCE\' 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    BALANCE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.026', 't_r_lczx_zcys_06_bank', '{合计金额}应大于等于0', '{合计金额}应大于等于0', '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       \'BALANCE\' 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    BALANCE <0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.028', '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\' 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.WT_TERM IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.029', 't_r_lczx_zcys_06_bank', '{加权剩余期限(天)}应大于等于0', '{加权剩余期限(天)}应大于等于0', '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\' 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    WT_TERM < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.031 ', 't_r_lczx_zcys_06_bank', '{加权剩余期限(天)}<={最长剩余期限(天)}', '{加权剩余期限(天)}<={最长剩余期限(天)}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '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_LONG\' 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.WT_TERM>T.TERM_LONG\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.032', '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       \'TERM_LONG\' 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    TERM_LONG IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.033', 't_r_lczx_zcys_06_bank', '{最长剩余期限}应大于等于0', '{最长剩余期限}应大于等于0', '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_LONG\' 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    TERM_LONG < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.034', 't_r_lczx_zcys_06_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_LONG\' 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    (LENGTH(CONVERT(TERM_LONG USING GBK)) > 5 OR T.TERM_LONG REGEXP \'[^0-9]\' = 1 ) \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.035', '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       \'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    TERM_SHORT is null\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.036', 't_r_lczx_zcys_06_bank', '{最短剩余期限}应大于等于0', '{最短剩余期限}应大于等于0', '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_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    TERM_SHORT < 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.037', 't_r_lczx_zcys_06_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_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    (LENGTH(CONVERT(TERM_SHORT USING GBK)) > 5 OR T.TERM_SHORT REGEXP \'[^0-9]\' = 1 ) \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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       \'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     (LENGTH(T.TERM_SHORT)>5 OR (T.TERM_SHORT REGEXP  \'[^0-9]\') = 1)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.039', '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       \'END_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\nFROM   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    END_DATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.040', 't_r_lczx_zcys_06_bank', '{到期日}日期型,八位长字符,格式为 yyyymmdd', '{到期日}日期型,八位长字符,格式为 yyyymmdd', '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       \'END_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\nFROM   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    IS_DATE_TYPE(END_DATE,1)=0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.041', '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       \'END_DATE,STAT_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\nFROM   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    END_DATE < STAT_DATE\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.042', '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       \'STAT_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\nFROM   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    STAT_DATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.043', 't_r_lczx_zcys_06_bank', '{起息日}日期型,八位长字符,格式为 yyyymmdd;', '{起息日}日期型,八位长字符,格式为 yyyymmdd;', '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       \'STAT_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\nFROM   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND   is_date_type(STAT_DATE,1)=0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.044', '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       \'RATE\' 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    RATE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.045', 't_r_lczx_zcys_06_bank', '{贴现利率}大于等于0', '{贴现利率}大于等于0', '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       \'RATE\' 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    RATE<0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.047', '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       \'INDUSTRY\' 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    INDUSTRY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.048', '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       \'INDUSTRY\' 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    GET_DICT(\'LCZX_REP_CORP_INDUSTRY\',T.INDUSTRY) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.049', 't_r_lczx_zcys_06_bank', '{交易流通场所}选择(99)其他时,{备注}必填', '{交易流通场所}选择(99)其他时,{备注}必填', '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,REP_TRADE_MARKET\' 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.REP_TRADE_MARKET =\'99\'\r\nAND    REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.050', 't_r_lczx_zcys_06_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(CONVERT(T.REMARK USING GBK)) >256\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.051', '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       \'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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.052', '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       \'REP_ASSET_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_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ASSET_TYPE IS  NOT NULL\r\nAND    REP_ASSET_TYPE  NOT IN (\'1201\',\'1210\')\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.053', 't_r_lczx_zcys_06_bank', '[资产/负债类别]为[1201]以外时,{票据代码}不可填。', '当资产/负债类别为信用证时,票据代码要素必须为空。', '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,STOCK_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   t_r_lczx_zcys_06_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND   REP_ASSET_TYPE not in (\'1201\') and STOCK_CODE is not null\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.999', '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,\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\n       \'REP_ASSET_TYPE\' AS COLUMN_CODE, 0 AS RESULT_CODE,\n       \'@FILE_DATE\' AS FILE_DATE, FUND_CATEGORY AS INSTI_TYPE,\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\n       NULL AS DIFFERENCE\nFROM   T_R_LCZX_ZCYS_06_bank  T\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\nAND    GET_DICT(\'LCZX_ASSET_TYPE\',T.REP_ASSET_TYPE)=0\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.001', 't_r_lczx_zcys_07_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_FINPROD_ID\' 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_07_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_FINPROD_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.002', 't_r_lczx_zcys_07_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_FINPROD_ID\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(T.REP_FINPROD_ID) <> CHAR_LENGTH(T.REP_FINPROD_ID)\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.003', 't_r_lczx_zcys_07_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 N_ID) AS N_ID_LIST,\r\n       \'REP_FINPROD_ID\' AS COLUMN_CODE, 0 AS RESULT_CODE,\r\n       \'@FILE_DATE\' AS FILE_DATE, T1.FUND_CATEGORY AS INSTI_TYPE,\r\n       NULL AS LEFT_CALCULATION_VALUE, NULL AS RIGHT_CALCULATION_VALUE,\r\n       NULL AS DIFFERENCE\r\nFROM   (SELECT REP_FINPROD_ID, FILE_DATE, GROUP_CONCAT(DISTINCT N_ID) AS N_ID,\r\n                T.FUND_CATEGORY\r\n         FROM   T_R_LCZX_ZCYS_07_BANK T\r\n         WHERE  T.FILE_DATE = \'@FILE_DATE\'\r\n         GROUP  BY REP_FINPROD_ID, FILE_DATE,FUND_CATEGORY\r\n         HAVING COUNT(1) > 1) T1\r\nGROUP  BY T1.FUND_CATEGORY, T1.FILE_DATE');
INSERT INTO ``(`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.014.004', 't_r_lczx_zcys_07_bank', '{行内资产/负债编码}最长40个字符,不建议超过18位', '{行内资产/负债编码}最长40个字符,不建议超过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       \'REP_FINPROD_ID\' 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_07_BANK T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(REP_FINPROD_ID) > 40\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.005', 't_r_lczx_zcys_07_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_ISSUE_PARTY_ID\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ISSUE_PARTY_ID IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.006', 't_r_lczx_zcys_07_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_ISSUE_PARTY_ID\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ISSUE_PARTY_ID REGEXP \'[^A-Za-z0-9]\'= 1\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.007', 't_r_lczx_zcys_07_bank', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '理财报表,{发行机构代码}为Z70033;银行报表,{发行机构代码}为C10307', '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_ISSUE_PARTY_ID\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ISSUE_PARTY_ID <> \'C10307\'\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.008', 't_r_lczx_zcys_07_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, 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_ASSET_TYPE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.009', 't_r_lczx_zcys_07_bank', '{资产/负债类别}定长,为4位字符', '{资产/负债类别}定长,为4位字符', '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, 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    LENGTH(REP_ASSET_TYPE) <> 4\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.010', 't_r_lczx_zcys_07_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_CCY\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_CCY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.011', 't_r_lczx_zcys_07_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_CCY\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    GET_DICT(\'LCZX_CURRENCY\',T.REP_CCY) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.012', 't_r_lczx_zcys_07_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_TRADE_MARKET\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    REP_TRADE_MARKET IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.013', 't_r_lczx_zcys_07_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_TRADE_MARKET\' 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_07_BANK  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    GET_DICT(\'LCZX_TRADE_PLACES\',T.REP_TRADE_MARKET) = 0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE');
INSERT INTO ``(`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.014.014', 't_r_lczx_zcys_07_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       \'STOCK_CODE,REP_ASSET_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ASSET_TYPE IN (\'1302\',\'1305\')\r\nAND    STOCK_CODE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.015', 't_r_lczx_zcys_07_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 \'@BATCH_ID\' AS BATCH_ID, \'@RULE_CODE\' AS RULE_CODE,\r\n       GROUP_CONCAT(DISTINCT T.N_ID) AS N_ID_LIST,\r\n       \'STOCK_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   t_r_lczx_zcys_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND   length(CONVERT( STOCK_CODE  using GBK))> 20\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.016', 't_r_lczx_zcys_07_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       \'STOCK_NAME\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    STOCK_NAME IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.017', 't_r_lczx_zcys_07_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       \'STOCK_NAME\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND   length(CONVERT( STOCK_NAME  using GBK))> 200\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.018', 't_r_lczx_zcys_07_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       \'STOCK_TYPE,REP_ASSET_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ASSET_TYPE IN (\'1302\',\'1305\')\r\nAND    STOCK_TYPE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.019', 't_r_lczx_zcys_07_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       \'STOCK_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.STOCK_TYPE NOT IN (\'01\',\'02\',\'99\')\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.020', 't_r_lczx_zcys_07_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       \'STOCK_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.STOCK_TYPE=\'99\' AND REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.021', 't_r_lczx_zcys_07_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       \'INDUSTRY\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    INDUSTRY IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.022', 't_r_lczx_zcys_07_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       \'INDUSTRY\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    GET_DICT(\'LCZX_REP_CORP_INDUSTRY\',T.INDUSTRY) = 0 \r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.023', 't_r_lczx_zcys_07_bank', '{投资阶段}选择(99)其他时,{备注}为必填项', '{投资阶段}选择(99)其他时,{备注}为必填项', '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,INV_STAGE\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.INV_STAGE =\'99\'\r\nAND    REMARK IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.024', 't_r_lczx_zcys_07_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       \'INV_STAGE,REP_ASSET_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.REP_ASSET_TYPE =\'1301\'\r\nAND    INV_STAGE IS NULL\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.025', 't_r_lczx_zcys_07_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       \'INV_STAGE\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    T.INV_STAGE NOT IN (\'01\',\'02\',\'03\',\'04\',\'05\',\'06\',\'99\')\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.026', 't_r_lczx_zcys_07_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       \'EQ_OUT,REP_ASSET_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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\nAND    ((T.REP_ASSET_TYPE =\'1301\' AND    EQ_OUT IS NULL)\r\nOR     (T.REP_ASSET_TYPE IN (\'1302\',\'1305\') AND    EQ_OUT IS NOT NULL))\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');
INSERT INTO ``(`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.014.027', 't_r_lczx_zcys_07_bank', '{股权退出安排}日期型,八位长字符,格式为 yyyymmdd', '{股权退出安排}日期型,八位长字符,格式为 yyyymmdd', '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       \'EQ_OUT\' 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_07_bank  T\r\nWHERE  T.FILE_DATE = \'@FILE_DATE\'\r\n AND    IS_DATE_TYPE(EQ_OUT, 1) =0\r\nGROUP  BY T.FUND_CATEGORY, T.FILE_DATE;');

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值