You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
5.5 KiB

3 years ago
<?xml version="1.0" encoding="utf-8"?>
<datasources>
<!--查询部门-按机构分类-->
<data>
<id>selectDeptOnType</id>
<type>1</type>
<item>
<interTypy>
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
</interTypy>
</item>
</data>
<!--查询文本员-按类型分类-->
<data>
<id>selectPlanOnType</id>
<type>1</type>
<item>
<interTypy>
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
</interTypy>
</item>
</data>
<!--查询文本员-按等级分类-->
<data>
<id>selectPlanOnLevel</id>
<type>1</type>
<item>
<interTypy>
<!--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
group by dict.param_value-->
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
</interTypy>
</item>
</data>
<!--查询应急机构-按类型分类-->
<data>
<id>selectEmergmanunit</id>
<type>1</type>
<item>
<interTypy>
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
</interTypy>
</item>
</data>
<!--查询应急物资-按类型分类-->
<data>
<id>selectEmergsupp</id>
<type>1</type>
<item>
<interTypy>
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
</interTypy>
</item>
</data>
<!--查询应急装备-按类型分类-->
<data>
<id>selectEmergequ</id>
<type>1</type>
<item>
<interTypy>
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
</interTypy>
</item>
</data>
<!--查询人力统计-->
<data>
<id>selectManpower</id>
<type>2</type>
<item>
<interTypy>
com.zdxt.visualization.ManpowerInsideClass
</interTypy>
</item>
</data>
</datasources>