package org.jeecg.modules.andon.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.modules.andon.dto.AndonButtonDTO; import org.jeecg.modules.andon.dto.AndonOrdeDto; import org.jeecg.modules.andon.entity.AndonOrder; import org.jeecg.modules.andon.entity.AndonResponseConfig; import java.util.List; /** * @Description: 安灯响应配置 * @Author: jeecg-boot * @Date: 2025-07-10 * @Version: V1.0 */ public interface IAndonResponseConfigService extends IService { AndonResponseConfig getAndonResponseConfigByFactoryIdAndButtonId(String factoryId, String buttonId); /** * 根据button_id获取产线ID * @param buttonId * @return */ String getProductionLineIdByButtonId(String buttonId); /** * 根据button_id获取响应人 * @param buttonId * @return */ String getResponderByButtonId(String buttonId,String factoryId); /** * 根据button_id和factory_id获取响应配置对象 * @param buttonId 按钮ID * @param factoryId 工厂/产线ID * @return AndonResponseConfig 响应配置对象 */ AndonResponseConfig getResponseConfigByButtonIdAndFactoryId(String buttonId, String factoryId); /** * 发送安灯通知 * @param andonButtonDTO 安灯按钮DTO * @return 结果 */ void sendAndonNotification(AndonOrdeDto andonButtonDTO); }