获取工序列表

master
lulicheng 9 months ago
parent 8c2eba77af
commit 278c749243

@ -83,4 +83,14 @@ public class SimulationAnalysisController {
public ResponseDTO getOeeZy(){ public ResponseDTO getOeeZy(){
return ResponseDTO.ok(simulationAnalysisService.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 {
* @return * @return
*/ */
List<OeeZy> getOeeZy(); List<OeeZy> getOeeZy();
/**
*
* @param tableCode
* @return
*/
List<String> getProcessList(String tableCode);
} }

@ -54,4 +54,11 @@ public interface ISimulationAnalysisService {
* @return * @return
*/ */
List<OeeZy> getOeeZy(); List<OeeZy> getOeeZy();
/**
*
* @param tableCode
* @return
*/
List<String> getProcessList(String tableCode);
} }

@ -83,4 +83,14 @@ public class SimulationAnalysisServiceImpl implements ISimulationAnalysisService
public List<OeeZy> getOeeZy() { public List<OeeZy> getOeeZy() {
return simulationAnalysisMapper.getOeeZy(); return simulationAnalysisMapper.getOeeZy();
} }
/**
*
* @param tableCode
* @return
*/
@Override
public List<String> getProcessList(String tableCode) {
return simulationAnalysisMapper.getProcessList(tableCode);
}
} }

@ -69,4 +69,8 @@
from oee_zy from oee_zy
order by id desc limit 9 order by id desc limit 9
</select> </select>
<!-- 获取工序列表-->
<select id="getProcessList" resultType="java.lang.String">
select distinct process_des from process_buffer where table_code = #{tableCode}
</select>
</mapper> </mapper>
Loading…
Cancel
Save