|
|
@ -44,9 +44,14 @@ public class PreassembleController {
|
|
|
|
@GetMapping("/getTeamStatisticsJson")
|
|
|
|
@GetMapping("/getTeamStatisticsJson")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public String getTeamStatisticsJson(){
|
|
|
|
public String getTeamStatisticsJson(){
|
|
|
|
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("吸附内胆预装");
|
|
|
|
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1004");
|
|
|
|
if(mesTeamStatisticsList.size()>0){
|
|
|
|
if(mesTeamStatisticsList.size()>0){
|
|
|
|
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
|
|
|
|
MesTeamStatistics mesTeamStatistics = mesTeamStatisticsList.get(0);
|
|
|
|
|
|
|
|
mesTeamStatistics.setClassName("白班");
|
|
|
|
|
|
|
|
int planAmount = Integer.parseInt(mesTeamStatistics.getPlanAmount() == null ? "0" : mesTeamStatistics.getPlanAmount());
|
|
|
|
|
|
|
|
int actualAmount= Integer.parseInt(mesTeamStatistics.getActualAmount() == null ? "0" : mesTeamStatistics.getActualAmount());
|
|
|
|
|
|
|
|
mesTeamStatistics.setDifferenceAmount((planAmount - actualAmount)+"");
|
|
|
|
|
|
|
|
return JSONArray.toJSONString(mesTeamStatistics);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return JSONArray.toJSONString(new MesTeamStatistics());
|
|
|
|
return JSONArray.toJSONString(new MesTeamStatistics());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -94,7 +99,7 @@ public class PreassembleController {
|
|
|
|
@GetMapping("/getMaterialStoreJson")
|
|
|
|
@GetMapping("/getMaterialStoreJson")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public String getMesMaterialStoreStatisticsJson(){
|
|
|
|
public String getMesMaterialStoreStatisticsJson(){
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("L001");
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1004");
|
|
|
|
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
|
|
|
|
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|