You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
3.9 KiB
Java

package com.ipsplm.service.simulation.impl;
import com.ipsplm.dao.simulation.SimulationAnalysisMapper;
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.service.simulation.ISimulationAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
/**
* @Description 仿
* @Author lulicheng
* @Date 2024-07-31 1020
* @Version 1.0
*/
@Service
public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService {
@Autowired
private SimulationAnalysisMapper simulationAnalysisMapper;
/**
*
*
* @param flag
* @return
*/
@Override
public PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag) {
return simulationAnalysisMapper.getPlantEquipmentUtilization(flag);
}
/**
* OEE
*
* @return
*/
@Override
public List<OeeBxg> getOeeBxg() {
return simulationAnalysisMapper.getOeeBxg();
}
/**
* 线OEE
*
* @return
*/
@Override
public List<OeeDj> getOeeDj() {
return simulationAnalysisMapper.getOeeDj();
}
/**
* 线OEE
*
* @return
*/
@Override
public List<OeeXe> getOeeXe() {
return simulationAnalysisMapper.getOeeXe();
}
/**
* 线OEE
*
* @return
*/
@Override
public List<OeeXy> getOeeXy() {
return simulationAnalysisMapper.getOeeXy();
}
/**
* 线OEE
*
* @return
*/
@Override
public List<OeeZe> getOeeZe() {
return simulationAnalysisMapper.getOeeZe();
}
/**
* 线OEE
*
* @return
*/
@Override
public List<OeeZy> getOeeZy() {
return simulationAnalysisMapper.getOeeZy();
}
/**
*
*
* @param tableCode
* @return
*/
@Override
public List<String> getProcessList(String 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;
}
}