|
|
@ -27,6 +27,7 @@ import java.math.BigDecimal; |
|
|
|
import java.math.RoundingMode; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
@ -127,6 +128,21 @@ public class IndexCollCommunityServiceImpl implements IndexCollCommunityService |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
//办结数
|
|
|
|
Map<String, Integer> agencyHandleCount = factOriginProjectLogDailyService.getProjectHandledAgency(customerId,dimId.getMonthId(),"month"); |
|
|
|
Map<String,BigDecimal> responseMap = factOriginProjectLogDailyService.getAgencyResponseRatio(customerId,dimId.getMonthId(),"month"); |
|
|
|
list.forEach(entity ->{ |
|
|
|
entity.setClosedProjectCount(agencyHandleCount.get(entity.getAgencyId())); |
|
|
|
BigDecimal element = entity.getClosedProjectRatio(); |
|
|
|
//办结率
|
|
|
|
entity.setClosedProjectRatio( |
|
|
|
element.divide(new BigDecimal(entity.getTransferedCount()), NumConstant.SIX, RoundingMode.HALF_UP) |
|
|
|
); |
|
|
|
//响应度
|
|
|
|
entity.setRespProjectRatio(responseMap.get(entity.getAgencyId())); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factIndexGovrnAblityOrgMonthlyService.deleteByCustomer(customerId, dimId.getMonthId(), OrgTypeConstant.COMMUNITY); |
|
|
|
factIndexGovrnAblityOrgMonthlyService.insertBatch(list); |
|
|
|
|
|
|
|