fuliqi
2025-02-10 db75b45e9a7ce347162b8d3a36e4a7f46cfe199e
ycl-server/src/main/java/com/ycl/calculate/PlatformOnlineCalculation.java
@@ -1,7 +1,10 @@
package com.ycl.calculate;
import com.fasterxml.jackson.databind.ser.Serializers;
import com.ycl.platform.domain.entity.CheckIndexVideo;
import com.ycl.platform.domain.result.BaseResult;
import com.ycl.platform.domain.result.UY.QueryVqdResult;
import com.ycl.platform.domain.result.UY.VideoOnlineResult;
import com.ycl.platform.domain.vo.PlatformOnlineVO;
import com.ycl.platform.mapper.CheckIndexVideoMapper;
import com.ycl.platform.service.ICheckIndexVideoService;
@@ -28,7 +31,7 @@
 */
@Component
@Slf4j
public class PlatformOnlineCalculation extends IndexCalculationServe implements CalculationStrategy<PlatformOnlineVO> {
public class PlatformOnlineCalculation extends IndexCalculationUtils implements CalculationStrategy<PlatformOnlineVO> {
    @Autowired
    private SysDeptMapper deptMapper;
    @Autowired
@@ -51,6 +54,7 @@
                    double score = Math.max(1 - num * 0.1, 0);
                    map.put(deptId+"",score);
                    map.put(ApiConstants.Province + deptId,score);
                    map.put(ApiConstants.Dept + deptId,score);
                }
            }
@@ -71,4 +75,5 @@
            log.info("数据为空");
        }
    }
}