|
|
|
@ -3,7 +3,9 @@ package com.productionboard.controller;
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.productionboard.entity.AluminumDevice.AluminumLossStatistics;
|
|
|
|
|
import com.productionboard.entity.MesProduction.DeviceFault;
|
|
|
|
|
import com.productionboard.entity.TankShellDevice.TankShellLossStatistics;
|
|
|
|
|
import com.productionboard.service.IMesProductionDataService;
|
|
|
|
|
import com.productionboard.service.ITankShellDeviceInfoService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
@ -16,13 +18,15 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 箱壳自动成型线设备看板
|
|
|
|
|
*
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022年06月06日 10:41
|
|
|
|
|
*/
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping("/tankShellDevice")
|
|
|
|
|
public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IMesProductionDataService iMesProductionDataService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITankShellDeviceInfoService iTankShellDeviceInfoService;
|
|
|
|
|
|
|
|
|
@ -41,9 +45,10 @@ public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* loss统计
|
|
|
|
|
*
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-10 11:28
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getLossStatistics")
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -65,9 +70,10 @@ public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备产量能耗对比
|
|
|
|
|
*
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-08 18:01
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getEnergyConsumption")
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -78,9 +84,10 @@ public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取运行参数,整合产量能耗、运行参数、loss、标准节拍参数
|
|
|
|
|
*
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-08 15:53
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getRunParameters")
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -90,9 +97,10 @@ public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取设备参数值
|
|
|
|
|
*
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-09 10:52
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getDeviceParameterValue")
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -102,9 +110,10 @@ public class TankShellDeviceController {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取OEE统计数据
|
|
|
|
|
*
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-08 18:23
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getOeeStatistics")
|
|
|
|
|
@ResponseBody
|
|
|
|
@ -112,4 +121,15 @@ public class TankShellDeviceController {
|
|
|
|
|
String oeeStatisticsJson = iTankShellDeviceInfoService.getOeeStatisticsJson();
|
|
|
|
|
return oeeStatisticsJson;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备故障排名
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getStatisticalOutputByModel")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getStatisticalOutputByModel() {
|
|
|
|
|
List<DeviceFault> list = iMesProductionDataService.selectDeviceFaultByType("箱壳自动成型线");
|
|
|
|
|
return JSONArray.toJSONString(list);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|