@ -83,4 +83,14 @@ public class SimulationAnalysisController {
public ResponseDTO getOeeZy(){
return ResponseDTO.ok(simulationAnalysisService.getOeeZy());
}
/**
* 获取工序列表
* @param tableCode
* @return
*/
@GetMapping("/get-process-list")
public ResponseDTO getProcessList(@RequestParam String tableCode){
return ResponseDTO.ok(simulationAnalysisService.getProcessList(tableCode));
@ -56,4 +56,11 @@ public interface SimulationAnalysisMapper {
List<OeeZy> getOeeZy();
List<String> getProcessList(String tableCode);
@ -54,4 +54,11 @@ public interface ISimulationAnalysisService {
@ -83,4 +83,14 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
public List<OeeZy> getOeeZy() {
return simulationAnalysisMapper.getOeeZy();
@Override
public List<String> getProcessList(String tableCode) {
return simulationAnalysisMapper.getProcessList(tableCode);
@ -69,4 +69,8 @@
from oee_zy
order by id desc limit 9
</select>
<!-- 获取工序列表-->
<select id="getProcessList" resultType="java.lang.String">
select distinct process_des from process_buffer where table_code = #{tableCode}
</mapper>