修改 铝内胆设备看板

master
wangh 2 years ago
parent bf1e971272
commit bf8ce32bb2

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

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

@ -44,7 +44,7 @@ public class PreassembleController {
@GetMapping("/getTeamStatisticsJson")
@ResponseBody
public String getTeamStatisticsJson(){
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1001");
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("吸附内胆预装");
if(mesTeamStatisticsList.size()>0){
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
}
@ -60,7 +60,8 @@ public class PreassembleController {
@GetMapping("/getHourProdutionJson")
@ResponseBody
public String getHourProdutionStatisticsJson(){
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList =
iMesProductionDataService.getMesHourProdutionStatisticsList("1004");
if(mesHourProdutionStatisticsList.size()>0){
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
}
@ -77,7 +78,9 @@ public class PreassembleController {
@ResponseBody
public String getMaterialProdutionStatisticsJson(){
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1001");
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList =
iMesProductionDataService.getMesMaterialProductionStatisticsList("1004");
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
}
@ -91,7 +94,7 @@ public class PreassembleController {
@GetMapping("/getMaterialStoreJson")
@ResponseBody
public String getMesMaterialStoreStatisticsJson(){
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("L001");
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,)
});
@ -18,12 +18,12 @@ $(() => {
});
//按型号统计产量
$.getJSON('/foamBox/getMaterialProdutionJson', function (result) {
$.getJSON(`/foamBox/getMaterialProdutionJson?ids=${ids}`, function (result) {
horizontalBarChart(result, document.getElementById("statisticalOutputByModel"));
});
//小时产量
$.getJSON('/foamBox/getHourProdutionJson', function (result) {
$.getJSON(`/foamBox/getHourProdutionJson?ids=${ids}`, function (result) {
brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics"));
});

Loading…
Cancel
Save