|
@ -6,7 +6,6 @@ import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.constant.ExtractConstant; |
|
|
import com.epmet.constant.ExtractConstant; |
|
|
import com.epmet.constant.ProjectEvaluateConstant; |
|
|
import com.epmet.constant.ProjectEvaluateConstant; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityGridMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityGridMonthlyDao; |
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexPartyAblityGridMonthlyDao; |
|
|
|
|
|
import com.epmet.dto.extract.form.GovernAbilityGridMonthlyFormDTO; |
|
|
import com.epmet.dto.extract.form.GovernAbilityGridMonthlyFormDTO; |
|
|
import com.epmet.dto.extract.form.GridIssueCountResultDTO; |
|
|
import com.epmet.dto.extract.form.GridIssueCountResultDTO; |
|
|
import com.epmet.dto.extract.form.PartyAbilityGridMonthlyFormDTO; |
|
|
import com.epmet.dto.extract.form.PartyAbilityGridMonthlyFormDTO; |
|
@ -200,7 +199,7 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
autoSelf.set(false); |
|
|
autoSelf.set(false); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
if (autoSelf.get() == true){ |
|
|
if (autoSelf.get()) { |
|
|
count.getAndSet(count.get() + NumConstant.ONE); |
|
|
count.getAndSet(count.get() + NumConstant.ONE); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -241,9 +240,11 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
case ExtractConstant.EVALUATE_PERFECT: |
|
|
case ExtractConstant.EVALUATE_PERFECT: |
|
|
project.setScore(ProjectEvaluateConstant.PERFECT); |
|
|
project.setScore(ProjectEvaluateConstant.PERFECT); |
|
|
break; |
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
log.warn("calGridIndexGovernAbility orther projectEvaluate,actionCode:{}", project.getActionCode()); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
Integer projectAllScore = projectList.stream().collect(Collectors.summingInt(ProjectEvaluateResultDTO::getScore)); |
|
|
Integer projectAllScore = projectList.stream().mapToInt(ProjectEvaluateResultDTO::getScore).sum(); |
|
|
scoreMap.put(projectId,projectAllScore/projectList.size()); |
|
|
scoreMap.put(projectId,projectAllScore/projectList.size()); |
|
|
}); |
|
|
}); |
|
|
AtomicReference<Integer> allScore = new AtomicReference<>(0); |
|
|
AtomicReference<Integer> allScore = new AtomicReference<>(0); |
|
@ -293,21 +294,17 @@ public class CalGridIndexServiceImpl implements CalGridIndexService { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
// 5. 网格内解决的项目的满意度
|
|
|
// 5. 网格内解决的项目的满意度
|
|
|
if (null != resultSatisfactionScore){ |
|
|
|
|
|
resultSatisfactionScore.forEach((k, v) -> { |
|
|
resultSatisfactionScore.forEach((k, v) -> { |
|
|
if (r.getGridId().equals(k)) { |
|
|
if (r.getGridId().equals(k)) { |
|
|
r.setSatisfactionRatio(v); |
|
|
r.setSatisfactionRatio(v); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
// 6. 网格自治项目数
|
|
|
// 6. 网格自治项目数
|
|
|
if (null != autoMap){ |
|
|
|
|
|
autoMap.forEach((k, v) -> { |
|
|
autoMap.forEach((k, v) -> { |
|
|
if (r.getGridId().equals(k)) { |
|
|
if (r.getGridId().equals(k)) { |
|
|
r.setSelfSolveProjectCount(v); |
|
|
r.setSelfSolveProjectCount(v); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
delAndInsertGovernAbility(result,customerId,monthId); |
|
|
delAndInsertGovernAbility(result,customerId,monthId); |
|
|
return true; |
|
|
return true; |
|
|