修改 箱壳设备看板

master
wangh 2 years ago
parent a8e83fffb1
commit e128512aa6

@ -3,7 +3,9 @@ package com.productionboard.controller;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.productionboard.entity.AluminumDevice.AluminumLossStatistics; import com.productionboard.entity.AluminumDevice.AluminumLossStatistics;
import com.productionboard.entity.MesProduction.DeviceFault;
import com.productionboard.entity.TankShellDevice.TankShellLossStatistics; import com.productionboard.entity.TankShellDevice.TankShellLossStatistics;
import com.productionboard.service.IMesProductionDataService;
import com.productionboard.service.ITankShellDeviceInfoService; import com.productionboard.service.ITankShellDeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -16,13 +18,15 @@ import java.util.List;
/** /**
* 线 * 线
*
* @author WenJY * @author WenJY
* @date 20220606 10:41 * @date 20220606 10:41
*/ */
@Controller @Controller
@RequestMapping("/tankShellDevice") @RequestMapping("/tankShellDevice")
public class TankShellDeviceController { public class TankShellDeviceController {
@Autowired
private IMesProductionDataService iMesProductionDataService;
@Autowired @Autowired
private ITankShellDeviceInfoService iTankShellDeviceInfoService; private ITankShellDeviceInfoService iTankShellDeviceInfoService;
@ -41,9 +45,10 @@ public class TankShellDeviceController {
/** /**
* loss * loss
*
* @return java.lang.String
* @author WenJY * @author WenJY
* @date 2022-06-10 11:28 * @date 2022-06-10 11:28
* @return java.lang.String
*/ */
@GetMapping("/getLossStatistics") @GetMapping("/getLossStatistics")
@ResponseBody @ResponseBody
@ -65,9 +70,10 @@ public class TankShellDeviceController {
/** /**
* *
*
* @return java.lang.String
* @author WenJY * @author WenJY
* @date 2022-06-08 18:01 * @date 2022-06-08 18:01
* @return java.lang.String
*/ */
@GetMapping("/getEnergyConsumption") @GetMapping("/getEnergyConsumption")
@ResponseBody @ResponseBody
@ -78,9 +84,10 @@ public class TankShellDeviceController {
/** /**
* ,loss * ,loss
*
* @return java.lang.String
* @author WenJY * @author WenJY
* @date 2022-06-08 15:53 * @date 2022-06-08 15:53
* @return java.lang.String
*/ */
@GetMapping("/getRunParameters") @GetMapping("/getRunParameters")
@ResponseBody @ResponseBody
@ -90,9 +97,10 @@ public class TankShellDeviceController {
/** /**
* *
*
* @return java.lang.String
* @author WenJY * @author WenJY
* @date 2022-06-09 10:52 * @date 2022-06-09 10:52
* @return java.lang.String
*/ */
@GetMapping("/getDeviceParameterValue") @GetMapping("/getDeviceParameterValue")
@ResponseBody @ResponseBody
@ -102,9 +110,10 @@ public class TankShellDeviceController {
/** /**
* OEE * OEE
*
* @return java.lang.String
* @author WenJY * @author WenJY
* @date 2022-06-08 18:23 * @date 2022-06-08 18:23
* @return java.lang.String
*/ */
@GetMapping("/getOeeStatistics") @GetMapping("/getOeeStatistics")
@ResponseBody @ResponseBody
@ -112,4 +121,15 @@ public class TankShellDeviceController {
String oeeStatisticsJson = iTankShellDeviceInfoService.getOeeStatisticsJson(); String oeeStatisticsJson = iTankShellDeviceInfoService.getOeeStatisticsJson();
return oeeStatisticsJson; return oeeStatisticsJson;
} }
/**
*
* @return
*/
@GetMapping("/getStatisticalOutputByModel")
@ResponseBody
public String getStatisticalOutputByModel() {
List<DeviceFault> list = iMesProductionDataService.selectDeviceFaultByType("箱壳自动成型线");
return JSONArray.toJSONString(list);
}
} }

@ -9,7 +9,7 @@ $(() => {
}, 1000); }, 1000);
//设备故障排名 //设备故障排名
$.getJSON('/tankShell/getStatisticalOutputByModel', function (result) { $.getJSON('/tankShellDevice/getStatisticalOutputByModel', function (result) {
equipmentFailure(result, document.getElementById("equipmentFailure")); equipmentFailure(result, document.getElementById("equipmentFailure"));
}); });

@ -9,7 +9,7 @@ $(() => {
}, 1000); }, 1000);
//设备故障排名 //设备故障排名
$.getJSON('/tankShell/getStatisticalOutputByModel', function (result) { $.getJSON('/tankShellDevice/getStatisticalOutputByModel', function (result) {
equipmentFailure(result, document.getElementById("equipmentFailure")); equipmentFailure(result, document.getElementById("equipmentFailure"));
}); });

Loading…
Cancel
Save