|
@@ -3,6 +3,7 @@ package com.gyee.frame.controller.compare;
|
|
|
import com.gyee.frame.common.domain.AjaxResult;
|
|
|
import com.gyee.frame.service.compare.CompareService;
|
|
|
import com.gyee.frame.util.DateUtils;
|
|
|
+import com.gyee.frame.util.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -31,10 +32,14 @@ public class CompareController {
|
|
|
/**创建日风资源图表**/
|
|
|
@GetMapping("/fzyDay")
|
|
|
@ResponseBody
|
|
|
- public AjaxResult fzyDay(String windturbineid,Date date) {
|
|
|
-
|
|
|
-
|
|
|
- AjaxResult ajaxResult=compareService.fzyDay(windturbineid,date) ;
|
|
|
+ public AjaxResult fzyDay(String windturbineid,String date) {
|
|
|
+
|
|
|
+ Date beginDate_d=null;
|
|
|
+ if (StringUtils.isNotEmpty(date))
|
|
|
+ {
|
|
|
+ beginDate_d= DateUtils.parseDate(date);
|
|
|
+ }
|
|
|
+ AjaxResult ajaxResult=compareService.fzyDay(windturbineid,beginDate_d) ;
|
|
|
|
|
|
return ajaxResult;
|
|
|
|