|
|
@@ -475,16 +475,16 @@
|
|
|
|
|
|
select dept_name, team_name,
|
|
|
'变电所' as sbmc,
|
|
|
- sum(bds) as total,
|
|
|
+ sum(qybds) as total,
|
|
|
sum(plan) as planTotal,
|
|
|
sum(actual) as actualTotal,
|
|
|
round(sum(actual) * 100 / sum(plan)) as dx
|
|
|
from (
|
|
|
- select dept_name, team_name, bds,
|
|
|
+ select dept_name, team_name, qybds,
|
|
|
case when plan is not null and plan != '' then 1 else 0 end as plan,
|
|
|
case when actual is not null and actual != '' then 1 else 0 end as actual
|
|
|
from (
|
|
|
- select dept_name, team_name, bds,
|
|
|
+ select dept_name, team_name, qybds,
|
|
|
<if test="month==1">plan1 as plan, actual1 as actual</if>
|
|
|
<if test="month==2">plan2 as plan, actual2 as actual</if>
|
|
|
<if test="month==3">plan3 as plan, actual3 as actual</if>
|