|
@ -302,6 +302,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
SubAgencyUserResultDTO dto = new SubAgencyUserResultDTO(); |
|
|
SubAgencyUserResultDTO dto = new SubAgencyUserResultDTO(); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
|
|
|
dto.setLevel(null == sub.getLevel() ? "" : sub.getLevel()); |
|
|
|
|
|
dto.setAreaCode(null == sub.getAreaCode() ? "" : sub.getAreaCode()); |
|
|
for (SubAgencyUserResultDTO u : list) { |
|
|
for (SubAgencyUserResultDTO u : list) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
dto.setUserTotal(u.getUserTotal()); |
|
|
dto.setUserTotal(u.getUserTotal()); |
|
@ -438,6 +440,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
SubAgencyGroupResultDTO dto = new SubAgencyGroupResultDTO(); |
|
|
SubAgencyGroupResultDTO dto = new SubAgencyGroupResultDTO(); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
|
|
|
dto.setLevel(null == sub.getLevel() ? "" : sub.getLevel()); |
|
|
|
|
|
dto.setAreaCode(null == sub.getAreaCode() ? "" : sub.getAreaCode()); |
|
|
for (SubAgencyGroupResultDTO u : list) { |
|
|
for (SubAgencyGroupResultDTO u : list) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
dto.setGroupTotal(u.getGroupTotal()); |
|
|
dto.setGroupTotal(u.getGroupTotal()); |
|
@ -597,6 +601,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
|
|
|
|
|
|
resultDTO.setAgencyId(sub.getAgencyId()); |
|
|
resultDTO.setAgencyId(sub.getAgencyId()); |
|
|
resultDTO.setAgencyName(sub.getAgencyName()); |
|
|
resultDTO.setAgencyName(sub.getAgencyName()); |
|
|
|
|
|
resultDTO.setLevel(null == sub.getLevel() ? "" : sub.getLevel()); |
|
|
|
|
|
resultDTO.setAreaCode(null == sub.getAreaCode() ? "" : sub.getAreaCode()); |
|
|
resultDTO.setTopicTotal(topicTotal.get()); |
|
|
resultDTO.setTopicTotal(topicTotal.get()); |
|
|
resultDTO.setDiscussingTotal(hotdiscussTotal.get()); |
|
|
resultDTO.setDiscussingTotal(hotdiscussTotal.get()); |
|
|
resultDTO.setDiscussingRatio(resultDTO.getDiscussingTotal() == 0 || resultDTO.getTopicTotal() == 0 ? BigDecimal.ZERO : new BigDecimal(numberFormat.format((float) resultDTO.getDiscussingTotal() / (float) resultDTO.getTopicTotal()))); |
|
|
resultDTO.setDiscussingRatio(resultDTO.getDiscussingTotal() == 0 || resultDTO.getTopicTotal() == 0 ? BigDecimal.ZERO : new BigDecimal(numberFormat.format((float) resultDTO.getDiscussingTotal() / (float) resultDTO.getTopicTotal()))); |
|
@ -758,6 +764,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
SubAgencyIssueResultDTO dto = new SubAgencyIssueResultDTO(); |
|
|
SubAgencyIssueResultDTO dto = new SubAgencyIssueResultDTO(); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
|
|
|
dto.setLevel(null == sub.getLevel() ? "" : sub.getLevel()); |
|
|
|
|
|
dto.setAreaCode(null == sub.getAreaCode() ? "" : sub.getAreaCode()); |
|
|
for (SubAgencyIssueResultDTO u : list) { |
|
|
for (SubAgencyIssueResultDTO u : list) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
dto.setIssueTotal(u.getIssueTotal()); |
|
|
dto.setIssueTotal(u.getIssueTotal()); |
|
@ -898,6 +906,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
SubAgencyProjectResultDTO dto = new SubAgencyProjectResultDTO(); |
|
|
SubAgencyProjectResultDTO dto = new SubAgencyProjectResultDTO(); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyId(sub.getAgencyId()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
dto.setAgencyName(sub.getAgencyName()); |
|
|
|
|
|
dto.setLevel(null == sub.getLevel() ? "" : sub.getLevel()); |
|
|
|
|
|
dto.setAreaCode(null == sub.getAreaCode() ? "" : sub.getAreaCode()); |
|
|
for (SubAgencyProjectResultDTO u : list) { |
|
|
for (SubAgencyProjectResultDTO u : list) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
if (sub.getAgencyId().equals(u.getAgencyId())) { |
|
|
dto.setProjectTotal(u.getProjectTotal()); |
|
|
dto.setProjectTotal(u.getProjectTotal()); |
|
|