|
|
@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -46,7 +47,16 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<MesTeamStatistics> getMesTeamStatisticsList(String locationNumber) {
|
|
|
|
public List<MesTeamStatistics> getMesTeamStatisticsList(String locationNumber) {
|
|
|
|
List<MesTeamStatistics> adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
|
|
|
|
List<MesTeamStatistics> adsorptionTankTeamStatistics = new ArrayList<>();
|
|
|
|
|
|
|
|
switch (locationNumber) {
|
|
|
|
|
|
|
|
case "1001":
|
|
|
|
|
|
|
|
adsorptionTankTeamStatistics = teamStatisticsMapper.getAdsorptionTankTeamStatistics(this.in_id);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "1003":
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
return adsorptionTankTeamStatistics;
|
|
|
|
return adsorptionTankTeamStatistics;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -75,9 +85,16 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<MesMaterialProductionStatistics> getMesMaterialProductionStatisticsList(String locationNumber) {
|
|
|
|
public List<MesMaterialProductionStatistics> getMesMaterialProductionStatisticsList(String locationNumber) {
|
|
|
|
QueryWrapper<MesMaterialProductionStatistics> wrapper = new QueryWrapper<>();
|
|
|
|
List<MesMaterialProductionStatistics> mesMaterialProductionStatistics = new ArrayList<>();
|
|
|
|
wrapper.eq("POSIONID",locationNumber);
|
|
|
|
switch (locationNumber) {
|
|
|
|
List<MesMaterialProductionStatistics> mesMaterialProductionStatistics = materialProductionStatisticsMapper.selectList(wrapper);
|
|
|
|
case "1001":
|
|
|
|
|
|
|
|
mesMaterialProductionStatistics = materialProductionStatisticsMapper.getMesMaterialProductionStatisticsList(this.in_id);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "1003":
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
return mesMaterialProductionStatistics;
|
|
|
|
return mesMaterialProductionStatistics;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -90,9 +107,19 @@ public class MesProductionDataServiceImpl implements IMesProductionDataService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<MesMaterialStoreStatistics> getMesMaterialStoreStatisticsList(String locationNumber) {
|
|
|
|
public List<MesMaterialStoreStatistics> getMesMaterialStoreStatisticsList(String locationNumber) {
|
|
|
|
QueryWrapper<MesMaterialStoreStatistics> wrapper = new QueryWrapper<>();
|
|
|
|
|
|
|
|
wrapper.eq("POSIONID",locationNumber);
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatistics = new ArrayList<>();
|
|
|
|
List<MesMaterialStoreStatistics> mesMaterialStoreStatistics = materialStoreStatisticsMapper.selectList(wrapper);
|
|
|
|
|
|
|
|
|
|
|
|
switch (locationNumber) {
|
|
|
|
|
|
|
|
case "1001":
|
|
|
|
|
|
|
|
mesMaterialStoreStatistics = materialStoreStatisticsMapper.getAdsorptionTankStoreStatistics(this.in_id);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "1003":
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return mesMaterialStoreStatistics;
|
|
|
|
return mesMaterialStoreStatistics;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|