|
|
@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +30,8 @@ public class AluminumLinerkController {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IAluminumDeviceInfoService aluminumDeviceInfoService;
|
|
|
|
private IAluminumDeviceInfoService aluminumDeviceInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private SimpleDateFormat hourFormat = new SimpleDateFormat("HH");
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping()
|
|
|
|
@GetMapping()
|
|
|
|
public String index()
|
|
|
|
public String index()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -65,6 +68,11 @@ public class AluminumLinerkController {
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public String oeeStatistics() {
|
|
|
|
public String oeeStatistics() {
|
|
|
|
List<AluminumOeeStatistics> oeeStatisticsList = aluminumDeviceInfoService.getOeeStatisticsList();
|
|
|
|
List<AluminumOeeStatistics> oeeStatisticsList = aluminumDeviceInfoService.getOeeStatisticsList();
|
|
|
|
|
|
|
|
if(oeeStatisticsList.size()>0){
|
|
|
|
|
|
|
|
oeeStatisticsList.forEach(x->{
|
|
|
|
|
|
|
|
x.setYValue(hourFormat.format(x.getCreateTime()));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
return JSONArray.toJSONString(oeeStatisticsList);
|
|
|
|
return JSONArray.toJSONString(oeeStatisticsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|