|
@@ -7,10 +7,7 @@ import com.gyee.power.fitting.common.result.ResultCode;
|
|
import com.gyee.power.fitting.model.custom.PhotovoltaicInfo;
|
|
import com.gyee.power.fitting.model.custom.PhotovoltaicInfo;
|
|
import com.gyee.power.fitting.service.impl.IvPvCurveFittingService;
|
|
import com.gyee.power.fitting.service.impl.IvPvCurveFittingService;
|
|
import org.apache.commons.math3.fitting.WeightedObservedPoints;
|
|
import org.apache.commons.math3.fitting.WeightedObservedPoints;
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.io.FileWriter;
|
|
import java.io.FileWriter;
|
|
@@ -23,7 +20,8 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
//逆变器单位装机输出功率离散率分析
|
|
//逆变器单位装机输出功率离散率分析
|
|
@CrossOrigin
|
|
@CrossOrigin
|
|
-@RestController("/discreteness")
|
|
|
|
|
|
+@RequestMapping("/discreteness")
|
|
|
|
+@RestController
|
|
public class InverterPowerAnalysis2 {
|
|
public class InverterPowerAnalysis2 {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
@@ -94,7 +92,7 @@ public class InverterPowerAnalysis2 {
|
|
@RequestParam(value = "station", required = true) String station,
|
|
@RequestParam(value = "station", required = true) String station,
|
|
@RequestParam(value = "inverters", required = false) List<String> inverters,
|
|
@RequestParam(value = "inverters", required = false) List<String> inverters,
|
|
@RequestParam(value = "startdate", required = true) long startdate,
|
|
@RequestParam(value = "startdate", required = true) long startdate,
|
|
- @RequestParam(value = "interval", required = false) int interval,
|
|
|
|
|
|
+ @RequestParam(value = "interval", required = false) Integer interval,
|
|
@RequestParam(value = "enddate", required = true) long enddate) {
|
|
@RequestParam(value = "enddate", required = true) long enddate) {
|
|
|
|
|
|
Map<String, List<PhotovoltaicInfo>> datasInfos = curveFittingService.getDatas2File1(station, startdate, enddate, interval);
|
|
Map<String, List<PhotovoltaicInfo>> datasInfos = curveFittingService.getDatas2File1(station, startdate, enddate, interval);
|