新火炬后端单体项目初始化代码
Houjie
4 天以前 14943f4a30e027dcf8956272192666524a851eff
src/main/java/org/jeecg/modules/andon/service/IAndonResponseConfigService.java
@@ -1,7 +1,12 @@
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: 安灯响应配置
@@ -11,4 +16,37 @@
 */
public interface IAndonResponseConfigService extends IService<AndonResponseConfig> {
    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);
}