|
@@ -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);
|
|
|
}
|
|
|
|
|
|
/**
|