diff --git a/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs b/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs index bf5b1926..7c43ed2c 100644 --- a/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs +++ b/YLErpDAL/Modules/RiskModule/QuotaMonitorService.cs @@ -4952,13 +4952,13 @@ namespace YLErp.Modules.RiskModule var item = positions[i]; if (item == null) { - _logger.Error($"[CheckUnderlyingWhiteList] 错误: positions[{i}] 为 null"); + _logger.Info($"[CheckUnderlyingWhiteList] positions[{i}] 为 null"); quotaMsg = "持仓数据异常:存在空记录"; return false; } if (string.IsNullOrEmpty(item.UnderlyingCode)) { - _logger.Error($"[CheckUnderlyingWhiteList] 错误: positions[{i}].UnderlyingCode 为 null 或空 - id: {item.id}, SwapTradeId: {item.SwapTradeId}"); + _logger.Info($"[CheckUnderlyingWhiteList] positions[{i}].UnderlyingCode 为 null 或空 - id: {item.id}, SwapTradeId: {item.SwapTradeId}"); quotaMsg = "持仓数据异常:标的代码为空"; return false; } @@ -5073,7 +5073,7 @@ namespace YLErp.Modules.RiskModule if (trades == null || trades.Count == 0) { - _logger.Error("[CheckFund] 错误: trades 为 null 或空列表"); + _logger.Info("[CheckFund] trades 为 null 或空列表"); msg = "交易列表为空"; return false; } @@ -5139,7 +5139,7 @@ namespace YLErp.Modules.RiskModule // 检查 ExerciseDate 是否为 null if (!trades[0].ExerciseDate.HasValue) { - _logger.Error($"[CheckFund] 错误: trades[0].ExerciseDate 为 null - tradeId: {trades[0].id}"); + _logger.Info($"[CheckFund] trades[0].ExerciseDate 为 null - tradeId: {trades[0].id}"); msg = "交易行权日期不能为空"; return false; } diff --git a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs index c05a5b0a..95fef6b3 100644 --- a/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs +++ b/YLErpDAL/Modules/SwapModule/SwapEodPositionService.cs @@ -223,25 +223,25 @@ namespace YLErp.Modules.SwapModule // 验证关键参数 if (td == null) { - Log.Error("[DealInterests] 参数错误: td (trade) 为 null"); + Log.Info("[DealInterests] 参数验证: td (trade) 为 null"); throw new ArgumentNullException(nameof(td), "交易对象不能为null"); } if (interestList == null) { - Log.Error($"[DealInterests] 参数错误: interestList 为 null, td.id: {td.id}"); + Log.Info($"[DealInterests] 参数验证: interestList 为 null, td.id: {td.id}"); throw new ArgumentNullException(nameof(interestList), "利息腿列表不能为null"); } if (flowEvents == null) { - Log.Error($"[DealInterests] 参数错误: flowEvents 为 null, td.id: {td.id}"); + Log.Info($"[DealInterests] 参数验证: flowEvents 为 null, td.id: {td.id}"); throw new ArgumentNullException(nameof(flowEvents), "流水事件列表不能为null"); } if (autoInterests == null) { - Log.Error($"[DealInterests] 参数错误: autoInterests 为 null, td.id: {td.id}"); + Log.Info($"[DealInterests] 参数验证: autoInterests 为 null, td.id: {td.id}"); throw new ArgumentNullException(nameof(autoInterests), "自动互换列表不能为null"); } var hasClose = flowEvents.Any(x => x.EventType == (int)SwapEventTypeEnum.平仓); @@ -715,25 +715,25 @@ namespace YLErp.Modules.SwapModule // 详细的参数验证 if (td == null) { - Log.Error("[SaveAutoEodInterestPosition] 参数错误: td (trade) 为 null"); + Log.Info("[SaveAutoEodInterestPosition] 参数验证: td (trade) 为 null"); throw new ArgumentNullException(nameof(td), "交易对象不能为null"); } if (position == null) { - Log.Error($"[SaveAutoEodInterestPosition] 参数错误: position 为 null, td.id: {td.id}"); + Log.Info($"[SaveAutoEodInterestPosition] 参数验证: position 为 null, td.id: {td.id}"); throw new ArgumentNullException(nameof(position), "持仓对象不能为null"); } if (interval == null) { - Log.Error($"[SaveAutoEodInterestPosition] 参数错误: interval 为 null, td.id: {td.id}, position.id: {position.id}"); + Log.Info($"[SaveAutoEodInterestPosition] 参数验证: interval 为 null, td.id: {td.id}, position.id: {position.id}"); throw new ArgumentNullException(nameof(interval), "观察日信息不能为null"); } if (td.trade_extend == null) { - Log.Error($"[SaveAutoEodInterestPosition] 参数错误: td.trade_extend 为 null, td.id: {td.id}, td.TradeNumber: {td.TradeNumber}"); + Log.Info($"[SaveAutoEodInterestPosition] 参数验证: td.trade_extend 为 null, td.id: {td.id}, td.TradeNumber: {td.TradeNumber}"); throw new ArgumentNullException("td.trade_extend", "交易扩展信息不能为null"); } @@ -742,7 +742,7 @@ namespace YLErp.Modules.SwapModule // 验证 ExtendObj if (td.trade_extend.ExtendObj == null) { - Log.Error($"[SaveAutoEodInterestPosition] 参数错误: td.trade_extend.ExtendObj 为 null, td.id: {td.id}"); + Log.Info($"[SaveAutoEodInterestPosition] 参数验证: td.trade_extend.ExtendObj 为 null, td.id: {td.id}"); throw new ArgumentNullException("td.trade_extend.ExtendObj", "交易扩展对象不能为null"); }