新火炬后端单体项目初始化代码
zhangherong
3 天以前 43f0e69715099cfc8c8b8ea5284b874bfad14400
src/main/java/org/jeecg/modules/andon/service/IAndonResponseConfigService.java
@@ -2,6 +2,8 @@
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;
@@ -17,11 +19,34 @@
    /**
     * 根据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(AndonButtonDTO andonButtonDTO);
    void sendAndonNotification(AndonOrdeDto andonButtonDTO);
}