|
@ -75,7 +75,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
BigDecimal resolveCount = new BigDecimal(grid.getResolveProjectCount()); |
|
|
BigDecimal resolveCount = new BigDecimal(grid.getResolveProjectCount()); |
|
|
BigDecimal selfCount = new BigDecimal(grid.getSelfSolveProjectCount()); |
|
|
BigDecimal selfCount = new BigDecimal(grid.getSelfSolveProjectCount()); |
|
|
if (grid.getResolveProjectCount() != NumConstant.ZERO) { |
|
|
if (grid.getResolveProjectCount() != NumConstant.ZERO) { |
|
|
entity.setGovernRatio(selfCount.multiply(hundred).divide(resolveCount, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = selfCount.multiply(hundred).divide(resolveCount, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setGovernRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -87,7 +91,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setResponseRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setResponseRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -138,7 +146,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setResponseRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setResponseRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -149,7 +161,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setGovernRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setGovernRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -198,7 +214,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setResponseRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setResponseRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -209,7 +229,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setGovernRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setGovernRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -258,7 +282,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setResponseRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setResponseRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
@ -269,7 +297,11 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
entity.setGovernRatio(count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP)); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setGovernRatio(ratio); |
|
|
} |
|
|
} |
|
|
})); |
|
|
})); |
|
|
} |
|
|
} |
|
|