From 1eb6016fcf65889266b5fbac8a0e2f7db27ac2ef Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 20 十一月 2024 11:52:16 +0800 Subject: [PATCH] 视频录像导出日期调整 --- ycl-server/src/main/java/com/ycl/calculate/IndexCalculationUtils.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/calculate/IndexCalculationUtils.java b/ycl-server/src/main/java/com/ycl/calculate/IndexCalculationUtils.java index 95bc918..51343fe 100644 --- a/ycl-server/src/main/java/com/ycl/calculate/IndexCalculationUtils.java +++ b/ycl-server/src/main/java/com/ycl/calculate/IndexCalculationUtils.java @@ -1,10 +1,16 @@ package com.ycl.calculate; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.ycl.platform.base.CheckIndex; +import com.ycl.platform.domain.entity.YwPoint; +import com.ycl.platform.mapper.YwPointMapper; import constant.ApiConstants; import constant.CheckConstants; import enumeration.general.PublishType; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.CollectionUtils; import java.math.BigDecimal; import java.math.RoundingMode; @@ -12,14 +18,15 @@ import java.util.List; import java.util.Map; import java.util.Optional; +import java.util.stream.Collectors; @Slf4j public class IndexCalculationUtils { + //妫�鏌ユ槸鍚﹀瓨鍦ㄥ綋鏃ユ暟鎹� public <T extends CheckIndex> T getCheckIndex(String key, List<T> checkIndexList, Class<T> clazz) { T checkIndex; - // 妫�鏌ユ槸鍚﹀凡瀛樺湪浠婃棩鏁版嵁 Optional<T> existingIndex = checkIndexList.stream() .filter(index -> key.startsWith(ApiConstants.Province) ? @@ -46,7 +53,9 @@ return checkIndex; } - /** --------鎸囨爣绠楁硶---------*/ + /** + * --------鎸囨爣绠楁硶--------- + */ //涓�鏈轰竴妗e悎鏍肩巼 public BigDecimal monitorQualify(Map<String, Object> param) { @@ -110,7 +119,7 @@ public BigDecimal viewConnectStability(Map<String, Object> param) { BigDecimal totalDataSum = new BigDecimal((Integer) param.get("totalDataSum")); BigDecimal lastCount = (BigDecimal) param.get("lastCount"); - log.info("瑙嗗浘搴撳鎺ョǔ瀹氭�э紝totalDataSum锛歿}锛宭astCount锛歿}",totalDataSum,lastCount); + log.info("瑙嗗浘搴撳鎺ョǔ瀹氭�э紝totalDataSum锛歿}锛宭astCount锛歿}", totalDataSum, lastCount); return totalDataSum.divide(lastCount, 4, RoundingMode.HALF_UP); } -- Gitblit v1.8.0