|
|
@ -2,6 +2,8 @@ package com.ipsplm.service.simulation.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ipsplm.dao.simulation.SimulationAnalysisMapper;
|
|
|
|
import com.ipsplm.dao.simulation.SimulationAnalysisMapper;
|
|
|
|
import com.ipsplm.entity.simulation.*;
|
|
|
|
import com.ipsplm.entity.simulation.*;
|
|
|
|
|
|
|
|
import com.ipsplm.entity.simulation.vo.BufferNumVO;
|
|
|
|
|
|
|
|
import com.ipsplm.entity.simulation.vo.BufferVO;
|
|
|
|
import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO;
|
|
|
|
import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO;
|
|
|
|
import com.ipsplm.service.simulation.ISimulationAnalysisService;
|
|
|
|
import com.ipsplm.service.simulation.ISimulationAnalysisService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@ -20,8 +22,10 @@ import java.util.List;
|
|
|
|
public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService {
|
|
|
|
public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private SimulationAnalysisMapper simulationAnalysisMapper;
|
|
|
|
private SimulationAnalysisMapper simulationAnalysisMapper;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取厂房设备利用率信息
|
|
|
|
* 获取厂房设备利用率信息
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param flag
|
|
|
|
* @param flag
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -32,6 +36,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取不锈钢OEE
|
|
|
|
* 获取不锈钢OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -41,6 +46,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取大径线OEE
|
|
|
|
* 获取大径线OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -50,6 +56,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取小二线OEE
|
|
|
|
* 获取小二线OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -59,6 +66,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取小一线OEE
|
|
|
|
* 获取小一线OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -68,6 +76,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取中二线OEE
|
|
|
|
* 获取中二线OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -77,6 +86,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取中一线OEE
|
|
|
|
* 获取中一线OEE
|
|
|
|
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -86,6 +96,7 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取工序列表
|
|
|
|
* 获取工序列表
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param tableCode
|
|
|
|
* @param tableCode
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -93,4 +104,44 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
|
|
|
|
public List<String> getProcessList(String tableCode) {
|
|
|
|
public List<String> getProcessList(String tableCode) {
|
|
|
|
return simulationAnalysisMapper.getProcessList(tableCode);
|
|
|
|
return simulationAnalysisMapper.getProcessList(tableCode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取缓存数量时间
|
|
|
|
|
|
|
|
* @param process
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Object getBufferNum(String process) {
|
|
|
|
|
|
|
|
List<BufferVO> bufferNameList = simulationAnalysisMapper.getBufferName(process);
|
|
|
|
|
|
|
|
String tableCode = bufferNameList.get(0).getTableCode();
|
|
|
|
|
|
|
|
switch (tableCode) {
|
|
|
|
|
|
|
|
case "buffernum_bxg": {
|
|
|
|
|
|
|
|
List<BufferNumBxg> bufferNumBxgList = simulationAnalysisMapper.getBufferNumBxg(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumBxgList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case "buffernum_dj": {
|
|
|
|
|
|
|
|
List<BufferNumDj> bufferNumDjList = simulationAnalysisMapper.getBufferNumDj(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumDjList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case "buffernum_xe": {
|
|
|
|
|
|
|
|
List<BufferNumXe> bufferNumXeList = simulationAnalysisMapper.getBufferNumXe(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumXeList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case "buffernum_xy": {
|
|
|
|
|
|
|
|
List<BufferNumXy> bufferNumXyList = simulationAnalysisMapper.getBufferNumXy(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumXyList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case "buffernum_ze": {
|
|
|
|
|
|
|
|
List<BufferNumZe> bufferNumZeList = simulationAnalysisMapper.getBufferNumZe(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumZeList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case "buffernum_zy": {
|
|
|
|
|
|
|
|
List<BufferNumZy> bufferNumZyList = simulationAnalysisMapper.getBufferNumZy(bufferNameList);
|
|
|
|
|
|
|
|
return bufferNumZyList;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|