新火炬后端单体项目初始化代码
zhangherong
昨天 2cf76b152d6dd556bade813ea843899e7d4ba42e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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> {
    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);
}