Explorar el Código

单机信息总览线路明细功率曲线接口

shilin hace 3 años
padre
commit
755db2ab8e

+ 7 - 5
src/main/java/com/gyee/frame/controller/goodness/WindturbineDetailLineChartController.java

@@ -112,12 +112,14 @@ public class WindturbineDetailLineChartController {
     @ResponseBody
     public AjaxResult getInputSmall(String wtId, String recorddate) throws Exception {
         Date date = DateUtils.parseStrtoDate(recorddate);
-        List<Inputoroutputspeedtotal> result = inputoroutputspeedtotalServicenegoodnessService.getInputoroutputspeedtotal(wtId, date);
-        if (result != null) {
-            return AjaxResult.successData(AjaxStatus.success.code, result);
-        } else {
-            return AjaxResult.successData(AjaxStatus.emptyresultset.code, result);
+        double inputsmall=0.0;
+        List<Inputoroutputspeedtotal> ls = inputoroutputspeedtotalServicenegoodnessService.getInputoroutputspeedtotal(wtId, date);
+        if(!ls.isEmpty())
+        {
+            Inputoroutputspeedtotal is=ls.get(0);
+            inputsmall=is.getMonthinputsmall();
         }
+        return AjaxResult.successData(AjaxStatus.success.code, inputsmall);
     }
 
     /**