package org.springblade.agent.listener;

import lombok.extern.slf4j.Slf4j;
import org.springblade.gateway.common_gateway.entity.BillSuccessEvent;
import org.springblade.payment.entity.SuccessParams;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: lianghanqiang
 * @description: 根据订单信息，处理响应代理关系以及代理费
 * @since: 8/31/21 -- 9:49 AM
 */
@Component
@Slf4j
public class AgentFeeHandle {

	@EventListener
	@Async
	@Transactional
	public void addAgentFee(BillSuccessEvent billSuccessEvent){
		SuccessParams successParams = billSuccessEvent.getSuccessParams();
	}
}
