diff --git a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs index 332873f5..a62a6c4f 100644 --- a/YLErpDAL/Modules/SwapModule/SwapTradeService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapTradeService.cs @@ -771,10 +771,6 @@ namespace YLErp.Modules.SwapModule { var client = PrepareBaseTradeClient(req); - if (req.StructureType != ClientMarginTypeEnum.多空组合.ToString() && _underlying.CalcTypeIsStock() && ((client.TradingInstType & TradingInstTypeEnum.Equity) != TradingInstTypeEnum.Equity)) - { - throw new ServiceException($"客户'{client.Name}'的'交易资产'属性不包括'权益',不能进行收益互换交易"); - } if (client.EvaluateExpireDate < req.TradeDate) { throw new ServiceException("适当性评估已经过期,只有在适当性有效期内才可以新开仓"); diff --git a/YLErpDAL/Modules/UnderlyingModule/UnderlyingDalService.cs b/YLErpDAL/Modules/UnderlyingModule/UnderlyingDalService.cs index d9af5ba0..22011d3c 100644 --- a/YLErpDAL/Modules/UnderlyingModule/UnderlyingDalService.cs +++ b/YLErpDAL/Modules/UnderlyingModule/UnderlyingDalService.cs @@ -435,7 +435,7 @@ namespace YLErp.Modules.UnderlyingModule dbModel.MarketCode = string.IsNullOrWhiteSpace(dbModel.MarketName) ? "" : DataCacheProvider.GetMarketDataSource().AsQueryable().FirstOrDefault(n => n.MarketName == dbModel.MarketName)?.ExchangeNo; } - if (dbModel.ContractSize <= 1) + if (dbModel.ContractSize < 1) { dbModel.ContractSize = variety.TradeUnitValue > 0 ? variety.TradeUnitValue.Value : 1; } diff --git a/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml b/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml index 6a395497..45a1b9e7 100644 --- a/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml +++ b/YLErpWeb/Views/SwapTrade2/TradeEdit.cshtml @@ -420,13 +420,13 @@