|
|
|
@ -67,8 +67,9 @@ public class FoamBoxController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getTeamStatisticsJson")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getTeamStatisticsJson(){
|
|
|
|
|
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList("1002");
|
|
|
|
|
public String getTeamStatisticsJson(String ids){
|
|
|
|
|
String type=(ids.equals("0"))?"1029":"1012";
|
|
|
|
|
List<MesTeamStatistics> mesTeamStatisticsList = iMesProductionDataService.getMesTeamStatisticsList(type);
|
|
|
|
|
if(mesTeamStatisticsList.size()>0){
|
|
|
|
|
return JSONArray.toJSONString(mesTeamStatisticsList.get(0));
|
|
|
|
|
}
|
|
|
|
@ -85,6 +86,7 @@ public class FoamBoxController {
|
|
|
|
|
@GetMapping("/getRunStatusJson")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getRunStatusJson(String ids){
|
|
|
|
|
System.out.println("发泡机状态"+ids);
|
|
|
|
|
String runStatus = ifamBoxDeviceInfoService.getRunStatus(ids);
|
|
|
|
|
|
|
|
|
|
return runStatus;
|
|
|
|
@ -133,11 +135,16 @@ public class FoamBoxController {
|
|
|
|
|
* @author WenJY
|
|
|
|
|
* @date 2022-06-09 16:54
|
|
|
|
|
* @return java.lang.String
|
|
|
|
|
* Proce_Code =1029 发泡前出库南线
|
|
|
|
|
* Proce_Code =1012 发泡前出库北线
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getHourProdutionJson")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getHourProdutionStatisticsJson(){
|
|
|
|
|
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList = iMesProductionDataService.getMesHourProdutionStatisticsList("1002");
|
|
|
|
|
public String getHourProdutionStatisticsJson(String ids){
|
|
|
|
|
System.out.println("通过工位号获取MES小时产量:"+ids);
|
|
|
|
|
String type=(ids.equals("0"))?"1029":"1012";
|
|
|
|
|
List<MesHourProdutionStatistics> mesHourProdutionStatisticsList =
|
|
|
|
|
iMesProductionDataService.getMesHourProdutionStatisticsList(type);
|
|
|
|
|
if(mesHourProdutionStatisticsList.size()>0){
|
|
|
|
|
return JSONArray.toJSONString(mesHourProdutionStatisticsList);
|
|
|
|
|
}
|
|
|
|
@ -152,9 +159,10 @@ public class FoamBoxController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/getMaterialProdutionJson")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getMaterialProdutionStatisticsJson(){
|
|
|
|
|
|
|
|
|
|
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList = iMesProductionDataService.getMesMaterialProductionStatisticsList("1002");
|
|
|
|
|
public String getMaterialProdutionStatisticsJson(String ids){
|
|
|
|
|
String type=(ids.equals("0"))?"1029":"1012";
|
|
|
|
|
List<MesMaterialProductionStatistics> mesMaterialProductionStatisticsList =
|
|
|
|
|
iMesProductionDataService.getMesMaterialProductionStatisticsList(type);
|
|
|
|
|
|
|
|
|
|
return JSONArray.toJSONString(mesMaterialProductionStatisticsList);
|
|
|
|
|
}
|
|
|
|
@ -168,7 +176,9 @@ public class FoamBoxController {
|
|
|
|
|
@GetMapping("/getMaterialStoreJson")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getMesMaterialStoreStatisticsJson(){
|
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList = iMesProductionDataService.getMesMaterialStoreStatisticsList("1002");
|
|
|
|
|
|
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatisticsList =
|
|
|
|
|
iMesProductionDataService.getMesMaterialStoreStatisticsList("B001");
|
|
|
|
|
return JSONArray.toJSONString(mesMaterialStoreStatisticsList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|