|
@@ -152,11 +152,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
IFNULL(t.total,0) total,
|
|
|
IFNULL(t.week_sum,0) week_sum,
|
|
|
IFNULL(t.week_cancel_sum,0) week_cancel_sum,
|
|
|
- IFNULL(CONCAT(round((IFNULL(t.week_sum,0)-IFNULL(t.week_cancel_sum,0))/IFNULL(t.week_sum,0)*100,2),'%'),'100%') week_ratio,
|
|
|
+ IFNULL(CONCAT(round((IFNULL(t.week_sum,0)-IFNULL(t.week_cancel_sum,0))/IFNULL(t.week_sum,0)*100,2),'%'),'100.00%') week_ratio,
|
|
|
IFNULL(t.temporary_sum,0) temporary_sum,
|
|
|
IFNULL(t.temporary_cancel_sum,0) temporary_cancel_sum,
|
|
|
- IFNULL(CONCAT(round((IFNULL(t.temporary_sum,0)-IFNULL(t.temporary_cancel_sum,0))/IFNULL(t.temporary_sum,0)*100,2),'%'),'100%') temporary_ratio,
|
|
|
- IFNULL(CONCAT(round(IFNULL(t.temporary_sum,0)/IFNULL(t.total,0)*100,2),'%'),'100%') temporary_plan_ratio
|
|
|
+ IFNULL(CONCAT(round((IFNULL(t.temporary_sum,0)-IFNULL(t.temporary_cancel_sum,0))/IFNULL(t.temporary_sum,0)*100,2),'%'),'100.00%') temporary_ratio,
|
|
|
+ IFNULL(CONCAT(round(IFNULL(t.temporary_sum,0)/IFNULL(t.total,0)*100,2),'%'),'100.00%') temporary_plan_ratio
|
|
|
from pdm_work_organ t1
|
|
|
LEFT JOIN
|
|
|
(
|
|
@@ -179,11 +179,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
count(1) total,
|
|
|
IFNULL(sum(if(plan_typ_cd = '2028001',1,0)),0) week_sum,
|
|
|
IFNULL(sum(if((plan_typ_cd = '2028001' and plan_exec_st_cd = '2029005'),1,0)),0) week_cancel_sum,
|
|
|
- IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028001' and plan_exec_st_cd != '2029005'),1,0))/sum(if(plan_typ_cd = '2028001',1,0))*100,2),'%'),'100%') week_ratio,
|
|
|
+ IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028001' and plan_exec_st_cd != '2029005'),1,0))/sum(if(plan_typ_cd = '2028001',1,0))*100,2),'%'),'100.00%') week_ratio,
|
|
|
IFNULL(sum(if(plan_typ_cd = '2028002',1,0)),0) temporary_sum,
|
|
|
IFNULL(sum(if((plan_typ_cd = '2028002' and plan_exec_st_cd = '2029005'),1,0)),0) temporary_cancel_sum,
|
|
|
- IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028002' and plan_exec_st_cd != '2029005'),1,0))/sum(if(plan_typ_cd = '2028002',1,0))*100,2),'%'),'100%') temporary_ratio,
|
|
|
- IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028002' and plan_exec_st_cd = '2029005'),1,0))/sum(1)*100,2),'%'),'100%') temporary_plan_ratio
|
|
|
+ IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028002' and plan_exec_st_cd != '2029005'),1,0))/sum(if(plan_typ_cd = '2028002',1,0))*100,2),'%'),'100.00%') temporary_ratio,
|
|
|
+ IFNULL(CONCAT(round(sum(if((plan_typ_cd = '2028002' and plan_exec_st_cd = '2029005'),1,0))/sum(1)*100,2),'%'),'100.00%') temporary_plan_ratio
|
|
|
from
|
|
|
pdm_work_plan
|
|
|
where
|