change - 吸附内胆预装数据监控平台产量、库存统计

master
wenjy 2 years ago
parent 314f4b8eaf
commit 74701fefde

@ -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);
} }

@ -52,8 +52,8 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
case "1001": case "1001":
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id); adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
break; break;
case "1003": case "1004":
break; adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
default: default:
break; break;
} }
@ -90,7 +90,8 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
case "1001": case "1001":
mesMaterialProductionStatistics = materialProductionStatisticsMapper.getMesMaterialProductionStatisticsList(this.in_id); mesMaterialProductionStatistics = materialProductionStatisticsMapper.getMesMaterialProductionStatisticsList(this.in_id);
break; break;
case "1003": case "1004":
mesMaterialProductionStatistics = materialProductionStatisticsMapper.getMesMaterialProductionStatisticsList(this.in_id);
break; break;
default: default:
break; break;
@ -114,7 +115,8 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
case "1001": case "1001":
mesMaterialStoreStatistics = materialStoreStatisticsMapper.getAdsorptionTankStoreStatistics(this.in_id); mesMaterialStoreStatistics = materialStoreStatisticsMapper.getAdsorptionTankStoreStatistics(this.in_id);
break; break;
case "1003": case "1004":
mesMaterialStoreStatistics = materialStoreStatisticsMapper.getAdsorptionTankStoreStatistics(this.in_id);
break; break;
default: default:
break; break;

Loading…
Cancel
Save