|
@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -31,24 +32,16 @@ public class PVSystemEfficiencyCalculatorController {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
private PrAnalysisService prAnalysisService;
|
|
private PrAnalysisService prAnalysisService;
|
|
-
|
|
|
|
|
|
+ @Scheduled(cron = "0 0 11 * * ?")
|
|
@GetMapping("/statistics")
|
|
@GetMapping("/statistics")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "光伏系统效率计算", notes = "光伏系统效率计算")
|
|
@ApiOperation(value = "光伏系统效率计算", notes = "光伏系统效率计算")
|
|
|
|
|
|
public AjaxResult forecast() throws Exception {
|
|
public AjaxResult forecast() throws Exception {
|
|
|
|
|
|
-// Map<String, Object> resultList = new LinkedHashMap<>();
|
|
|
|
-
|
|
|
|
-// qncalculator.planvalue();
|
|
|
|
calculator.planvalue();
|
|
calculator.planvalue();
|
|
-// if (null != resultList) {
|
|
|
|
-// return AjaxResult.successData(200, resultList);
|
|
|
|
-// } else {
|
|
|
|
-// return AjaxResult.error(500, "操作失败");
|
|
|
|
-// }
|
|
|
|
|
|
|
|
- return AjaxResult.successData(200, null);
|
|
|
|
|
|
+ return AjaxResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|