select count(*) from am_b_page a join am_b_entry b on a.entry_id=b.entry_id where b.catalogue_code='新政办发'and b.file_code=-1 and b.created_by='sa'
am_b_page .entry_id=am_b_entry.entry_id 关联字段