package com.bonus.common.biz.service;

import com.bonus.common.biz.domain.BmStorageLog;
import com.bonus.common.core.constant.SecurityConstants;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @PackagePath: com.bonus.common.biz.service
 * @CreateTime: 2024-12-06  15:35
 * @Description: 物资库日志异步处理
 */
@Service
public class AsyncStoreLogService {

    @Resource
    private RemoteStoreLogService remoteStoreLogService;

    @Async
    public void batchInsert(List<BmStorageLog> bmStorageLogList) throws Exception {
        remoteStoreLogService.batchInsert(bmStorageLogList, SecurityConstants.INNER);
    }
}
