chore(swap): 删除衡泰死配置链与DataCompare孤儿Dto——OtcAppConfigHelper整个文件+HedgingSource/HTUpdate配置字段+DataCompare/Dto四件套
死链全貌:appconfig的"对冲交易数据源/接衡泰修改回执"两键→OtcAppConfig两属性→AppHelper启动复制→OtcAppConfigHelper两静态属性→全仓零读取方。OtcAppConfigHelper除这两属性外无其他成员,整文件删除;配置经JsonHelper.Deserialize加载,存量JSON多余键自动忽略,无需动线上配置。DataCompare模块仅剩Dto无服务无Controller,HengTaiLiquidationTime全仓无写入点。 保留:Configcolumn.衡泰对账列名常量(可能被DB列配置引用)。dotnet build 0错误
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YLErp.Helpers
|
||||
{
|
||||
public static class OtcAppConfigHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 对冲交易数据源(衡泰对冲:1,TRS对冲:2);两者都有:3
|
||||
/// </summary>
|
||||
public static int HedgingSource { get; set; }
|
||||
/// <summary>
|
||||
/// 接收衡泰回执
|
||||
/// </summary>
|
||||
public static int HTUpdate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YLErp.Modules.DataCompare.Dto
|
||||
{
|
||||
public class HengTaiCompareData
|
||||
{
|
||||
public int id { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 对账日期
|
||||
/// </summary>
|
||||
public DateTime ValueDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 簿记账户
|
||||
/// </summary>
|
||||
public string AssetName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 簿记Id
|
||||
/// </summary>
|
||||
public int AssetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易状态
|
||||
/// </summary>
|
||||
public string TradeStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易编号
|
||||
/// </summary>
|
||||
public string TradeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易日期
|
||||
/// </summary>
|
||||
public DateTime? TradeDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public DateTime? StartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 到期日期
|
||||
/// </summary>
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结构类型
|
||||
/// </summary>
|
||||
public string StructType { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 计价货币
|
||||
/// </summary>
|
||||
public string QuoteCurrency { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 交易对手方
|
||||
/// </summary>
|
||||
public string ClientName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易员
|
||||
/// </summary>
|
||||
public string TraderName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 互换类型
|
||||
/// </summary>
|
||||
public string SwapType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名义本金
|
||||
/// </summary>
|
||||
public decimal StockEqvNotional { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 衡泰名义本金
|
||||
/// </summary>
|
||||
public decimal? StockEqvNotionalV2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 持仓市值
|
||||
/// </summary>
|
||||
public decimal Pv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 持仓市值衡泰
|
||||
/// </summary>
|
||||
public decimal? PvV2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 虚拟交易费用
|
||||
/// </summary>
|
||||
public decimal VTradingFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否一致
|
||||
/// </summary>
|
||||
public bool CheckResult { get; set; }
|
||||
|
||||
public string CheckResultStr
|
||||
{
|
||||
get
|
||||
{
|
||||
if (CheckResult)
|
||||
{
|
||||
return "一致";
|
||||
}
|
||||
return "异常";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YLErp.Modules.DataCompare.Dto
|
||||
{
|
||||
public class LiquidationTimeDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统清算时间
|
||||
/// </summary>
|
||||
public string SystemLiquidationTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 衡泰清算时间
|
||||
/// </summary>
|
||||
public string HengTaiLiquidationTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YLErp.Modules.DataCompare.Dto
|
||||
{
|
||||
public class OnlyHengTaiDataDto
|
||||
{
|
||||
public long id { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 对账日期
|
||||
/// </summary>
|
||||
public DateTime ValueDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易编号
|
||||
/// </summary>
|
||||
public string TradeNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始日期
|
||||
/// </summary>
|
||||
public DateTime? StartDate
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrEmpty(StartDateStr))
|
||||
{
|
||||
DateTime result;
|
||||
if (DateTime.TryParse(StartDateStr, out result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string StartDateStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 到期日期
|
||||
/// </summary>
|
||||
public DateTime? EndDate
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrEmpty(EndDateStr))
|
||||
{
|
||||
DateTime result;
|
||||
if (DateTime.TryParse(EndDateStr, out result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string EndDateStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 衡泰名义本金
|
||||
/// </summary>
|
||||
public decimal? StockEqvNotionalV2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 持仓市值衡泰
|
||||
/// </summary>
|
||||
public decimal? PvV2 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
using BaseOUDAL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace YLErp.Modules.DataCompare.Dto
|
||||
{
|
||||
public class QueryNeedCompareDataRequest: BaseSearchReq
|
||||
{
|
||||
public DateTime ValueDate { get; set; }
|
||||
|
||||
public List<int> AssetId { get; set; }
|
||||
|
||||
public string TradeNumber { get; set; }
|
||||
|
||||
public bool ShowException { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -83,8 +83,6 @@ namespace YLErp.Web
|
||||
}
|
||||
|
||||
OtcConfig.SetReadOnly();
|
||||
OtcAppConfigHelper.HedgingSource= OtcConfig.HedgingSource;
|
||||
OtcAppConfigHelper.HTUpdate= OtcConfig.HTUpdate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
private string tradeRiskCalcV2;
|
||||
private string futureVersion;
|
||||
private int hedgingOrder;
|
||||
private int hedgingSource;
|
||||
private int htUpdate;
|
||||
|
||||
public void SetReadOnly()
|
||||
{
|
||||
@@ -67,30 +65,6 @@
|
||||
hedgingOrder = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 对冲交易数据源(衡泰对冲:1,TRS对冲:2);两者都有:3
|
||||
/// </summary>
|
||||
[ConfigField(Description = "对冲交易数据源", DataMapString = "&衡泰对冲=1&TRS对冲=2", IsFlags = true)]
|
||||
public int HedgingSource
|
||||
{
|
||||
get => hedgingSource; set
|
||||
{
|
||||
CheckReadOnly();
|
||||
hedgingSource = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 接衡泰修改回执
|
||||
/// </summary>
|
||||
[ConfigField(Description = "接衡泰修改回执", DataMapString = "&接衡泰修改回执=1", IsFlags = true)]
|
||||
public int HTUpdate
|
||||
{
|
||||
get => htUpdate; set
|
||||
{
|
||||
CheckReadOnly();
|
||||
htUpdate = value;
|
||||
}
|
||||
}
|
||||
[ConfigField(Description = "报价周期选项设置(交易参数设置)")]
|
||||
public bool QuotationCycleOption
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user