INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'ERP','yj_gjlc_sjkb_scjglc','proj_create_date',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where ((pur_app_date is not null or cont_sign_date is not null or mat_arri_date is not null or proj_oper_date is not null or proj_settlements_date is not null or proj_final_date is not null or proj_close_date is not null ) and proj_create_date is null) group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','pr_abbr_name',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where pr_abbr_name is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','city_abbr_name',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where city_abbr_name is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','organization',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where organization is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','proj_code',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where proj_code is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','proj_name',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where proj_name is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'PMS','yj_gjlc_sjkb_scjglc','professional_subdivision',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where professional_subdivision is null group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'ERP','yj_gjlc_sjkb_scjglc','pur_app_date',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where ((cont_sign_date is not null or mat_arri_date is not null or proj_oper_date is not null or proj_settlements_date is not null or proj_final_date is not null or proj_close_date is not null) and pur_app_date is null) group by pr_abbr_name
INSERT INTO RULE_WT(SYS_NAME,TABLE_NAME,COL_NAME,ABBR,INTEGRITY_SIZE,REGULAR_SIZE)select 'ERP','yj_gjlc_sjkb_scjglc','cont_sign_date',pr_abbr_name,count(*),0 from yj_gjlc_sjkb_scjglc where ((mat_arri_date is not null or proj_oper_date is not null or proj_settlements_date is not null or proj_final_date is not null or proj_close_date is not null ) and cont_sign_dateis null) group by pr_abbr_name