|
|
|
@ -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)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|