diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml index cf887ffc..b548236c 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenIndexDataDao.xml @@ -497,9 +497,9 @@ IFNULL(round((t1.respProject / t1.transferedCount),2), 0.00) respProjectRatio, IFNULL(t1.respProject, 0) respProjectRatioFz, IFNULL(t1.transferedCount, 0) respProjectRatioFm, - IFNULL(round((t.closedProjectCount / (t1.transferedCount - t.closedProjectCount)),4)*100, 0.00) AS closedProjectRatio, + CASE WHEN t.closedProjectCount > t1.transferedCount THEN 100.00 ELSE IFNULL(round((t.closedProjectCount / t1.transferedCount),4)*100, 0.00) END AS closedProjectRatio, + IFNULL(CASE WHEN t.closedProjectCount > t1.transferedCount THEN t.closedProjectCount ELSE t1.transferedCount END, 0) AS closedProjectRatioFm, IFNULL(t.closedProjectCount, 0) closedProjectRatioFz, - IFNULL((t1.transferedCount - t.closedProjectCount), 0) closedProjectRatioFm, IFNULL(t.satisfactionRatio, 0.00) AS satisfactionRatio, IFNULL(t.satisfactionRatioFz, 0) AS satisfactionRatioFz, IFNULL(t.satisfactionRatioFm, 0) AS satisfactionRatioFm, @@ -578,9 +578,9 @@ IFNULL(round((t1.respProject / t1.transferedCount),2), 0.00) respProjectRatio, IFNULL(t1.respProject, 0) respProjectRatioFz, IFNULL(t1.transferedCount, 0) respProjectRatioFm, - IFNULL(round((t.closedProjectCount / (t1.transferedCount - t.closedProjectCount)),4)*100, 0.00) AS closedProjectRatio, + CASE WHEN t.closedProjectCount > t1.transferedCount THEN 100.00 ELSE IFNULL(round((t.closedProjectCount / t1.transferedCount),4)*100, 0.00) END AS closedProjectRatio, + IFNULL(CASE WHEN t.closedProjectCount > t1.transferedCount THEN t.closedProjectCount ELSE t1.transferedCount END, 0) AS closedProjectRatioFm, IFNULL(t.closedProjectCount, 0) closedProjectRatioFz, - IFNULL((t1.transferedCount - t.closedProjectCount), 0) closedProjectRatioFm, IFNULL(t.satisfactionRatio, 0.00) AS satisfactionRatio, IFNULL(t.satisfactionRatioFz, 0) AS satisfactionRatioFz, IFNULL(t.satisfactionRatioFm, 0) AS satisfactionRatioFm,