selectDeptOnType 1 select count(dept.dept_name) deptNUm, org.dept_name orgName from sys_dept dept right join ( select * from sys_dept where dept_type=0 ) org on dept.parent_id = org.dept_id and dept.dept_type!=0 group by org.dept_name selectPlanOnType 1 select planInfo.plan_id , count(planInfo.plan_id) planNum , planInfo.plan_name , dict.param_value type from plan_infomation planInfo left join ( select * from plan_dict_item ) dict on dict.param_id = planInfo.plan_type group by planInfo.plan_type selectPlanOnLevel 1 select planInfo.plan_id , count(planInfo.plan_id) planNum , planInfo.plan_name , dict.param_value level from plan_infomation planInfo left join ( select * from plan_dict_item ) dict on dict.param_id = planInfo.level_code where dict.param_id = 2 and dict.param_value LIKE'%级' group by dict.param_value order by dict.param_value desc selectEmergmanunit 1 select unit.org_id , count(unit.org_id) unitNum , unit.name , item.param_value type from bas_emergmanunit unit left join ( select dictItem.param_item_id, dictItem.data_dict_id, dictItem.param_value, dictItem.param_id FROM bas_data_dict_item dictItem right join ( SELECT dataDict.data_dict_id, dataDict.parent_id, dataDict.data_dict_name FROM bas_data_dict dataDict WHERE dataDict.parent_id = (SELECT data_dict_id FROM bas_data_dict WHERE data_dict_value = '41000') ) dict ON dict.data_dict_id = dictItem.data_dict_id ) item ON item.param_id = unit.object_type group by item.param_value selectEmergsupp 1 select supp.guid , count(supp.guid) suppNum , supp.name , item.param_value type from bas_emergsupp supp left join ( select dictItem.param_item_id, dictItem.data_dict_id, dictItem.param_value, dictItem.param_id FROM bas_data_dict_item dictItem right join ( SELECT dataDict.data_dict_id, dataDict.parent_id, dataDict.data_dict_name FROM bas_data_dict dataDict WHERE dataDict.parent_id = (SELECT data_dict_id FROM bas_data_dict WHERE data_dict_value = '43000') ) dict ON dict.data_dict_id = dictItem.data_dict_id ) item ON item.param_id = supp.object_type group by item.param_value selectEmergequ 1 select equ.guid , count(equ.guid) equNum , equ.name , item.param_value type from bas_emergequ equ inner join ( select dictItem.param_item_id, dictItem.data_dict_id, dictItem.param_value, dictItem.param_id FROM bas_data_dict_item dictItem where dictItem.data_dict_id = (SELECT data_dict_id FROM bas_data_dict WHERE data_dict_value = '43D00.000') ) item ON item.param_id = equ.object_type group by item.param_value selectManpower 2 com.zdxt.visualization.ManpowerInsideClass