修改 铝内胆设备看板

master
wangh 2 years ago
parent bf1e971272
commit bf8ce32bb2

@ -145,7 +145,8 @@ public class AluminumLinerkController {
@GetMapping("/getInventoryStatistics") @GetMapping("/getInventoryStatistics")
@ResponseBody @ResponseBody
public String getInventoryStatistics() { public String getInventoryStatistics() {
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("L001"); List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList =
iMesProductionDataService.getMesMaterialStoreStatisticsList("L001");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList); return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
} }

@ -79,7 +79,7 @@ public class AluminumTtankController {
public String getMaterialProdutionStatisticsJson(){ public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList =
iMesProductionDataService.getMesMaterialProductionStatisticsList("1006"); iMesProductionDataService.getMesMaterialProductionStatisticsList("1003");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList); return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
} }

@ -44,7 +44,7 @@ public class PreassembleController {
@GetMapping("/getTeamStatisticsJson") @GetMapping("/getTeamStatisticsJson")
@ResponseBody @ResponseBody
public String getTeamStatisticsJson(){ public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1001"); List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("吸附内胆预装");
if(mesTeamStatisticsList.size()>0){ if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0)); return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
} }
@ -60,7 +60,8 @@ public class PreassembleController {
@GetMapping("/getHourProdutionJson") @GetMapping("/getHourProdutionJson")
@ResponseBody @ResponseBody
public String getHourProdutionStatisticsJson(){ public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002"); List<MesHourProdutionStatistics> mesHourProdutionStatisticsList =
iMesProductionDataService.getMesHourProdutionStatisticsList("1004");
if(mesHourProdutionStatisticsList.size()>0){ if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList); return JSONArray.toJSONString(mesHourProdutionStatisticsList);
} }
@ -77,7 +78,9 @@ public class PreassembleController {
@ResponseBody @ResponseBody
public String getMaterialProdutionStatisticsJson(){ public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1001"); List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList =
iMesProductionDataService.getMesMaterialProductionStatisticsList("1004");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList); return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
} }
@ -91,7 +94,7 @@ public class PreassembleController {
@GetMapping("/getMaterialStoreJson") @GetMapping("/getMaterialStoreJson")
@ResponseBody @ResponseBody
public String getMesMaterialStoreStatisticsJson(){ public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002"); List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("L001");
return JSONArray.toJSONString(mesMaterialStoreStatisticsList); return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
} }

@ -1,7 +1,7 @@
$(() => { $(() => {
//班组计划统计 //班组计划统计
$.getJSON('/foamBox/getTeamStatisticsJson', function (result) { $.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) {
onDutyPlan(result.planAmount, result.actualAmount, result.differenceAmount,) onDutyPlan(result.planAmount, result.actualAmount, result.differenceAmount,)
}); });
@ -18,12 +18,12 @@ $(() => {
}); });
//按型号统计产量 //按型号统计产量
$.getJSON('/foamBox/getMaterialProdutionJson', function (result) { $.getJSON(`/foamBox/getMaterialProdutionJson?ids=${ids}`, function (result) {
horizontalBarChart(result, document.getElementById("statisticalOutputByModel")); horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
}); });
//小时产量 //小时产量
$.getJSON('/foamBox/getHourProdutionJson', function (result) { $.getJSON(`/foamBox/getHourProdutionJson?ids=${ids}`, function (result) {
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics")); brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
}); });

Loading…
Cancel
Save