55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using YLErp.Abstract;
|
|
using YLErp.Modules.SwapModule.Interface;
|
|
|
|
namespace YLErp.Modules.SwapModule
|
|
{
|
|
public class PushHTService : IPushHTService
|
|
{
|
|
private IKafkaProduce kafkaProduceHelper;
|
|
public PushHTService(IKafkaProduce kafkaProduce)
|
|
{
|
|
kafkaProduceHelper = kafkaProduce;
|
|
}
|
|
/// <summary>
|
|
/// 推送交易相关
|
|
/// </summary>
|
|
public void PushTrade()
|
|
{
|
|
SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser);
|
|
pushService.SetKafKaProduce(kafkaProduceHelper);
|
|
pushService.PushTrade();
|
|
pushService.PushTradeUpdate();
|
|
pushService.PushUnwind();
|
|
pushService.PushRepealUnwind();
|
|
}
|
|
/// <summary>
|
|
/// 推送客户信息相关
|
|
/// </summary>
|
|
public void PushClient()
|
|
{
|
|
SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser);
|
|
pushService.SetKafKaProduce(kafkaProduceHelper);
|
|
pushService.PushClient();
|
|
pushService.PushClientBank();
|
|
// pushService.PushClientCash();
|
|
|
|
}
|
|
/// <summary>
|
|
/// 重推
|
|
/// </summary>
|
|
/// <param name="pushLog"></param>
|
|
public void PushSingle(PushLog pushLog)
|
|
{
|
|
SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser);
|
|
pushService.SetKafKaProduce(kafkaProduceHelper);
|
|
pushService.RePushLog( pushLog);
|
|
}
|
|
}
|
|
}
|