|
@@ -7,12 +7,14 @@ import com.gyee.backconfig.config.R;
|
|
import com.gyee.backconfig.model.auto.Windpowerstation;
|
|
import com.gyee.backconfig.model.auto.Windpowerstation;
|
|
import com.gyee.backconfig.service.BackConfigService;
|
|
import com.gyee.backconfig.service.BackConfigService;
|
|
import com.gyee.backconfig.service.auto.IWindpowerstationService;
|
|
import com.gyee.backconfig.service.auto.IWindpowerstationService;
|
|
|
|
+import com.gyee.backconfig.vo.PersisVo;
|
|
import com.gyee.backconfig.vo.WindpowerstationAdmVo;
|
|
import com.gyee.backconfig.vo.WindpowerstationAdmVo;
|
|
import com.gyee.backconfig.vo.Windpowerstationvo;
|
|
import com.gyee.backconfig.vo.Windpowerstationvo;
|
|
import com.gyee.common.model.StringUtils;
|
|
import com.gyee.common.model.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -217,13 +219,13 @@ public class WindpowerstationController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询
|
|
|
|
|
|
+ * 行政管理区域风电场列表
|
|
* @param regionid
|
|
* @param regionid
|
|
* @param companyid
|
|
* @param companyid
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/getList")
|
|
|
|
- public R getList(
|
|
|
|
|
|
+ @GetMapping(value = "/getadmList")
|
|
|
|
+ public R getadmList(
|
|
@RequestParam(value = "regionid",required = false) String regionid,
|
|
@RequestParam(value = "regionid",required = false) String regionid,
|
|
@RequestParam(value = "companyid",required = false) String companyid){
|
|
@RequestParam(value = "companyid",required = false) String companyid){
|
|
try {
|
|
try {
|
|
@@ -241,4 +243,31 @@ public class WindpowerstationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 场站性能分析
|
|
|
|
+ * @param station
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping(value = "/getPersis")
|
|
|
|
+ public R getPersis(
|
|
|
|
+ @RequestParam(value = "station",required = false) String station,
|
|
|
|
+ @RequestParam(value = "startdate",required = false) Date startdate,
|
|
|
|
+ @RequestParam(value = "enddate",required = false) Date enddate
|
|
|
|
+ ){
|
|
|
|
+ try {
|
|
|
|
+ List<PersisVo> list = windpowerstationService.getPersis(station, startdate,enddate);
|
|
|
|
+ if (null != list){
|
|
|
|
+ return R.ok().data(list);
|
|
|
|
+ }else {
|
|
|
|
+ return R.error().data("查询失败!");
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ return R.error().data("查询失败!");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|