TRS-ZS-183 一个客户一天所有开仓的多头交易都放到一个交易确认书里
This commit is contained in:
@@ -21,6 +21,7 @@ using YLErp.Configuration;
|
||||
using YLErp.DBModels;
|
||||
using YLErp.DBModels.Abstract;
|
||||
using YLErp.DBModels.Consts;
|
||||
using YLErp.DBModels.Enums;
|
||||
using YLErp.Helpers;
|
||||
using YLErp.Model;
|
||||
using YLErp.Models;
|
||||
@@ -1323,6 +1324,13 @@ namespace YLErp.Modules.TradeModule.DocGenerateModule
|
||||
{
|
||||
return UniqueTimeId.GetStr();
|
||||
}
|
||||
if (Trade.TradeType == "收益互换")
|
||||
{
|
||||
var posi = GetSwapPositions(Trade.id, true).FirstOrDefault();
|
||||
var isLong = posi?.PositionType == (int)PositionTypeFlag.Short ? false : true;
|
||||
|
||||
return "ZSZQ-" + _client.Number + "-" + Trade.TradeDate?.ToString("yyyyMMdd") + (isLong ? "-L" : "-S");
|
||||
}
|
||||
return Trade.TradeNumber;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user