Browse Source

占比*100

feature/screenDataPush
zhangyuan 4 years ago
parent
commit
482d3a840e
  1. 8
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenGovernanceServiceImpl.java
  2. 12
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenGovernanceDao.xml

8
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenGovernanceServiceImpl.java

@ -105,7 +105,7 @@ public class ScreenGovernanceServiceImpl extends BaseServiceImpl<ScreenGovernanc
item.setResponseRatio("0.0000");
} else {
DecimalFormat df = new DecimalFormat("0.0000");
item.setResponseRatio(df.format((float) item.getResponseCount() / item.getTransferCount()));
item.setResponseRatio(df.format((float) item.getResponseCount() * 100 / item.getTransferCount()));
}
if ("agency".equals(item.getOrgType())) {
int itemTotalNum = agencyItemInfoList.stream().filter(agency -> agency.getOrgId().equals(item.getOrgId())).findFirst().get().getItemTotal();
@ -113,13 +113,13 @@ public class ScreenGovernanceServiceImpl extends BaseServiceImpl<ScreenGovernanc
if (itemTotal != 0) {
DecimalFormat df = new DecimalFormat("0.0000");
if (item.getGovernCount() != 0) {
item.setGovernRatio(df.format((float) item.getGovernCount() / itemTotalNum));
item.setGovernRatio(df.format((float) item.getGovernCount() * 100 / itemTotalNum));
}
if (item.getResolvedCount() != 0) {
item.setResolvedRatio(df.format((float) item.getResolvedCount() / itemTotalNum));
item.setResolvedRatio(df.format((float) item.getResolvedCount() * 100 / itemTotalNum));
}
if (itemSettleNum != 0 && item.getSatisfactionCount() != 0) {
item.setSatisfactionRatio(df.format((float) item.getSatisfactionCount() / itemSettleNum));
item.setSatisfactionRatio(df.format((float) item.getSatisfactionCount() * 100 / itemSettleNum));
}
}
}

12
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenGovernanceDao.xml

@ -96,7 +96,7 @@
4
),
0
) AS resolvedRatio,
) * 100 AS resolvedRatio,
IFNULL(hs.BYSELF_TOTAL, 0) AS governCount,
IFNULL(
ROUND(
@ -104,7 +104,7 @@
4
),
0
) AS governRatio,
) * 100 AS governRatio,
IFNULL(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL + hs.NO_EVA_TOTAL,
0
@ -117,7 +117,7 @@
4
),
0
) AS satisfactionRatio
) * 100 AS satisfactionRatio
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.HANDLER_DEPT_ID = sd.id
@ -190,7 +190,7 @@
4
),
0
) AS resolvedRatio,
) * 100 AS resolvedRatio,
IFNULL(hs.BYSELF_TOTAL, 0) AS governCount,
IFNULL(
ROUND(
@ -198,7 +198,7 @@
4
),
0
) AS governRatio,
) * 100 AS governRatio,
IFNULL(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL + hs.NO_EVA_TOTAL,
0
@ -211,7 +211,7 @@
4
),
0
) AS satisfactionRatio
) * 100 AS satisfactionRatio
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.HANDLER_DEPT_ID = sd.id

Loading…
Cancel
Save