|
@@ -1818,6 +1818,7 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostPayRequest_Center(PostPayRequestByDateRangeDto dto)
|
|
|
{
|
|
|
+ Stopwatch stopwatch = Stopwatch.StartNew();
|
|
|
#region 验证
|
|
|
DateTime beginDt, endDt;
|
|
|
string format = "yyyy-MM-dd";
|
|
@@ -1851,7 +1852,8 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
tree_Fin_DailyFeePaymentResult dailyResult = PayRequest_DailyByDateRange(dto.Status, checkedView.DailyPaymentIds, dto.beginDt, dto.endDt);
|
|
|
tree_Group_DailyFeePaymentResult groupResult = PayRequest_GroupPaymentByDateRange(dto.Status, checkedView.GroupIds, dto.beginDt, dto.endDt);
|
|
|
|
|
|
- return Ok(JsonView(true, "获取成功", new { daily = dailyResult, group = groupResult }));
|
|
|
+ stopwatch.Stop();
|
|
|
+ return Ok(JsonView(true, $"查询成功!耗时{stopwatch.ElapsedMilliseconds/1000}s", new { daily = dailyResult, group = groupResult }));
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -2417,6 +2419,7 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> PostPayRequestFileDownload(PayRequestFileDownloadDto dto)
|
|
|
{
|
|
|
+ Stopwatch stopwatch = Stopwatch.StartNew();
|
|
|
|
|
|
#region 参数,权限 验证
|
|
|
if (dto.PortType < 1)
|
|
@@ -2585,7 +2588,9 @@ Where c.CTable = 1015 And c.IsPay = 1 And f.IsDel = 0 And c.IsDel = 0 And f.DiId
|
|
|
string fileName = ("PayRequest/付款申请(" + dto.beginDt + "~" + dto.endDt + ").xlsx");
|
|
|
designer.Workbook.Save(AppSettingsHelper.Get("ExcelBasePath") + fileName);
|
|
|
string rst = AppSettingsHelper.Get("ExcelBaseUrl") + AppSettingsHelper.Get("ExcelFtpPath") + fileName;
|
|
|
- return Ok(JsonView(true, "操作成功!", new { url = rst }));
|
|
|
+ stopwatch.Stop();
|
|
|
+
|
|
|
+ return Ok(JsonView(true, $"操作成功!{stopwatch.ElapsedMilliseconds/1000}s", new { url = rst }));
|
|
|
|
|
|
}
|
|
|
catch (Exception ex)
|