月报联调
This commit is contained in:
@@ -24,7 +24,7 @@ namespace YLErp.Modules.SuperviseReportModule.ExtendReport.ZheShang
|
||||
public override string TargetFileName => "月报基础数据债券收益互换"+ base.RequestInfo.ValueDate.ToString("yyyyMM") +".xlsx";
|
||||
public override Dictionary<string, object> SearchReportInfo()
|
||||
{
|
||||
var yearMonth = RequestInfo.ValueDate.ToString("yyyyMM");
|
||||
var yearMonth = RequestInfo.ValueDate.ToString("yyyy-MM-dd");
|
||||
var dealList = new List<SwapTradeMothReportModel>();
|
||||
var addList= new List<SwapTradeMothReportModel>();
|
||||
var reportData = GetSwapMonthReport(yearMonth);
|
||||
@@ -48,15 +48,11 @@ namespace YLErp.Modules.SuperviseReportModule.ExtendReport.ZheShang
|
||||
private SwapTradeMothReportModelList GetSwapMonthReport(string yearMonth)
|
||||
{
|
||||
var baseUrl = Environment.GetEnvironmentVariable("Reg_Report_Url");
|
||||
var calculateUrl = "/calc/cal_bond_value";
|
||||
SwapTradeMothReportModelListRequest request = new SwapTradeMothReportModelListRequest()
|
||||
{
|
||||
YearMonth= yearMonth
|
||||
};
|
||||
var calculateUrl = "/swap-trade/month-report?date="+yearMonth;
|
||||
if (!string.IsNullOrEmpty(baseUrl))
|
||||
{
|
||||
var httpHelper = new HttpHelper(baseUrl, null);
|
||||
var result = httpHelper.PostRequestNoAuth<SwapTradeMothReportModelListRequest, SwapTradeMothReportModelListReponse>(calculateUrl, request).Result;
|
||||
var result = httpHelper.GetRequestNoAuth< SwapTradeMothReportModelListReponse>(calculateUrl).Result;
|
||||
if (result != null && !result.success)
|
||||
{
|
||||
LogFactory.GetLogger("SwapTradeMothReport").Info("获取收益互换月报信息失败:" + result.message);
|
||||
|
||||
+3
-8
@@ -37,7 +37,7 @@ namespace YLErp.Modules.SuperviseReportModule.ExtendReport.ZheShang
|
||||
/// <summary>
|
||||
/// 名义本金/多头名义本金 (元)
|
||||
/// </summary>
|
||||
public decimal NotionalPrincipalAmountL { get; set; }
|
||||
public decimal? NotionalPrincipalAmountL { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空头名义本金(元) (多空组合填写)
|
||||
@@ -107,17 +107,12 @@ namespace YLErp.Modules.SuperviseReportModule.ExtendReport.ZheShang
|
||||
/// <summary>
|
||||
/// 多头合约价值(元)
|
||||
/// </summary>
|
||||
public decimal LongPositionContractValue { get; set; }
|
||||
public decimal? LongPositionContractValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空头合约价值(元)
|
||||
/// </summary>
|
||||
public decimal ShortPositionContractValue { get; set; }
|
||||
}
|
||||
|
||||
public class SwapTradeMothReportModelListRequest
|
||||
{
|
||||
public string YearMonth { get; set; }
|
||||
public decimal? ShortPositionContractValue { get; set; }
|
||||
}
|
||||
public class SwapTradeMothReportModelListReponse : ApiResponse
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user