|
|
|
@ -10,9 +10,7 @@ import com.ipsplm.service.simulation.ISimulationAnalysisService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description 仿真分析实现类
|
|
|
|
@ -32,11 +30,15 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public List<OeeVO> getPlantEquipmentUtilization(Long flag) {
|
|
|
|
|
public Map<String,Object> getPlantEquipmentUtilization(Long flag) {
|
|
|
|
|
String simEndTime = simulationAnalysisMapper.getSimEndTime();
|
|
|
|
|
List<PlantEquipmentUtilizationVO> plantEquipmentUtilization = simulationAnalysisMapper.getPlantEquipmentUtilization(flag);
|
|
|
|
|
List<OeeVO> oeeVOList = beanToKeyValue(plantEquipmentUtilization);
|
|
|
|
|
List<FieldCnVO> fieldCnVOList = simulationAnalysisMapper.getFieldInfo(null,1);
|
|
|
|
|
return fieldNameToChinese(fieldCnVOList,oeeVOList);
|
|
|
|
|
Map<String,Object> result = new HashMap<>();
|
|
|
|
|
result.put("simEndTime",simEndTime);
|
|
|
|
|
result.put("oeeList",fieldNameToChinese(fieldCnVOList,oeeVOList));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|