puzhibing
2026-04-10 ed838e62602c0a63a64ff4bd144a0d16cc9a7cf8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.xiaopeng.map.event;
 
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
 
/**
 * 围栏变更事件,在事务提交后触发 ADC 推送。
 */
@Getter
public class FenceChangedEvent extends ApplicationEvent {
 
    /** 围栏ID */
    private final Long electronicId;
 
    /** 围栏状态:0=草稿 1=待启用 2=启用中 3=已停用 */
    private final Integer status;
 
    public FenceChangedEvent(Object source, Long electronicId, Integer status) {
        super(source);
        this.electronicId = electronicId;
        this.status = status;
    }
}