package com.yeejoin.equipmanage.listener;

import com.yeejoin.equipmanage.event.SynWarehouseEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author: songLei
 * @Description: 货位同步监听器
 * @Date: 2020/12/25 11:34
 * @Version: 1.0
 */
@Slf4j
@Component
public class SyncWarehouseListener implements ApplicationListener<SynWarehouseEvent> {
    @Override
    public void onApplicationEvent(SynWarehouseEvent event) {
        SynWarehouseEvent synWarehouseEvent = event;
        log.info("同步货位事假:{}",synWarehouseEvent.formKeyMap());
    }
}
