|
@@ -101,11 +101,17 @@
|
|
|
</select>
|
|
|
<select id="selectBigDataFirecontrolFoamLiquidDeptCount" parameterType="CenterdataTFirecontrolFoamLiquid"
|
|
|
resultType="java.util.Map">
|
|
|
- select d.ancestors ancestors,a.dept_id deptId,count(a.id) num
|
|
|
- from centerdata_t_firecontrol_foam_liquid a
|
|
|
- left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
|
|
|
- where 1=1 ${params.dataScope}
|
|
|
- group by a.dept_id
|
|
|
+ SELECT
|
|
|
+ d.ancestors AS ancestors,
|
|
|
+ a.dept_id AS deptId,
|
|
|
+ SUM( a.reserves ) AS reserves
|
|
|
+ FROM
|
|
|
+ centerdata_t_firecontrol_foam_liquid a
|
|
|
+ LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
|
|
|
+ WHERE 1 = 1 ${params.dataScope}
|
|
|
+ GROUP BY
|
|
|
+ a.dept_id,
|
|
|
+ d.ancestors;
|
|
|
</select>
|
|
|
|
|
|
<select id="getbasiclinkageforeList" parameterType="CenterdataTFirecontrolBasicLinkageForce"
|