| | |
| | | */ |
| | | @Component |
| | | @Slf4j |
| | | //TODD:系统配置里的区分人脸和车辆、累加次数的概念、区县不少于40路,不达标市州的当月该项成绩不能得分。 |
| | | public class FaceSnapshotDataCalculation extends IndexCalculationServe implements CalculationStrategy<SnapshotDataMonitorResult> { |
| | | @Autowired |
| | | private CheckIndexFaceMapper checkIndexFaceMapper; |
| | |
| | | stats.totalSites++; |
| | | if (ApiConstants.HK_SnapCount_ResultType_Null != result.getResultType()) { |
| | | stats.onlineSites++; |
| | | } else { |
| | | stats.totalDataSum += result.getDataCount(); |
| | | } |
| | | } |
| | |
| | | noDateCount = 0; |
| | | } |
| | | Double deductScore = 0.1 * noDateCount; |
| | | log.info("总量:{}",stats.totalDataSum); |
| | | if (stats.totalDataSum != 0) { |
| | | BigDecimal avgCount = key.startsWith(ApiConstants.Province) ? cityCountAvg : countyCountAvg; |
| | | Map<String, Object> viewConnectParam = new HashMap<>(); |