获取OEE数据

master
lulicheng 9 months ago
parent dd77d66db7
commit edfddcc1c1

@ -29,4 +29,58 @@ public class SimulationAnalysisController {
public ResponseDTO getPlantEquipmentUtilization(@RequestParam(required = false) Long flag) { public ResponseDTO getPlantEquipmentUtilization(@RequestParam(required = false) Long flag) {
return ResponseDTO.ok(simulationAnalysisService.getPlantEquipmentUtilization(flag)); return ResponseDTO.ok(simulationAnalysisService.getPlantEquipmentUtilization(flag));
} }
/**
* OEE
* @return
*/
@GetMapping("/get-oee-bxg")
public ResponseDTO getOeeBxg(){
return ResponseDTO.ok(simulationAnalysisService.getOeeBxg());
}
/**
* 线OEE
* @return
*/
@GetMapping("/get-oee-dj")
public ResponseDTO getOeeDj(){
return ResponseDTO.ok(simulationAnalysisService.getOeeDj());
}
/**
* 线OEE
* @return
*/
@GetMapping("/get-oee-xe")
public ResponseDTO getOeeXe(){
return ResponseDTO.ok(simulationAnalysisService.getOeeXe());
}
/**
* 线OEE
* @return
*/
@GetMapping("/get-oee-xy")
public ResponseDTO getOeeXy(){
return ResponseDTO.ok(simulationAnalysisService.getOeeXy());
}
/**
* 线OEE
* @return
*/
@GetMapping("/get-oee-ze")
public ResponseDTO getOeeZe(){
return ResponseDTO.ok(simulationAnalysisService.getOeeZe());
}
/**
* 线OEE
* @return
*/
@GetMapping("/get-oee-zy")
public ResponseDTO getOeeZy(){
return ResponseDTO.ok(simulationAnalysisService.getOeeZy());
}
} }

@ -1,7 +1,11 @@
package com.ipsplm.dao.simulation; package com.ipsplm.dao.simulation;
import com.ipsplm.entity.simulation.*;
import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO; import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/** /**
* @Description 仿Mapper * @Description 仿Mapper
* @Author lulicheng * @Author lulicheng
@ -16,4 +20,40 @@ public interface SimulationAnalysisMapper {
* @return * @return
*/ */
PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag); PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag);
/**
* OEE
* @return
*/
List<OeeBxg> getOeeBxg();
/**
* 线OEE
* @return
*/
List<OeeDj> getOeeDj();
/**
* 线OEE
* @return
*/
List<OeeXe> getOeeXe();
/**
* 线OEE
* @return
*/
List<OeeXy> getOeeXy();
/**
* 线OEE
* @return
*/
List<OeeZe> getOeeZe();
/**
* 线OEE
* @return
*/
List<OeeZy> getOeeZy();
} }

@ -1,7 +1,10 @@
package com.ipsplm.service.simulation; package com.ipsplm.service.simulation;
import com.ipsplm.entity.simulation.*;
import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO; import com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO;
import java.util.List;
/** /**
* @Description 仿 * @Description 仿
* @Author lulicheng * @Author lulicheng
@ -15,4 +18,40 @@ public interface ISimulationAnalysisService {
* @return * @return
*/ */
PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag); PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag);
/**
* OEE
* @return
*/
List<OeeBxg> getOeeBxg();
/**
* 线OEE
* @return
*/
List<OeeDj> getOeeDj();
/**
* 线OEE
* @return
*/
List<OeeXe> getOeeXe();
/**
* 线OEE
* @return
*/
List<OeeXy> getOeeXy();
/**
* 线OEE
* @return
*/
List<OeeZe> getOeeZe();
/**
* 线OEE
* @return
*/
List<OeeZy> getOeeZy();
} }

@ -1,11 +1,15 @@
package com.ipsplm.service.simulation.impl; 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.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;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
/** /**
* @Description 仿 * @Description 仿
* @Author lulicheng * @Author lulicheng
@ -25,4 +29,58 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
public PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag) { public PlantEquipmentUtilizationVO getPlantEquipmentUtilization(Long flag) {
return simulationAnalysisMapper.getPlantEquipmentUtilization(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();
}
} }

@ -3,7 +3,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ipsplm.dao.simulation.SimulationAnalysisMapper"> <mapper namespace="com.ipsplm.dao.simulation.SimulationAnalysisMapper">
<!-- 获取厂房设备利用率信息--> <!-- 获取厂房设备利用率信息-->
<select id="getPlantEquipmentUtilization" <select id="getPlantEquipmentUtilization"
resultType="com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO"> resultType="com.ipsplm.entity.simulation.vo.PlantEquipmentUtilizationVO">
select bxg.bxg_zp_l, select bxg.bxg_zp_l,
@ -33,4 +33,40 @@
</if> </if>
limit 1 limit 1
</select> </select>
<!-- 获取不锈钢OEE-->
<select id="getOeeBxg" resultType="com.ipsplm.entity.simulation.OeeBxg">
select *
from oee_bxg
order by id desc limit 9
</select>
<!-- 获取大径线OEE-->
<select id="getOeeDj" resultType="com.ipsplm.entity.simulation.OeeDj">
select *
from oee_dj
order by id desc limit 9
</select>
<!-- 获取小二线OEE-->
<select id="getOeeXe" resultType="com.ipsplm.entity.simulation.OeeXe">
select *
from oee_xe
order by id desc limit 9
</select>
<!-- 获取小一线OEE-->
<select id="getOeeXy" resultType="com.ipsplm.entity.simulation.OeeXy">
select *
from oee_xy
order by id desc limit 9
</select>
<!-- 获取中二线OEE-->
<select id="getOeeZe" resultType="com.ipsplm.entity.simulation.OeeZe">
select *
from oee_ze
order by id desc limit 9
</select>
<!-- 获取中一线OEE-->
<select id="getOeeZy" resultType="com.ipsplm.entity.simulation.OeeZy">
select *
from oee_zy
order by id desc limit 9
</select>
</mapper> </mapper>
Loading…
Cancel
Save