Commit e1a7d1d0 by zhouminghui

fix

parent 7d48dd07
...@@ -541,17 +541,26 @@ namespace Bailun.DC.WebApi.Controllers ...@@ -541,17 +541,26 @@ namespace Bailun.DC.WebApi.Controllers
ms.Position = 0; ms.Position = 0;
return File(ms, "text/csv", $"{input.Month}_月销售费用合计》费用利润表明细.csv"); return File(ms, "text/csv", $"{input.Month}_月销售费用合计》费用利润表明细.csv");
} }
/// <summary>
/// 同步月利润销售报告
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
[HttpGet("syncMonthSalesProfit")] [HttpGet("syncMonthSalesProfit")]
public object GetReFundTest(DateTime? time) public bool SyncMonthSalesProfit(DateTime? time)
{ {
return new FinanceService().SyncMonthSalesProfit(time); return new FinanceService().SyncMonthSalesProfit(time);
//var sql = "select * from dc_month_sales_profit_orderdetail limit 1"; //var sql = "select * from dc_month_sales_profit_orderdetail limit 1";
//var data = Dapper.SimpleCRUD.Query<dc_month_sales_profit_orderdetail>(sql, null, Common.GlobalConfig.ConnectionString).FirstOrDefault(); //var data = Dapper.SimpleCRUD.Query<dc_month_sales_profit_orderdetail>(sql, null, Common.GlobalConfig.ConnectionString).FirstOrDefault();
//return data; //return data;
} }
/// <summary>
/// 同步月销售利润报告销售额明细汇总
/// </summary>
/// <param name="date"></param>
/// <returns></returns>
[HttpGet("syncMonthSalesProfiOrderDetail")] [HttpGet("syncMonthSalesProfiOrderDetail")]
public object SyncMonthSalesProfiOrderDetail(DateTime? date) public bool SyncMonthSalesProfiOrderDetail(DateTime? date)
=>new FinanceService().SyncMonthSalesProfiOrderDetail(date); =>new FinanceService().SyncMonthSalesProfiOrderDetail(date);
[HttpGet("testRedis")] [HttpGet("testRedis")]
public object TestRedis() public object TestRedis()
...@@ -563,7 +572,7 @@ namespace Bailun.DC.WebApi.Controllers ...@@ -563,7 +572,7 @@ namespace Bailun.DC.WebApi.Controllers
} }
catch (Exception e) catch (Exception e)
{ {
return e.Message; return e;
} }
} }
#endregion #endregion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment