算法改造

This commit is contained in:
2023-11-15 15:49:56 +08:00
parent c2ec0bfcf2
commit a03bd8006c
5 changed files with 905 additions and 201 deletions

View File

@@ -75,7 +75,7 @@ public class RStatSubstationController extends BaseController {
List<DeptGetSubStationDTO> data = commTerminalGeneralClient.deptSubStation(deptGetLineParam).getData();
long start = System.currentTimeMillis();
rStatSubstationService.handler(data,orgParam.getDataDate(),orgParam.getType());
// rStatSubstationService.handler(data,orgParam.getDataDate(),orgParam.getType());
long end = System.currentTimeMillis();
System.out.println("该方法总耗时为 ---> "+(end-start));
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);

View File

@@ -1,6 +1,7 @@
package com.njcn.prepare.harmonic.service.mysql.newalgorithm;
import com.njcn.device.biz.pojo.dto.DeptGetSubStationDTO;
import com.njcn.prepare.bo.CalculatedParam;
import java.util.List;
@@ -11,6 +12,31 @@ import java.util.List;
public interface RStatSubstationService {
void handler(List<DeptGetSubStationDTO> data, String dataDate, Integer type);
// void handler(List<DeptGetSubStationDTO> data, String dataDate, Integer type);
/**
* 3.4.10.1.变电站指标统计_日表
* @param calculatedParam
* fixme 此算法运行速度很慢,后期需要优化改造
*/
void handlerD(CalculatedParam calculatedParam);
/**
* 3.4.10.2.变电站指标统计_月表
* @param calculatedParam
*/
void handlerM(CalculatedParam calculatedParam);
/**
* 3.4.10.3.变电站指标统计_季表
* @param calculatedParam
*/
void handlerQ(CalculatedParam calculatedParam);
/**
* 3.4.10.4.变电站指标统计_年表
* @param calculatedParam
*/
void handlerY(CalculatedParam calculatedParam);
}